summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-07-06 10:57:04 +0000
committerhselasky <hselasky@FreeBSD.org>2016-07-06 10:57:04 +0000
commit6716d2f9c59a7e486e25adf6deb45918be1898ef (patch)
treee8b86dbd844dfb11174b0cccdecf63366a601bbe
parenta1ab1fdac648b1bbc8ef66553998da79e6257cbd (diff)
downloadFreeBSD-src-6716d2f9c59a7e486e25adf6deb45918be1898ef.zip
FreeBSD-src-6716d2f9c59a7e486e25adf6deb45918be1898ef.tar.gz
Fix regression issue with XHCI on 32-bit ARMv7 Armada-38x. Make sure
"struct xhci_dev_ctx_addr" fits into a single 4K page until further. Approved by: re (hrs) MFC after: 1 week
-rw-r--r--sys/dev/usb/controller/xhci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci.h b/sys/dev/usb/controller/xhci.h
index ee5b4b0..e8bc9ad 100644
--- a/sys/dev/usb/controller/xhci.h
+++ b/sys/dev/usb/controller/xhci.h
@@ -30,7 +30,7 @@
#define XHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128)
#define XHCI_MAX_ENDPOINTS 32 /* hardcoded - do not change */
-#define XHCI_MAX_SCRATCHPADS 1024
+#define XHCI_MAX_SCRATCHPADS 256 /* theoretical max is 1023 */
#define XHCI_MAX_EVENTS (16 * 13)
#define XHCI_MAX_COMMANDS (16 * 1)
#define XHCI_MAX_RSEG 1
OpenPOWER on IntegriCloud