rt2800usb: check Autorun mode on FW load only once
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 19 Mar 2015 14:32:49 +0000 (15:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:29:16 +0000 (11:29 +0300)
commit01fbd4ecff4f8dc8ca9614778326cc159705623e
treeb359a567f8323a60eb0e38e8cb246e69eabe7633
parent44a89c82feca565efd44b5aef1f1b99b93621d19
rt2800usb: check Autorun mode on FW load only once

Seems H/W report correctly firmware Autorun value only at initialization
stage. When we close interface and open it again, Autorun value is 0 and
we try to load firmware what kills the device. To fix clear
REQUIRE_FIRMWARE firmware flag, to do not load firmware again, once we
discover Autorun mode.

Reported-and-tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rt2x00/rt2800usb.c