UPSTREAM: mwifiex: fix system hang issue in cmd timeout error case
authorBing Zhao <bzhao@marvell.com>
Thu, 15 Nov 2012 20:29:42 +0000 (12:29 -0800)
committerGerrit <chrome-bot@google.com>
Mon, 19 Nov 2012 20:45:35 +0000 (12:45 -0800)
commit415c7a9732fd664a408af61b062b96bc6b0a7ac8
tree4bde474773b0eebc9567ff93553997ec2ef63033
parent7d50010a5902f4bfde9daa06444da56ad2b87378
UPSTREAM: mwifiex: fix system hang issue in cmd timeout error case

Reported by Tim Shepard:
I was seeing sporadic failures (wedgeups), and the majority of those
failures I saw printed the printouts in mwifiex_cmd_timeout_func with
cmd = 0xe5 which is CMD_802_11_HS_CFG_ENH.  When this happens, two
minutes later I get notified that the rtcwake thread is blocked, like
this:
      INFO: task rtcwake:3495 blocked for more than 120 seconds.

To get the hung thread unblocked we wake up the cmd wait queue and
cancel the ioctl.

Cc: "3.4+" <stable@vger.kernel.org>
Reported-by: Tim Shepard <shep@laptop.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Paul Stewart <pstew@chromium.org>
BUG=chrome-os-partner:15129
TEST=Boot, associate

Change-Id: Icdf3dd71b12b8110c5b13df5c5c9ebbb0820441c
Reviewed-on: https://gerrit.chromium.org/gerrit/38284
Reviewed-by: Bing Zhao <bzhao@marvell.com>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
drivers/net/wireless/mwifiex/cmdevt.c