From: Bing Zhao Date: Thu, 15 Nov 2012 23:58:47 +0000 (-0800) Subject: mwifiex: fix system hang issue in cmd timeout error case X-Git-Tag: v3.7-rc7~22^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a47aa5e1e159e2cb06d7dfcc17ef5149b09299;p=pandora-kernel.git 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+" Reported-by: Tim Shepard Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed