ath6kl: fix busreqs so they can be reused when sg is cleaned up
commit3605d751d5dd82ad1586bed72a0ebc84d81e20c7
authorJames Minor <james.minor@ni.com>
Mon, 3 Oct 2016 18:00:02 +0000 (3 13:00 -0500)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 6 Oct 2016 07:14:35 +0000 (6 10:14 +0300)
treee84326a552bdb604db4dedf656d6e18934a8f42d
parentebee76f7fa46851775942624fe6c7b80559a408a
ath6kl: fix busreqs so they can be reused when sg is cleaned up

To reuse the busreqs in case of hardware restart, they must be
properly reinitialized.  If the scat_req pointer isn't reset to
0, __ath6kl_sdio_write_async() will assume there is sg work to be
done (causing a kernel OOPS).

Signed-off-by: James Minor <james.minor@ni.com>
Reviewed-by: Steve deRosier <steve.derosier@lairdtech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/sdio.c