Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb PR kern/56946
details: https://anonhg.NetBSD.org/src/rev/cf37a5386e79
branches: trunk
changeset: 368706:cf37a5386e79
user: rin <rin%NetBSD.org@localhost>
date: Fri Jul 29 13:07:14 2022 +0000
description:
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 24103a76d56b -r cf37a5386e79 sys/dev/usb/uslsa.c
--- a/sys/dev/usb/uslsa.c Fri Jul 29 12:49:16 2022 +0000
+++ b/sys/dev/usb/uslsa.c Fri Jul 29 13:07:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uslsa.c,v 1.31 2021/08/07 16:19:17 thorpej Exp $ */
+/* $NetBSD: uslsa.c,v 1.32 2022/07/29 13:07:14 rin Exp $ */
/* from ugensa.c */
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.31 2021/08/07 16:19:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.32 2022/07/29 13:07:14 rin 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