summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2022-08-01 09:36:06 +0000
committermartin <martin@NetBSD.org>2022-08-01 09:36:06 +0000
commit4a1f1950a1b763ad19f6ebf0aaa0989c67d569f9 (patch)
tree1bdc17e709a13911d8096a9d6ba4a1d7c9b8e5e2 /sys
parent9d7ae3c8748dbc298857d8357056991187150a4d (diff)
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 (limited to 'sys')
-rw-r--r--sys/dev/usb/uslsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uslsa.c b/sys/dev/usb/uslsa.c
index c20ee98b573..2cc6997f48a 100644
--- a/sys/dev/usb/uslsa.c
+++ b/sys/dev/usb/uslsa.c
@@ -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 @@ uslsa_param(void *vsc, int portno, struct termios *t)
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 */