Skip to contentSkip to conversation

ohci: relax link check

PATCH In review Gerd Hoffmann 3 participants 3 messages Mar 7, 2017 – Mar 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ohci: relax link check

The strict td link limit added by commit "95ed569 usb: ohci: limit the number of link eds" causes problems with macos guests. Lets raise the limit.

---
 hw/usb/hcd-ohci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-ohci.c +1 -1
index fe8406a..3ada35e 100644
@@ -42,7 +42,7 @@
 
 #define OHCI_MAX_PORTS 15
 
-#define ED_LINK_LIMIT 4
+#define ED_LINK_LIMIT 32
 
 static int64_t usb_frame_time;
 static int64_t usb_bit_time;
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Gerd Hoffmann

The strict td link limit added by commit "95ed569 usb: ohci: limit the number of link eds" causes problems with macos guests. Lets raise the limit.

I've also tested that this fixes mouse under MorphOS as well. However I'm not sure that this limit is correct for every possible USB devices so this may need to be increased in the future if a device is found needing more linked TDs.

Quoted 18 lines

---
hw/usb/hcd-ohci.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-ohci.c +1 -1
index fe8406a..3ada35e 100644
@@ -42,7 +42,7 @@
 
 #define OHCI_MAX_PORTS 15
 
-#define ED_LINK_LIMIT 4
+#define ED_LINK_LIMIT 32
 
 static int64_t usb_frame_time;
 static int64_t usb_bit_time;
Reviewed-by on v1 1/1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 26 lines · Gerd Hoffmann

The strict td link limit added by commit "95ed569 usb: ohci: limit the number of link eds" causes problems with macos guests. Lets raise the limit.

---
hw/usb/hcd-ohci.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-ohci.c +1 -1
index fe8406a..3ada35e 100644
@@ -42,7 +42,7 @@
 
 #define OHCI_MAX_PORTS 15
 
-#define ED_LINK_LIMIT 4
+#define ED_LINK_LIMIT 32
 
 static int64_t usb_frame_time;
 static int64_t usb_bit_time;
Signature · 1 line
1.8.3.1

Tested with Mac OS 10.4 and Mac OS 9.2.