summaryrefslogtreecommitdiff
path: root/seabios-macbook-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'seabios-macbook-fix.patch')
-rw-r--r--seabios-macbook-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/seabios-macbook-fix.patch b/seabios-macbook-fix.patch
new file mode 100644
index 0000000..d537501
--- /dev/null
+++ b/seabios-macbook-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/hw/usb-hid.c b/src/hw/usb-hid.c
+index fa4d9a2..7d3561c 100644
+--- a/src/hw/usb-hid.c
++++ b/src/hw/usb-hid.c
+@@ -59,7 +59,7 @@ usb_kbd_setup(struct usbdevice_s *usbdev
+ // XXX - this enables the first found keyboard (could be random)
+ return -1;
+
+- if (epdesc->wMaxPacketSize != 8)
++ if (epdesc->wMaxPacketSize != 8 && epdesc->wMaxPacketSize != 10)
+ return -1;
+
+ // Enable "boot" protocol.