Module Name: src Committed By: martin Date: Mon Aug 1 09:38:02 UTC 2022
Modified Files: src/sys/dev/usb [netbsd-8]: uslsa.c Log Message: Pull up following revision(s) (requested by rin in ticket #1753): sys/dev/usb/uslsa.c: revision 1.32 PR kern/56946 Baud rate must be in little endian for SLSA_R_SET_BAUDRATE request. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/usb/uslsa.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/uslsa.c diff -u src/sys/dev/usb/uslsa.c:1.23 src/sys/dev/usb/uslsa.c:1.23.8.1 --- src/sys/dev/usb/uslsa.c:1.23 Fri Dec 16 14:56:34 2016 +++ src/sys/dev/usb/uslsa.c Mon Aug 1 09:38:02 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: uslsa.c,v 1.23 2016/12/16 14:56:34 maya Exp $ */ +/* $NetBSD: uslsa.c,v 1.23.8.1 2022/08/01 09:38:02 martin Exp $ */ /* from ugensa.c */ @@ -58,7 +58,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.23 2016/12/16 14:56:34 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.23.8.1 2022/08/01 09:38:02 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -411,7 +411,7 @@ uslsa_param(void *vsc, int portno, struc USETW(req.wIndex, sc->sc_ifnum); USETW(req.wLength, 4); - baud = t->c_ospeed; + baud = htole32(t->c_ospeed); status = usbd_do_request(sc->sc_udev, &req, &baud); if (status != USBD_NORMAL_COMPLETION) { /* fallback method for devices that don't know SET_BAUDRATE */