]> git.baikalelectronics.ru Git - kernel.git/commit
mt7601u: wait for clear rxq when stopping mac
authorAnthony Romano <anthony.romano@coreos.com>
Fri, 25 Nov 2016 11:13:34 +0000 (03:13 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Nov 2016 15:32:32 +0000 (17:32 +0200)
commitc28c24b30e36b201639bd2f750955b0989f5a556
tree8810d4c04380d83c64c84601190e8338ccce5352
parentf7225f25c27dae8c9e05b3ed90d8c70c547a0a67
mt7601u: wait for clear rxq when stopping mac

mt7601u_mac_stop_hw should stop polling the rxq once it remains empty
but instead continues polling after the rxq status stays clear; bringing
down the interface takes about six seconds from this alone.

Speed up path by exiting rxq loop once status repeatedly polls empty.

Signed-off-by: Anthony Romano <anthony.romano@coreos.com>
Reviewed-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/init.c
drivers/net/wireless/mediatek/mt7601u/regs.h