Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Clear firmware loaded flag.



details:   https://anonhg.NetBSD.org/src-all/rev/201c176ec2be
branches:  trunk
changeset: 986939:201c176ec2be
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Wed Jan 13 00:33:35 2021 +1100

description:
Clear firmware loaded flag.

This ensures that the hw is set up propely on the first call to iwm_parent.

diffstat:

 sys/dev/pci/if_iwm.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r efc4333fd3ac -r 201c176ec2be sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Wed Jan 13 00:31:41 2021 +1100
+++ b/sys/dev/pci/if_iwm.c      Wed Jan 13 00:33:35 2021 +1100
@@ -8240,6 +8240,8 @@
            iwm_media_change, ieee80211_media_status, &sc->sc_media_mtx);
 #endif
 
+       /* Clear firmware flag to force full init from iwm_parent */
+       CLR(sc->sc_flags, IWM_FLAG_FW_LOADED);
 
        callout_setfunc(&sc->sc_calib_to, iwm_calib_timeout, sc);
        callout_setfunc(&sc->sc_led_blink_to, iwm_led_blink_timeout, sc);



Home | Main Index | Thread Index | Old Index