From: Kalle Valo <kvalo@codeaurora.org>
To: Amitkumar Karwar <akarwar@marvell.com>
Cc: Andreas Fenkart <afenkart@gmail.com>,
"linux-wireless\@vger.kernel.org"
<linux-wireless@vger.kernel.org>,
Avinash Patil <patila@marvell.com>
Subject: Re: [PATCH 2/2] mwifiex: sdio: bug: dead-lock in card reset
Date: Tue, 28 Apr 2015 19:04:52 +0300 [thread overview]
Message-ID: <87iocg5jdn.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <5FF020A1CFFEEC49BD1E09530C4FF5951B16DFB8F9@SC-VEXCH1.marvell.com> (Amitkumar Karwar's message of "Mon, 13 Apr 2015 03:27:25 -0700")
Amitkumar Karwar <akarwar@marvell.com> writes:
> Hi Andreas,
>
> Thanks for the patch series.
>
>>
>> Card reset is implemented by removing/re-adding the adapter instance.
>> This is implemented by removing the mmc host, which will then trigger a
>> cascade of removal callbacks including mwifiex_sdio_remove.
>> The dead-lock results in the latter function, trying to cancel the work
>> item executing the mmc host removal. This patch adds a driver level, not
>> adapter level, work struct to break the dead-lock
>>
>> Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
>> ---
>> drivers/net/wireless/mwifiex/main.h | 1 -
>> drivers/net/wireless/mwifiex/sdio.c | 63 +++++++++++++++++++++++++++++--
>> ------
>> 2 files changed, 50 insertions(+), 14 deletions(-)
>>
>
> We had recently submitted a patch to address this issue. So these two
> patches won't be needed now.
> http://www.spinics.net/lists/linux-wireless/msg135146.html
>
> Could you please check and let us know if you have any suggestions for
> improvement?
Ok, so we are talking about this commit which apparently fell through
the cracks:
https://git.kernel.org/cgit/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/?id=2f5872b60146
Like I said as a reply to patch 1, using static variables for this is
ugly. Isn't there really any better way to handle the problem?
--
Kalle Valo
next prev parent reply other threads:[~2015-04-28 16:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 9:18 [PATCH 1/2] mwifiex: sdio: create global list of adapters Andreas Fenkart
2015-04-13 9:18 ` [PATCH 2/2] mwifiex: sdio: bug: dead-lock in card reset Andreas Fenkart
2015-04-13 10:27 ` Amitkumar Karwar
2015-04-16 9:02 ` Andreas Fenkart
2015-04-16 9:59 ` Amitkumar Karwar
2015-04-28 16:04 ` Kalle Valo [this message]
2015-04-28 21:15 ` Andreas Fenkart
2015-04-28 15:58 ` [PATCH 1/2] mwifiex: sdio: create global list of adapters Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iocg5jdn.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@codeaurora.org \
--cc=afenkart@gmail.com \
--cc=akarwar@marvell.com \
--cc=linux-wireless@vger.kernel.org \
--cc=patila@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).