Module Name: src Committed By: jmcneill Date: Mon Jul 30 00:17:28 UTC 2018
Modified Files: src/sys/dev/usb: if_urtwn.c Log Message: Skip urtwn_chip_stop for 88E family chips as we do for 92EU. Doing "ifconfig urtwn0 down" with an RTL8188EU on Pinebook causes the device to disappear from the built-in GL850G USB 2.0 hub. Since this happens at reboot, an unplug/replug cycle is the only way to make the device re-appear. Bypassing urtwn_chip_stop works around this issue. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/sys/dev/usb/if_urtwn.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_urtwn.c diff -u src/sys/dev/usb/if_urtwn.c:1.61 src/sys/dev/usb/if_urtwn.c:1.62 --- src/sys/dev/usb/if_urtwn.c:1.61 Sun Jul 29 02:07:22 2018 +++ src/sys/dev/usb/if_urtwn.c Mon Jul 30 00:17:28 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: if_urtwn.c,v 1.61 2018/07/29 02:07:22 riastradh Exp $ */ +/* $NetBSD: if_urtwn.c,v 1.62 2018/07/30 00:17:28 jmcneill Exp $ */ /* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */ /*- @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.61 2018/07/29 02:07:22 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.62 2018/07/30 00:17:28 jmcneill Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -4968,7 +4968,8 @@ urtwn_chip_stop(struct urtwn_softc *sc) DPRINTFN(DBG_FN, ("%s: %s\n", device_xname(sc->sc_dev), __func__)); - if (ISSET(sc->chip, URTWN_CHIP_92EU)) + if (ISSET(sc->chip, URTWN_CHIP_88E) || + ISSET(sc->chip, URTWN_CHIP_92EU)) return; mutex_enter(&sc->sc_write_mtx);