Re: [PATCH v2 2/2] mwifiex: Try waking the firmware until we get an interrupt

From
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date
2021-09-30 21:16:38
Also in
linux-pci, linux-wireless, lkml, stable
Reply to
Jonas Dreßler, 2021-09-30
On Thu, Sep 30, 2021 at 11:07:09PM +0200, Jonas Dreßler wrote:
On 9/30/21 10:58 PM, Andy Shevchenko wrote:
quoted
On Thu, Sep 30, 2021 at 08:04:00PM +0200, Jonas Dreßler wrote:
...
quoted
Second, what is the problem with having one write more or less?
Your current code doesn't guarantee this either. It only decreases
probability of such scenario. Am I wrong?
Indeed my approach just decreases the probability and we sometimes end up
writing twice to wakeup the card, but it would kinda bug me if we'd always
do one write too much.

Anyway, if you still prefer the read_poll_timeout() solution I'd be alright
with that of course.
Yes, it will make code cleaner.

-- 
With Best Regards,
Andy Shevchenko

Thread (19 messages) 19 messages, 5 authors, last reply 2021-10-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help