[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6a1d7485-d405-d9a6-fefd-5a10d038d493@gmail.com>
Date: Sun, 3 Apr 2022 10:44:46 +0200
From: Michael Straube <straube.linux@...il.com>
To: Larry Finger <Larry.Finger@...inger.net>,
Greg KH <gregkh@...uxfoundation.org>
Cc: Phillip Potter <phil@...lpotter.co.uk>,
"open list:STAGING SUBSYSTEM" <linux-staging@...ts.linux.dev>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: staging: r8188eu: how to handle nested mutex under spinlock
On 4/2/22 23:32, Larry Finger wrote:
> In drivers/net/wireless/realtek/rtlwifi, we had a similar problem. There
> it was handled by putting the lps_enter() and lps_leave() operations in
> a separate workqueue. In this case, the routines were rtl_lps_enter()
> and rtl_lps_leave(). Each of them sets a variable to indicate whether
> enter_ps is true or false, and schedules the workqueue. In the
> workqueue's callback routine, the routines to start/stop ps mode are
> called. The code is in drivers/net/wireless/realtek/rtlwifi/ps.c.
>
> This solution is only one of many, and there may be a better one.
>
> Larry
>
Thank you for the explanation Larry.
Michael
Powered by blists - more mailing lists