Module Name: src Committed By: martin Date: Mon Apr 22 08:17:50 UTC 2019
Modified Files: src/sys/dev/usb [netbsd-8]: ucom.c umodem_common.c umodemvar.h Log Message: Pull up following revision(s) (requested by mrg in ticket #1240): sys/dev/usb/umodem_common.c: revision 1.27 sys/dev/usb/umodemvar.h: revision 1.10 sys/dev/usb/ucom.c: revision 1.122 fix umodem(4) detach: - ucom(4) needs kpreempt disabled around softint_schedule() - switch a copied printf() to aprint_error_dev() - use static normally in umodem_common.c - remove unused sc_openings in softc, convert sc_dying to real bool - add sc_refcnt, sc_lock and sc_detach_cv to softc. usage is: - sc_dying is protected by sc_lock - sc_detach_cv is matched with sc_lock for cv operations - sc_refcnt is increased in open and decreased in close, any time it is decreased, it is checked for less than zero, and a broadcast performed on sc_detach_cv. detach waits for sc_refcnt. - umodem_param() and umodem_set() check for sc_dying this fixes pullout out an open ucom@umodem. @skrll. XXX: pullup To generate a diff of this commit: cvs rdiff -u -r1.118.8.2 -r1.118.8.3 src/sys/dev/usb/ucom.c cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/dev/usb/umodem_common.c cvs rdiff -u -r1.9 -r1.9.10.1 src/sys/dev/usb/umodemvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.