[U-Boot] [PATCH] Fix USB keyboard polling via control endpoint

2014-04-06 Thread Adrian Cox
USB keyboard polling failed for some keyboards on PowerPC 5020. This was caused by requesting only 4 bytes of data from keyboards that produce an 8 byte HID report. Signed-off-by: Adrian Cox --- common/usb_kbd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common

Re: [U-Boot] [PATCH] Fix USB keyboard polling via control endpoint

2014-04-07 Thread Adrian Cox
currences of this magic number 8 by replacing it with > USB_KBD_PDATA_SIZE so the could should also be easier to read. I've tested your extended patch, and it does fix the problem for me. I agree that adding USB_KBD_PDATA_SIZE does improve readability. Thanks and regards, Adrian Cox __

[U-Boot] [PATCH] Enable big-endian processors to use EHCI interrupt transfers

2014-04-09 Thread Adrian Cox
Add endian support macros to interrupt transfers in the EHCI driver, to allow operation on PowerPC. Signed-off-by: Adrian Cox --- drivers/usb/host/ehci-hcd.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/usb/host

[U-Boot] [PATCH] Enable big-endian processors to use EHCI interrupt transfers

2014-04-09 Thread Adrian Cox
Add endian support macros to interrupt transfers in the EHCI driver, to allow operation on PowerPC. Signed-off-by: Adrian Cox --- drivers/usb/host/ehci-hcd.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/usb/host

Re: [U-Boot] [PATCH] Fix USB keyboard polling via control endpoint

2014-04-10 Thread Adrian Cox
the only > place that > mentions the high-speed HID device report size limit. How about renaming to USB_KBD_BOOT_REPORT_SIZE? We know that the keyboard report will be 8 bytes because we explicitly set the keyboard into boot protocol (Appendix B of HID 1.11: "The report may n

[U-Boot] [PATCH v2] Add endian support macros to interrupt transfers in the EHCI driver.

2014-04-10 Thread Adrian Cox
Update the EHCI driver to support interrupt transfers on PowerPC. Signed-off-by: Adrian Cox --- Changes in v2: - Whitespace and line length fixes for checkstyle drivers/usb/host/ehci-hcd.c | 56 --- 1 file changed, 31 insertions(+), 25 deletions

[U-Boot] [PATCH v3] Fix USB keyboard polling via control endpoint

2014-04-10 Thread Adrian Cox
USB keyboard polling failed for some keyboards on PowerPC 5020. This was caused by requesting only 4 bytes of data from keyboards that produce an 8 byte HID report. Signed-off-by: Adrian Cox Signed-off-by: Wolfgang Denk Cc: Marek Vasut --- Changes in v3: - Fixed checkstyle warnings