[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YWrvbPkqer43C+Fk@equinox>
Date: Sat, 16 Oct 2021 16:27:40 +0100
From: Phillip Potter <phil@...lpotter.co.uk>
To: "Fabio M. De Francesco" <fmdefrancesco@...il.com>
Cc: Larry Finger <Larry.Finger@...inger.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3] staging: r8188eu: use completions and clean
rtw_cmd_thread()
On Sat, Oct 16, 2021 at 11:10:39AM +0200, Fabio M. De Francesco wrote:
> This series replaces two semaphores with three completion variables
> in rtw_cmd_thread(). Completions variables are better suited for the
> purposes that are explained in detail in the commit messages of patches
> 1/3 and 2/3. Furthermore, patch 3/3 removes a redundant 'if' statement
> from that same rtw_cmd_thread().
>
> Tested with ASUSTek Computer, Inc. Realtek 8188EUS [USB-N10 Nano]
>
> Many thanks to Dan Carpenter <dan.carpenter@...cle.com> who helped with
> his review of the RFC Patch.
>
> Fabio M. De Francesco (3):
> staging: r8188eu: Use completions for signaling start and end of
> kthread
> staging: r8188eu: Use completions for signaling enqueueing of commands
> staging: r8188eu: Remove redundant 'if' statement
>
> drivers/staging/r8188eu/core/rtw_cmd.c | 19 +++++++------------
> drivers/staging/r8188eu/include/rtw_cmd.h | 5 +++--
> drivers/staging/r8188eu/os_dep/os_intfs.c | 8 +++++---
> 3 files changed, 15 insertions(+), 17 deletions(-)
>
> --
> 2.33.0
>
Dear Fabio,
Built and tested on my USB-N10 Nano, working well. In terms of how
you've split the patches out, I have no problem with it personally,
given that one semaphore was there for kthread start/stop and the other
for queuing. Looks good to me anyway based on what I know of completion
variables :-) I assume you've not made the waits killable or
interruptible in patch 1 due to the fact they are specifically related
to kthread start/stop? Anyhow:
For whole series:
Acked-by: Phillip Potter <phil@...lpotter.co.uk>
Regards,
Phil
Powered by blists - more mailing lists