0032-USB-fix-roothub-for-IFXHCD.patch 898 B

12345678910111213141516171819202122232425262728293031
  1. From 326714a47233e4a524afa0c8398276fddf0dbd4d Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Thu, 6 Dec 2012 19:59:53 +0100
  4. Subject: [PATCH 32/36] USB: fix roothub for IFXHCD
  5. ---
  6. arch/mips/lantiq/Kconfig | 1 +
  7. drivers/usb/core/hub.c | 2 +-
  8. 2 files changed, 2 insertions(+), 1 deletion(-)
  9. --- a/arch/mips/lantiq/Kconfig
  10. +++ b/arch/mips/lantiq/Kconfig
  11. @@ -3,6 +3,7 @@ if LANTIQ
  12. config SOC_TYPE_XWAY
  13. bool
  14. select PINCTRL_XWAY
  15. + select USB_ARCH_HAS_HCD
  16. default n
  17. choice
  18. --- a/drivers/usb/core/hub.c
  19. +++ b/drivers/usb/core/hub.c
  20. @@ -4358,7 +4358,7 @@ hub_port_init(struct usb_hub *hub, struc
  21. udev->ttport = hdev->ttport;
  22. } else if (udev->speed != USB_SPEED_HIGH
  23. && hdev->speed == USB_SPEED_HIGH) {
  24. - if (!hub->tt.hub) {
  25. + if (hdev->parent && !hub->tt.hub) {
  26. dev_err(&udev->dev, "parent hub has no TT\n");
  27. retval = -EINVAL;
  28. goto fail;