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 Fixed hw init condition.



details:   https://anonhg.NetBSD.org/src-all/rev/3ea7ba1f8d86
branches:  trunk
changeset: 949379:3ea7ba1f8d86
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Mon Jan 11 23:14:01 2021 +1100

description:
Fixed hw init condition.

iwm now sends interrupts but does not scan yet.

diffstat:

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

diffs (12 lines):

diff -r df6688ccd120 -r 3ea7ba1f8d86 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Mon Jan 11 22:18:06 2021 +1100
+++ b/sys/dev/pci/if_iwm.c      Mon Jan 11 23:14:01 2021 +1100
@@ -8285,7 +8285,7 @@
        bool startall = false;
 
        if (ic->ic_nrunning > 0) {
-               if ((sc->sc_flags & (IWM_FLAG_FW_LOADED|IWM_FLAG_STOPPED))
+               if ((sc->sc_flags & (IWM_FLAG_FW_LOADED|IWM_FLAG_ATTACHED))
                    != IWM_FLAG_FW_LOADED) {
                        iwm_init(vap->iv_ifp);
                        startall = true;



Home | Main Index | Thread Index | Old Index