CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Sat Jun 10 06:23:01 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: uaudio.c Log Message: Pull up following revision(s) (requested by nat in ticket #24): sys/dev/usb/uaudio.c: revision 1.154 Start as half as many transfers for recording. This fixes recording and play back when uaudio is used in full duplex mode. The transfer scheduling probably is to blame. Ok skrll@. To generate a diff of this commit: cvs rdiff -u -r1.153 -r1.153.2.1 src/sys/dev/usb/uaudio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Tue Jul 25 01:39:42 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: uhci.c Log Message: Pull up following revision(s) (requested by skrll in ticket #136): sys/dev/usb/uhci.c: revision 1.276 Only call uhci_free_stds if there are TDs to free. In uhci_alloc_std_chain ensure we fill the TD array correctly and note the number of allocated TDs so that uhci_free_stds will do the right thing Fixes a problem seen by anon To generate a diff of this commit: cvs rdiff -u -r1.275 -r1.275.2.1 src/sys/dev/usb/uhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Tue Aug 1 23:28:41 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: if_ural.c Log Message: Pull up following revision(s) (requested by skrll in ticket #169): sys/dev/usb/if_ural.c: revision 1.52 Free the RX list if ural_alloc_rx_list fails part way through. Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.51.8.1 src/sys/dev/usb/if_ural.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Fri Aug 25 05:44:48 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: xhci.c Log Message: Pull up following revision(s) (requested by skrll in ticket #226): sys/dev/usb/xhci.c: revision 1.73 Check both buses for ub_usepolling and schedule the soft interrupt handler or call it directly. Fixes usb keyboard in ddb when attached to xhci. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.72.2.1 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Mon Sep 4 06:40:37 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: usb.c Log Message: Pull up following revision(s) (requested by skrll in ticket #262): sys/dev/usb/usb.c: revision 1.166 Add a missing break that should have been included in revision 1.163. Spotted by "sc dying" and reported on current-users To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.165.6.1 src/sys/dev/usb/usb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Mon Sep 4 06:43:15 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: uhidev.c ukbd.c Log Message: Pull up following revision(s) (requested by jakllsch in ticket #263): sys/dev/usb/uhidev.c: revision 1.71 sys/dev/usb/ukbd.c: revision 1.137-1.138 Fix memory leak in report parsing error paths. -- Support more varieties of USB keyboard reports. The previous code asssumed reports would closely match the Bootstrap Keyboard Protocol. This is no longer always the case, particularly with higher-end keyboards. -- Always try to set USB HID devices into Report Protocol. (Unless the device is known to be quirky.) Some of the most-widely-compatible methods of implementing USB Keyboard NKRO depend on this Request to function as designed. Issuing this Request is recommended by the HID 1.11 spec (7.2.6): ... "the host should not make any assumptions about the device's state and should set the desired protocol whenever initializing a device." To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.70.2.1 src/sys/dev/usb/uhidev.c cvs rdiff -u -r1.136 -r1.136.6.1 src/sys/dev/usb/ukbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Thu Sep 28 01:18:55 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: if_athn_usb.c Log Message: Pull up following revision(s) (requested by skrll in ticket #293): sys/dev/usb/if_athn_usb.c: revision 1.23 PR/52553 Panic on "ifconfig athn0 up" Don't race for a transfer in athn_usb_init on the free list for beacons. Instead pre-assign a transfer to beacons in athn_usb_alloc_tx_list To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/dev/usb/if_athn_usb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Fri Nov 17 20:35:57 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: xhci.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #356): sys/dev/usb/xhci.c: revision 1.76 Wait 1ms first. Existing Intel xHCI requies 1ms delay to prevent system hang (Errata). To generate a diff of this commit: cvs rdiff -u -r1.72.2.2 -r1.72.2.3 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Thu Nov 23 13:16:21 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: if_urtwn.c Log Message: Pull up following revision(s) (requested by skrll in ticket #383): sys/dev/usb/if_urtwn.c: revision 1.55 PR/52702 Malicious USB devices attaching as urtwn(4) can corrupt kernel memory Patch from PR slighly updated by me To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.53.2.1 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.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Thu Dec 21 21:32:10 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: usb_subr.c Log Message: Pull up following revision(s) (requested by khorben in ticket #447): sys/dev/usb/usb_subr.c: revision 1.222 Be more defensive towards malicious USB devices This avoids potential panics due to 0-sized memory allocation attempts, which could be triggered by malicious USB devices. Tested on NetBSD/amd64 with a Sony Xperia X (SailfishOS). Based on an initial patch by Nick Hudson , thanks! Fixes PR kern/52383. To generate a diff of this commit: cvs rdiff -u -r1.220.2.1 -r1.220.2.2 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: snj Date: Thu Dec 21 21:53:32 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-8]: xhci.c Log Message: Pull up following revision(s) (requested by skrll in ticket #459): sys/dev/usb/xhci.c: 1.78, 1.83 PR/52791: Robert Sprowson: avoid duplicate tests (use accessor variables) -- Fix the logic around TT Hub Slot ID, TT Port Number and Multi-TT in xhci_setup_tthub. TT Hub/Port need to reference the upstream HS hub and Multi-TT needs to reflect the capabilities of a HS hub itself or the same upstream HS hub. To generate a diff of this commit: cvs rdiff -u -r1.72.2.4 -r1.72.2.5 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Wed Jan 31 18:01:55 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: if_athn_usb.c if_atu.c if_aue.c if_axe.c if_axen.c if_cdce.c if_cue.c if_kue.c if_otus.c if_rum.c if_run.c if_smsc.c if_udav.c if_upgt.c if_upl.c if_ural.c if_url.c if_urndis.c if_urtw.c if_urtwn.c if_zyd.c irmce.c pseye.c ualea.c ubt.c ucom.c udsir.c ugen.c uhso.c uirda.c ulpt.c umass.c umidi.c uscanner.c usscanner.c ustir.c utoppy.c uvideo.c Log Message: Pull up following revision(s) (requested by skrll in ticket #509): sys/dev/usb/if_ural.c: revision 1.53 sys/dev/usb/if_run.c: revision 1.25 sys/dev/usb/ustir.c: revision 1.39 sys/dev/usb/irmce.c: revision 1.4 sys/dev/usb/if_urtwn.c: revision 1.56 sys/dev/usb/pseye.c: revision 1.24 sys/dev/usb/if_rum.c: revision 1.59 sys/dev/usb/if_upl.c: revision 1.61 sys/dev/usb/ucom.c: revision 1.120 sys/dev/usb/if_zyd.c: revision 1.45 sys/dev/usb/if_axen.c: revision 1.12 sys/dev/usb/umidi.c: revision 1.74 sys/dev/usb/if_udav.c: revision 1.52 sys/dev/usb/if_athn_usb.c: revision 1.25 sys/dev/usb/usscanner.c: revision 1.43 sys/dev/usb/ualea.c: revision 1.6 - 1.9 sys/dev/usb/if_upgt.c: revision 1.18 sys/dev/usb/if_atu.c: revision 1.56 sys/dev/usb/utoppy.c: revision 1.30 sys/dev/usb/ubt.c: revision 1.60 sys/dev/usb/if_urtw.c: revision 1.14 sys/dev/usb/uirda.c: revision 1.43 sys/dev/usb/umass.c: revision 1.163 sys/dev/usb/if_cdce.c: revision 1.45 sys/dev/usb/if_cue.c: revision 1.77 sys/dev/usb/if_kue.c: revision 1.91 sys/dev/usb/uvideo.c: revision 1.46 sys/dev/usb/uhso.c: revision 1.27 sys/dev/usb/if_smsc.c: revision 1.33 sys/dev/usb/ugen.c: revision 1.137 sys/dev/usb/if_axe.c: revision 1.84 sys/dev/usb/if_aue.c: revision 1.142 sys/dev/usb/uscanner.c: revision 1.82 sys/dev/usb/if_urndis.c: revision 1.17 sys/dev/usb/udsir.c: revision 1.6 sys/dev/usb/if_url.c: revision 1.57 sys/dev/usb/if_otus.c: revision 1.32 sys/dev/usb/ulpt.c: revision 1.99 PR kern/52931 Kernel panics with Atheros usb wireless interface Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is supplied wherever such a transfer is setup. We can drop USBD_SHORT_XFER_OK as it has not bearing on number of TDs ualea: Tidy up a bit. Fulfil requests completely. Don't subtract uninitialized pktsize in error path. To generate a diff of this commit: cvs rdiff -u -r1.22.2.1 -r1.22.2.2 src/sys/dev/usb/if_athn_usb.c cvs rdiff -u -r1.55 -r1.55.8.1 src/sys/dev/usb/if_atu.c cvs rdiff -u -r1.141 -r1.141.8.1 src/sys/dev/usb/if_aue.c cvs rdiff -u -r1.82.6.1 -r1.82.6.2 src/sys/dev/usb/if_axe.c cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.44 -r1.44.8.1 src/sys/dev/usb/if_cdce.c cvs rdiff -u -r1.76 -r1.76.8.1 src/sys/dev/usb/if_cue.c cvs rdiff -u -r1.90 -r1.90.2.1 src/sys/dev/usb/if_kue.c cvs rdiff -u -r1.31 -r1.31.2.1 src/sys/dev/usb/if_otus.c cvs rdiff -u -r1.58 -r1.58.2.1 src/sys/dev/usb/if_rum.c cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/dev/usb/if_run.c cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/dev/usb/if_smsc.c cvs rdiff -u -r1.51 -r1.51.8.1 src/sys/dev/usb/if_udav.c cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/dev/usb/if_upgt.c cvs rdiff -u -r1.59.8.1 -r1.59.8.2 src/sys/dev/usb/if_upl.c cvs rdiff -u -r1.51.8.1 -r1.51.8.2 src/sys/dev/usb/if_ural.c cvs rdiff -u -r1.56 -r1.56.8.1 src/sys/dev/usb/if_url.c cvs rdiff -u -r1.16 -r1.16.2.1 src/sys/dev/usb/if_urndis.c cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/dev/usb/if_urtw.c cvs rdiff -u -r1.53.2.1 -r1.53.2.2 src/sys/dev/usb/if_urtwn.c cvs rdiff -u -r1.44 -r1.44.2.1 src/sys/dev/usb/if_zyd.c \ src/sys/dev/usb/uvideo.c cvs rdiff -u -r1.3 -r1.3.6.1 src/sys/dev/usb/irmce.c cvs rdiff -u -r1.23 -r1.23.10.1 src/sys/dev/usb/pseye.c cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/usb/ualea.c cvs rdiff -u -r1.59 -r1.59.2.1 src/sys/dev/usb/ubt.c cvs rdiff -u -r1.118.8.1 -r1.118.8.2 src/sys/dev/usb/ucom.c cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/dev/usb/udsir.c cvs rdiff -u -r1.134 -r1.134.10.1 src/sys/dev/usb/ugen.c cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/dev/usb/uhso.c cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/dev/usb/uirda.c cvs rdiff -u -r1.98 -r1.98.8.1 src/sys/dev/usb/ulpt.c cvs rdiff -u -r1.158.4.1 -r1.158.4.2 src/sys/dev/usb/umass.c cvs rdiff -u -r1.73 -r1.73.2.1 src/sys/dev/usb/umidi.c cvs rdiff -u -r1.80 -r1.80.8.1 src/sys/dev/usb/uscanner.c cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/usb/usscanner.c cvs rdiff -u -r1.37 -r1.37.2.1 src/sys/dev/usb/ustir.c cvs rdiff -u -r1.29 -r1.29.2.1 src/sys/dev/usb/utoppy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat May 5 15:05:39 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: xhci.c xhcireg.h Log Message: Pull up following revision(s) (requested by jdolecek in ticket #787): sys/dev/usb/xhci.c: revision 1.88-1.90 sys/dev/usb/xhcireg.h: revision 1.10 add KASSERT() that sc_child* is set to NULL after child detach; just for readability, it's not immediatelly obvious this is done in xhci_childdet() no functional changes trigger the softint processing on that child bus which is not detached yet fixes PR kern/53066 by Martin Husemann enable code to only trigger usb processing when EINT is set, to avoid misinterpreting shared interrupt for another device when clearing USBSTS, actually preserve the bits which spec requires to preserve, and actually clear bit 1, which should be actually always cleared to zero by spec also #ifdef XHCI_DEBUG some unnecessary register reads this should finally resolve PR kern/53066 also for Martin To generate a diff of this commit: cvs rdiff -u -r1.72.2.5 -r1.72.2.6 src/sys/dev/usb/xhci.c cvs rdiff -u -r1.9 -r1.9.6.1 src/sys/dev/usb/xhcireg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Mon May 7 13:26:03 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: if_axe.c Log Message: Pull up following revision(s) (requested by nonaka in ticket #782): sys/dev/usb/if_axe.c: revision 1.85-1.89 propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized) It was not gcc's fault for correctly detecting an uninitialized variable. Fix the uninitialized variable issues by error checking things. downgrade error to debug. merge duplicated code, back to logging error. use the proper station nodeid read command. To generate a diff of this commit: cvs rdiff -u -r1.82.6.2 -r1.82.6.3 src/sys/dev/usb/if_axe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Aug 28 19:44:22 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: if_atu.c if_axe.c if_axen.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1599): sys/dev/usb/if_atu.c: revision 1.73 sys/dev/usb/if_axe.c: apply patch sys/dev/usb/if_axen.c: apply patch atu(4): Reject packets larger than MCLBYTES. To generate a diff of this commit: cvs rdiff -u -r1.55.8.3 -r1.55.8.4 src/sys/dev/usb/if_atu.c cvs rdiff -u -r1.82.6.4 -r1.82.6.5 src/sys/dev/usb/if_axe.c cvs rdiff -u -r1.11.8.8 -r1.11.8.9 src/sys/dev/usb/if_axen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Sep 19 12:20:36 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: ukbdmap.c Log Message: Pull up following revision(s) (requested by nonaka in ticket #1606): sys/dev/hid/hidkbdmap.c: revision 1.11 (patch) (applied to sys/dev/usb/ukbdmap.c) for jp keymap map also scan code 49 to right bracket to handle ARCHISS model PR kern/55608 by Shinichi Doyashiki To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.31.10.1 src/sys/dev/usb/ukbdmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Dec 12 12:58:51 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: ucom.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1636): sys/dev/usb/ucom.c: revision 1.128 properly wait for refcounts to drain. fixes panic at detach that jmnceill saw. XXX: pullup-[89]. To generate a diff of this commit: cvs rdiff -u -r1.118.8.4 -r1.118.8.5 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Dec 12 20:30:57 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: ohci.c ohcivar.h Log Message: Pull up following revision(s) (requested by skrll in ticket #1637): sys/dev/usb/ohci.c: revision 1.311 sys/dev/usb/ohci.c: revision 1.312 sys/dev/usb/ohcivar.h: revision 1.62 Restructure the abort code for TD based transfers (ctrl, bulk, intr). In PR kern/22646 some TDs can be on the done queue when the abort start and, if this is the case, they need to processed after the WDH interrupt. Instead of waiting for WDH we release TDs that have been touched by the HC and replace them with new ones. Once WDH happens the floating TDs will be returned to the free list. Also addresses the issue seen in PR kern/55835 Thanks to both Andreas Gustafsson and Edgar Fu=C3=9F for testing. Apologi= es to Andreas Gustafsson for not committing this to HEAD for 4y6m.w Remove leading space that crept in in the last change To generate a diff of this commit: cvs rdiff -u -r1.273.6.6 -r1.273.6.7 src/sys/dev/usb/ohci.c cvs rdiff -u -r1.58.10.1 -r1.58.10.2 src/sys/dev/usb/ohcivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Mar 27 13:09:46 UTC 2021 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs Log Message: Pull up following revision(s) (requested by nia in ticket #1667): sys/dev/usb/usbdevs: revision 1.793 correct usb device id for BELKIN F5D7050E matches freebsd / openbsd (sources of urtw driver), various online sources PR kern/56056 To generate a diff of this commit: cvs rdiff -u -r1.736.2.6 -r1.736.2.7 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Mar 27 13:10:45 UTC 2021 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs.h usbdevs_data.h Log Message: Regen for ticket #1667 (BELKIN F5D7050E fix) To generate a diff of this commit: cvs rdiff -u -r1.727.2.6 -r1.727.2.7 src/sys/dev/usb/usbdevs.h cvs rdiff -u -r1.728.2.6 -r1.728.2.7 src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
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.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue May 7 18:47:01 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: ucom.c umodem_common.c umodemvar.h Log Message: Backout the following changes (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. There are different fixes upcoming. To generate a diff of this commit: cvs rdiff -u -r1.118.8.3 -r1.118.8.4 src/sys/dev/usb/ucom.c cvs rdiff -u -r1.25.8.1 -r1.25.8.2 src/sys/dev/usb/umodem_common.c cvs rdiff -u -r1.9.10.1 -r1.9.10.2 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.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Dec 14 12:33:47 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: if_urtwn.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #1472): sys/dev/usb/if_urtwn.c: revision 1.76 Reset MCU ready status before resetting the MCU. Fixes PR kern/54728 To generate a diff of this commit: cvs rdiff -u -r1.53.2.5 -r1.53.2.6 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.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Thu Jan 2 09:43:56 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: ucycom.c uhid.c uthum.c Log Message: Pull up following revision(s) (requested by maxv in ticket #1480): sys/dev/usb/uthum.c: revision 1.18 sys/dev/usb/ucycom.c: revision 1.49 sys/dev/usb/uhid.c: revision 1.111 Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By crafting the former the device can leak stack data. By crafting the latter the device can overwrite the stack. The combination of the two means the device can ROP the kernel and obtain code execution (demonstrated with an actual exploit over vHCI). Truncate the lengths to the size of the buffers, and also drop sc_ilen since it is unused. Patch tested with vHCI+kASan. - Fix buffer overflows. Also add missing mutex_exit. - Fix buffer overflows: validate the lengths at attach time, given that they are apparently not supposed to be variable. Drop sc_ilen since it is unused. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.45.8.1 src/sys/dev/usb/ucycom.c cvs rdiff -u -r1.99 -r1.99.6.1 src/sys/dev/usb/uhid.c cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/dev/usb/uthum.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sun Jan 5 15:11:29 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: uthum.c Log Message: use min() instead of uimin() - the latter does not exist on this branch. To generate a diff of this commit: cvs rdiff -u -r1.13.8.1 -r1.13.8.2 src/sys/dev/usb/uthum.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Jan 31 10:55:37 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: if_urlreg.h Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1495): sys/dev/usb/if_urlreg.h: revision 1.16 URL_TCR_IFG0 is not bit 4 but bit3. From OpenBSD. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.10.1 src/sys/dev/usb/if_urlreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Thu Feb 27 14:32:31 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: u3g.c umodeswitch.c usbdevs Log Message: Pull up following revision(s) (requested by manu in ticket #1508): sys/dev/usb/usbdevs: revision 1.776 sys/dev/usb/u3g.c: revision 1.40 sys/dev/usb/umodeswitch.c: revision 1.5 Add UE version of D-Link DWM-157 - Add support for D-Link DWM-157 3G USB modem To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.34.2.1 src/sys/dev/usb/u3g.c cvs rdiff -u -r1.1 -r1.1.2.1 src/sys/dev/usb/umodeswitch.c cvs rdiff -u -r1.736.2.5 -r1.736.2.6 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Thu Feb 27 14:34:13 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs.h usbdevs_data.h Log Message: regen (for ticket #1508) To generate a diff of this commit: cvs rdiff -u -r1.727.2.5 -r1.727.2.6 src/sys/dev/usb/usbdevs.h cvs rdiff -u -r1.728.2.5 -r1.728.2.6 src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sun May 31 10:27:26 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: usb.c Log Message: Pull up following revision(s) (requested by skrll in ticket #1551): sys/dev/usb/usb.c: revision 1.187 Don't allow open of /dev/usb if there are no attached busses. PR kern/55303 mutex_vector_enter,512: uninitialized lock To generate a diff of this commit: cvs rdiff -u -r1.165.6.5 -r1.165.6.6 src/sys/dev/usb/usb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: bouyer Date: Tue Jun 16 10:27:04 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: if_otus.c Log Message: Pull up following revision(s) (requested by martin in ticket #1558): sys/dev/usb/if_otus.c: revision 1.45 via patch Stricter bounds check for some packet length we get from the usb chip, to make sure we do not corrupt kernel memory. Pointed out by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.31.2.2 -r1.31.2.3 src/sys/dev/usb/if_otus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: bouyer Date: Tue Jun 16 10:28:29 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: if_run.c Log Message: Pull up following revision(s) (requested by martin in ticket #1559): sys/dev/usb/if_run.c: revision 1.41 Better bounds checking for oversized packets, to avoid kernel memory corruption. Pointed out by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.22.2.2 -r1.22.2.3 src/sys/dev/usb/if_run.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Mon Jul 13 14:35:29 UTC 2020 Modified Files: src/sys/dev/usb [netbsd-8]: ualea.c Log Message: Pull up following revision(s) (requested by simonb in ticket #1573): sys/dev/usb/ualea.c: revision 1.12 Set up the USB xfer for every transfer, not just once in the attach function. Caught by DIAGNOSTIC on a similar driver. Thanks to mrg@ for USB xfer clue and martin@ for testing. To generate a diff of this commit: cvs rdiff -u -r1.6.8.1 -r1.6.8.2 src/sys/dev/usb/ualea.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Thu Jun 7 18:16:43 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: if_urtwn.c Log Message: Pull up following revision(s) (requested by nat in ticket #847): sys/dev/usb/if_urtwn.c: revision 1.58 Fix support for 8192eu, notably TPLINK TL-WN823NV2, by using the right registers when setting receiver gain. Ok christos@. To generate a diff of this commit: cvs rdiff -u -r1.53.2.2 -r1.53.2.3 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.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Wed Aug 8 10:28:35 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: if_athn_usb.c if_atu.c if_aue.c if_axe.c if_axen.c if_cue.c if_otus.c if_rum.c if_run.c if_smsc.c if_udav.c if_upgt.c if_ural.c if_url.c if_urtw.c if_urtwn.c if_zyd.c uatp.c umcs.c usb.c usb_subr.c usbdi.h Log Message: Pull up following revision(s) (requested by riastradh in ticket #963): sys/dev/usb/if_cue.c: revision 1.80 sys/dev/usb/umcs.c: revision 1.11 sys/dev/usb/umcs.c: revision 1.12 sys/dev/usb/if_ural.c: revision 1.56 sys/dev/usb/if_run.c: revision 1.28 sys/dev/usb/if_ural.c: revision 1.57 sys/dev/usb/if_run.c: revision 1.29 sys/dev/usb/uatp.c: revision 1.16 sys/dev/usb/uatp.c: revision 1.17 sys/dev/usb/if_axe.c: revision 1.91 sys/dev/usb/if_axe.c: revision 1.92 sys/dev/usb/if_zyd.c: revision 1.49 sys/dev/usb/if_axen.c: revision 1.15 sys/dev/usb/if_url.c: revision 1.60 sys/dev/usb/if_udav.c: revision 1.54 sys/dev/usb/if_axen.c: revision 1.16 sys/dev/usb/if_udav.c: revision 1.55 sys/dev/usb/if_athn_usb.c: revision 1.28 sys/dev/usb/if_athn_usb.c: revision 1.29 sys/dev/usb/if_urtw.c: revision 1.16 sys/dev/usb/if_urtw.c: revision 1.17 sys/dev/usb/if_cue.c: revision 1.79 sys/dev/usb/if_rum.c: revision 1.62 sys/dev/usb/if_urtwn.c: revision 1.61 sys/dev/usb/if_rum.c: revision 1.63 sys/dev/usb/if_urtwn.c: revision 1.63 sys/dev/usb/usb.c: revision 1.170 sys/dev/usb/usb.c: revision 1.171 sys/dev/usb/if_smsc.c: revision 1.35 sys/dev/usb/if_smsc.c: revision 1.36 sys/dev/usb/if_zyd.c: revision 1.50 sys/dev/usb/if_aue.c: revision 1.144 sys/dev/usb/if_aue.c: revision 1.145 sys/dev/usb/usb_subr.c: revision 1.225 sys/dev/usb/usb_subr.c: revision 1.226 sys/dev/usb/if_upgt.c: revision 1.21 sys/dev/usb/usbdi.h: revision 1.93 sys/dev/usb/if_upgt.c: revision 1.22 sys/dev/usb/if_url.c: revision 1.59 sys/dev/usb/usbdi.h: revision 1.95 sys/dev/usb/if_otus.c: revision 1.34 sys/dev/usb/if_atu.c: revision 1.62 sys/dev/usb/if_otus.c: revision 1.35 sys/dev/usb/if_atu.c: revision 1.63 New function usb_rem_task_wait(dev, task, queue). If task is scheduled to run, removes it from the queue. If it may have already begun to run, waits for it to complete. Caller must guarantee it will not switch to another queue. If caller guarantees it will not be scheduled again, then usb_rem_task_wait guarantees it is not running on return. This will enable us to fix a litany of bugs in detach where we currently fail to wait for a pending task. Use usb_rem_task_wait in various drivers. To generate a diff of this commit: cvs rdiff -u -r1.22.2.2 -r1.22.2.3 src/sys/dev/usb/if_athn_usb.c cvs rdiff -u -r1.55.8.2 -r1.55.8.3 src/sys/dev/usb/if_atu.c cvs rdiff -u -r1.141.8.1 -r1.141.8.2 src/sys/dev/usb/if_aue.c cvs rdiff -u -r1.82.6.3 -r1.82.6.4 src/sys/dev/usb/if_axe.c cvs rdiff -u -r1.11.8.1 -r1.11.8.2 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.76.8.1 -r1.76.8.2 src/sys/dev/usb/if_cue.c cvs rdiff -u -r1.31.2.1 -r1.31.2.2 src/sys/dev/usb/if_otus.c cvs rdiff -u -r1.58.2.1 -r1.58.2.2 src/sys/dev/usb/if_rum.c cvs rdiff -u -r1.22.2.1 -r1.22.2.2 src/sys/dev/usb/if_run.c cvs rdiff -u -r1.30.8.1 -r1.30.8.2 src/sys/dev/usb/if_smsc.c cvs rdiff -u -r1.51.8.1 -r1.51.8.2 src/sys/dev/usb/if_udav.c cvs rdiff -u -r1.17.8.1 -r1.17.8.2 src/sys/dev/usb/if_upgt.c cvs rdiff -u -r1.51.8.2 -r1.51.8.3 src/sys/dev/usb/if_ural.c cvs rdiff -u -r1.56.8.1 -r1.56.8.2 src/sys/dev/usb/if_url.c cvs rdiff -u -r1.13.8.1 -r1.13.8.2 src/sys/dev/usb/if_urtw.c cvs rdiff -u -r1.53.2.3 -r1.53.2.4 src/sys/dev/usb/if_urtwn.c cvs rdiff -u -r1.44.2.1 -r1.44.2.2 src/sys/dev/usb/if_zyd.c cvs rdiff -u -r1.14 -r1.14.6.1 src/sys/dev/usb/uatp.c cvs rdiff -u -r1.10 -r1.10.10.1 src/sys/dev/usb/umcs.c cvs rdiff -u -r1.165.6.2 -r1.165.6.3 src/sys/dev/usb/usb.c cvs rdiff -u -r1.220.2.2 -r1.220.2.3 src/sys/dev/usb/usb_subr.c cvs rdiff -u -r1.92 -r1.92.8.1 src/sys/dev/usb/usbdi.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sun Aug 26 08:05:16 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: usb_subr.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #990): sys/dev/usb/usb_subr.c: revision 1.224 add missing KERNEL_LOCK protection around autoconf calls. Also replace NULL argument with curlwp for style. To generate a diff of this commit: cvs rdiff -u -r1.220.2.3 -r1.220.2.4 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Sep 28 08:33:43 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: ehci.c ehcivar.h xhci.c Log Message: Fixup for ticket #1037 - parts of the patch were accidently missing. To generate a diff of this commit: cvs rdiff -u -r1.254.8.5 -r1.254.8.6 src/sys/dev/usb/ehci.c cvs rdiff -u -r1.43.10.1 -r1.43.10.2 src/sys/dev/usb/ehcivar.h cvs rdiff -u -r1.72.2.8 -r1.72.2.9 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Wed Oct 31 09:32:22 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs.h usbdevs_data.h Log Message: Regen for ticket #1072 To generate a diff of this commit: cvs rdiff -u -r1.727 -r1.727.2.1 src/sys/dev/usb/usbdevs.h cvs rdiff -u -r1.728 -r1.728.2.1 src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sun Nov 4 11:08:10 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: uhub.c usb_subr.c Log Message: Pull up following revision(s) (requested by manu in ticket #1078): sys/dev/usb/uhub.c: revision 1.140 sys/dev/usb/uhub.c: revision 1.141 sys/dev/usb/usb_subr.c: revision 1.228 Make USB port numbers display consistent Make sure USB ports numbers are displayed with the first one as number one and not number zero when rescanning bus. The change makes the display consistent with the display at boot time USB discovery. While we are there, make port iteration consistent everywhere in the code, always starting at one instead of zero. - Make USB port iteration code consistent, always startint at port #1 This complements change in revision 1.140 To generate a diff of this commit: cvs rdiff -u -r1.136.2.2 -r1.136.2.3 src/sys/dev/usb/uhub.c cvs rdiff -u -r1.220.2.5 -r1.220.2.6 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Mon Nov 12 12:17:07 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: ugen.c Log Message: Pull up following revision(s) (requested by manu in ticket #1090): sys/dev/usb/ugen.c: revision 1.141 Enfore USB timeout on ugen(4) write operations To generate a diff of this commit: cvs rdiff -u -r1.134.10.1 -r1.134.10.2 src/sys/dev/usb/ugen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Mon Nov 12 16:01:35 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: usb_quirks.c usb_quirks.h usbdevs usbdi_util.c usbdi_util.h Log Message: Pull up following revision(s) (requested by manu in ticket #1091): sys/dev/usb/usb_quirks.c: revision 1.88,1.89 (via patch) sys/dev/usb/usbdi_util.c: revision 1.72 (via patch) sys/dev/usb/usb_quirks.h: revision 1.28 (via patch) sys/dev/usb/usbdi_util.h: revision 1.48 sys/dev/usb/usbdevs: revision 1.760,1.761 (via patch) Add PN533 based NFC devices - Workaround PN533 USB descriptor corruption During normal operation, the PN533 chip may corrupt its USB configuration, interface and endpoint descriptors. The device descriptor remains unaffected. Since the descriptors are documented to be immutable, we can work around the problem by providing hard-coded descriptors instead of pulling them from the device. Userland implementation such as NFC tools' libnfc use the same approach, but this kernel quirk is still necessary so that the device can be attached on reboot, after its USB descriptors got corrupted. - Fix typo To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.86.8.1 src/sys/dev/usb/usb_quirks.c cvs rdiff -u -r1.27 -r1.27.10.1 src/sys/dev/usb/usb_quirks.h cvs rdiff -u -r1.736.2.1 -r1.736.2.2 src/sys/dev/usb/usbdevs cvs rdiff -u -r1.66.2.1 -r1.66.2.2 src/sys/dev/usb/usbdi_util.c cvs rdiff -u -r1.47 -r1.47.10.1 src/sys/dev/usb/usbdi_util.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Mon Nov 12 16:02:18 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs.h usbdevs_data.h Log Message: regen for ticket #1091 To generate a diff of this commit: cvs rdiff -u -r1.727.2.1 -r1.727.2.2 src/sys/dev/usb/usbdevs.h cvs rdiff -u -r1.728.2.1 -r1.728.2.2 src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue Nov 20 16:05:38 UTC 2018 Modified Files: src/sys/dev/usb [netbsd-8]: usb_quirks.c usb_quirks.h usbdi.c Log Message: Pull up following revision(s) (requested by manu in ticket #1099): sys/dev/usb/usb_quirks.c: revision 1.90 sys/dev/usb/usbdi.c: revision 1.179 sys/dev/usb/usb_quirks.h: revision 1.29 sys/dev/usb/usbdi.c: revision 1.180 Workaround NBP PN533 USB toggle bit bugs The PN533 is known to mishandle the USB toggle bit, causing replies to be filtered out by the host controller. As a result, the kernel sees a timed out operation. Vendor errata suggests that userland applications should detect the situation on read timeout, and write a dumy frame to resync the toggle bit. NFC Tools's libnfc does just that, but in order to succeed, the dummy frame write must not be reported as timed out. We therefore introduce a new USB quirk for devices known to miss output acks. When that occur, we pretend that the operation succeeded, leaving userland the duty to check that everything went okay. This workaround lets libnfc recover from interrupted communications without the need te reboot the system. - Build fix >From David H. Gutteridge To generate a diff of this commit: cvs rdiff -u -r1.86.8.1 -r1.86.8.2 src/sys/dev/usb/usb_quirks.c cvs rdiff -u -r1.27.10.1 -r1.27.10.2 src/sys/dev/usb/usb_quirks.h cvs rdiff -u -r1.173.2.3 -r1.173.2.4 src/sys/dev/usb/usbdi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Jan 4 14:55:40 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: xhci.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1155): sys/dev/usb/xhci.c: revision 1.100 use xhci_polling_p(). this might miss when bus2 is active. XXX: pullup-7, pullup-8. To generate a diff of this commit: cvs rdiff -u -r1.72.2.9 -r1.72.2.10 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Jan 11 15:52:24 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: usbdi.c Log Message: Pull up following revision(s) (requested by skrll in ticket #1161): sys/dev/usb/usbdi.c: revision 1.181 Avoid use after free when closing interrupt pipe transfer by calling upm_close before destroying the interupt pipe xfer. Found by kasan on wiz's machine. To generate a diff of this commit: cvs rdiff -u -r1.173.2.4 -r1.173.2.5 src/sys/dev/usb/usbdi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: msaitoh Date: Thu Feb 7 06:13:26 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs Log Message: Pullup the following revision (requested by martin in ticket #1182): sys/dev/usb/usbdevs 1.753 Andrius V in Pr kern/53461: add D-Link DUB-1312 To generate a diff of this commit: cvs rdiff -u -r1.736.2.2 -r1.736.2.3 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: msaitoh Date: Thu Feb 7 06:13:51 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: usbdevs.h usbdevs_data.h Log Message: Regen for ticket #1182. To generate a diff of this commit: cvs rdiff -u -r1.727.2.2 -r1.727.2.3 src/sys/dev/usb/usbdevs.h cvs rdiff -u -r1.728.2.2 -r1.728.2.3 src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue Feb 19 14:51:25 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: if_axen.c Log Message: Pull up following revision(s) (requested by rin in ticket #1190): sys/dev/usb/if_axen.c: revision 1.21 sys/dev/usb/if_axen.c: revision 1.22 Enable AXEN_RXCTL_START bit only when RX is ready. Otherwise, the adapter eventually falls into "no carrier" state while it is not running. In axen_tick_task(), call axen_miibus_statchg() when link is lost (like other drivers). Otherwise, link can be lost forever, which results in sysmtem freeze. Drop AXEN_MEDIUM_ALWAYS_ONE (from Linux), which reduces drop erros in RX. To generate a diff of this commit: cvs rdiff -u -r1.11.8.3 -r1.11.8.4 src/sys/dev/usb/if_axen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue Feb 19 15:05:52 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: if_axen.c if_axenreg.h Log Message: Pull up following revision(s) (requested by rin in ticket #1191): sys/dev/usb/if_axen.c: revision 1.28 sys/dev/usb/if_axen.c: revision 1.29 sys/dev/usb/if_axenreg.h: revision 1.4 sys/dev/usb/if_axenreg.h: revision 1.5 sys/dev/usb/if_axen.c: revision 1.19 sys/dev/usb/if_axenreg.h: revision 1.8 sys/dev/usb/if_axen.c: revision 1.30 sys/dev/usb/if_axen.c: revision 1.31 sys/dev/usb/if_axen.c: revision 1.36 sys/dev/usb/if_axen.c: revision 1.20 sys/dev/usb/if_axen.c: revision 1.23 sys/dev/usb/if_axen.c: revision 1.25 Fix HW checksum offloading. - Enable ones specified in if_capenable and remove AXEN_TOE macro. - Check correct bit and set appropriate csum_flags. - Pass packets of wrong checksum to upper layer instead of dropping them. - Fix value of AXEN_RXHDR_L3_TYPE_MASK. Tested on ASIX Elec. Corp. (0xb95) AX88179 (0x1790). Fix previous: - axen_coe() should be called from axen_init(), not axen_ax88179_init(). - Simplify logic in axen_coe(); AXEN_[RT]XCOE_OFF = 0. Enable hash-table-based multicast filter: - Drop AXEN_RXCTL_ACPT_PHY_MCAST bit (neither Linux nor FreeBSD sets it). - 0x0010 bit is not AXEN_RXCTL_ACPT_BCAST ("accept broadcast") but AXEN_RXCTL_ACPT_MCAST ("accept multicast (hash-table-based)"). Remove useless memset. Fix padding for a full length USB packet in TX: - Update boundary length for SS mode, taken from OpenBSD. - Make sure everything passed to the adapter is little endian. - Specify padding bits in a similar manner to Linux. XXX I wonder whether this is really necessary... Support TSOv4 (They call it LSOv1). The adapter does not support TSOv6 (aka LSOv2). Fix previous. Oops, fix previous again. Really support TSOv4. Use unsigned variables for buffer length to avoid compiler warnings. To generate a diff of this commit: cvs rdiff -u -r1.11.8.4 -r1.11.8.5 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.3 -r1.3.10.1 src/sys/dev/usb/if_axenreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue Feb 19 15:09:52 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: if_axen.c if_axenreg.h Log Message: Pull up following revision(s) (requested by rin in ticket #1192): sys/dev/usb/if_axen.c: revision 1.27 sys/dev/usb/if_axenreg.h: revision 1.6 sys/dev/usb/if_axen.c: revision 1.32 sys/dev/usb/if_axen.c: revision 1.35 sys/dev/usb/if_axen.c: revision 1.37 sys/dev/usb/if_axenreg.h: revision 1.10 sys/dev/usb/if_axenreg.h: revision 1.11 sys/dev/usb/if_axen.c: revision 1.24 Correct error bits in RX packet header: - Drop error is bit 31. - CRC error is bit 29. - Distinguish the two errors in debug printf. Cosmetic changes; no functional changes. Add couple of error printf. XXX We should not to use aprint_xxx() for non-autoconf staffs. Add ratecheck for TX errors for axen(4) and mue(4). Remove unused. To generate a diff of this commit: cvs rdiff -u -r1.11.8.5 -r1.11.8.6 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.3.10.1 -r1.3.10.2 src/sys/dev/usb/if_axenreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/usb
Module Name:src Committed By: martin Date: Wed Feb 20 09:49:49 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-8]: if_axen.c if_axenreg.h Log Message: Pull up following revision(s) (requested by rin in ticket #1194): sys/dev/usb/if_axen.c: revision 1.26 sys/dev/usb/if_axenreg.h: revision 1.7 Remove unused variable in axen_softc. Drop AXEN_MEDIUM_ALWAYS_ONE (from Linux), which reduces drop erros in RX. To generate a diff of this commit: cvs rdiff -u -r1.11.8.6 -r1.11.8.7 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.3.10.2 -r1.3.10.3 src/sys/dev/usb/if_axenreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.