From: Dmitry Shmidt Date: Tue, 15 May 2012 19:22:48 +0000 (-0700) Subject: net: wireless: bcmdhd: Change singal pending return value from -110 to -4 X-Git-Tag: firefly_0821_release~7613^2~101 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08cad5bc6c81701272ee2353bb9570d744e44c9b;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Change singal pending return value from -110 to -4 - ETIMEDOUT is interpreted as FW is not responding, so return EINTR instead Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_sdio.c b/drivers/net/wireless/bcmdhd/dhd_sdio.c index 7fdd31443a85..1e6ed28e4a6f 100644 --- a/drivers/net/wireless/bcmdhd/dhd_sdio.c +++ b/drivers/net/wireless/bcmdhd/dhd_sdio.c @@ -1481,9 +1481,9 @@ dhd_bus_rxctl(struct dhd_bus *bus, uchar *msg, uint msglen) dhd_os_sdunlock(bus->dhd); #endif /* DHD_DEBUG */ } else if (pending == TRUE) { - /* possibly fw hangs so never responsed back */ - DHD_ERROR(("%s: pending or timeout \n", __FUNCTION__)); - return -ETIMEDOUT; + /* signal pending */ + DHD_ERROR(("%s: signal pending\n", __FUNCTION__)); + return -EINTR; } else { DHD_CTL(("%s: resumed for unknown reason?\n", __FUNCTION__)); #ifdef DHD_DEBUG