From 46b80ab7eae879ec88c38bfb3d7c654035c91371 Mon Sep 17 00:00:00 2001 From: mglocker Date: Fri, 30 Jul 2021 18:05:24 +0000 Subject: [PATCH] Increase static number of nframes which enables very initial ISOC support, e.g. uvideo(4) with lower resolutions. In general we might need to re-write parts of the nframes handling in the driver, since the NetBSD nframes transfer allocation doesn't match with our USB stack. With this we can at least start further testing and improvement for ISOC support. --- sys/dev/usb/dwc2/dwc2var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/dwc2/dwc2var.h b/sys/dev/usb/dwc2/dwc2var.h index 9b7ec5059a7..425889aff3c 100644 --- a/sys/dev/usb/dwc2/dwc2var.h +++ b/sys/dev/usb/dwc2/dwc2var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2var.h,v 1.21 2021/07/30 12:33:27 mglocker Exp $ */ +/* $OpenBSD: dwc2var.h,v 1.22 2021/07/30 18:05:24 mglocker Exp $ */ /* $NetBSD: dwc2var.h,v 1.3 2013/10/22 12:57:40 skrll Exp $ */ /*- @@ -125,7 +125,7 @@ dwc2_root_intr(dwc2_softc_t *sc) /* * XXX Compat */ -#define DWC2_MAXISOCPACKETS 16 /* XXX: Fix nframes handling */ +#define DWC2_MAXISOCPACKETS 40 /* XXX: Fix nframes handling */ #define ENOSR 90 #define device_xname(d) ((d)->dv_xname) #define jiffies hardclock_ticks -- 2.20.1