u-boot/board/compulab
Philipp Tomsich 883946e8e7 usb: hub: identify the hub-device to usb_hub_reset_devices
When usb_hub_reset_devices is called, it should be passed both an
indicator which hub it should operate on and what port number (local
to that hub) should be reset.

Previously, the usb_hub.c code did not include such context and
always started resets from port number 1, performing multiple
reset-requests for the same devices:

       /*
        * Reset any devices that may be in a bad state when applying
        * the power.  This is a __weak function.  Resetting of the devices
        * should occur in the board file of the device.
        */
       for (i = 0; i < dev->maxchild; i++)
              usb_hub_reset_devices(i + 1);

This adds an additional 'hub' parameter to usb_hub_reset_devices
that provides the context to fully qualify the port-number in.

Existing implementations are changed to accept and ignore the new
parameter.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2017-11-26 02:22:36 +01:00
..
cl-som-am57x arm: am57xx: cl-som-am57x: Use new pinctrl macros 2017-09-14 21:32:55 -04:00
cl-som-imx7 arm: imx7d: add support for Compulab cl-som-imx7 2017-10-12 17:31:16 +02:00
cm_fx6 imx6: drop duplicated bss memset and board_init_r() call 2017-09-18 17:15:28 +02:00
cm_t35 net: Add SMC911X driver to Kconfig, convert 2017-10-20 21:40:26 -04:00
cm_t43 arm: am437x: cm-t43: set MPU and CORE voltages on boot 2016-02-24 18:44:09 -05:00
cm_t54 usb: hub: identify the hub-device to usb_hub_reset_devices 2017-11-26 02:22:36 +01:00
cm_t335 env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
cm_t3517 env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
common env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
trimslice dm: tegra: net: Convert tegra boards to driver model for Ethernet 2016-01-12 10:19:09 -07:00