Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/usb Pull up following revision(s) (requested by r...



details:   https://anonhg.NetBSD.org/src/rev/4d73a4b74ee7
branches:  netbsd-9
changeset: 368744:4d73a4b74ee7
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 01 09:36:06 2022 +0000

description:
Pull up following revision(s) (requested by rin in ticket #1483):

        sys/dev/usb/uslsa.c: revision 1.32

PR kern/56946
Baud rate must be in little endian for SLSA_R_SET_BAUDRATE request.

diffstat:

 sys/dev/usb/uslsa.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6c90337c2841 -r 4d73a4b74ee7 sys/dev/usb/uslsa.c
--- a/sys/dev/usb/uslsa.c       Wed Jul 27 14:43:31 2022 +0000
+++ b/sys/dev/usb/uslsa.c       Mon Aug 01 09:36:06 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uslsa.c,v 1.28 2019/05/09 02:43:35 mrg Exp $ */
+/* $NetBSD: uslsa.c,v 1.28.2.1 2022/08/01 09:36:06 martin Exp $ */
 
 /* from ugensa.c */
 
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.28 2019/05/09 02:43:35 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.28.2.1 2022/08/01 09:36:06 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -388,7 +388,7 @@
        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 */



Home | Main Index | Thread Index | Old Index