u-boot/board/ti
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
..
am43xx env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
am57xx TI: am57xx; Remove am57xx_evm_nodt_defconfig 2017-11-21 08:03:32 -05:00
am335x env: Rename getenv_hex(), getenv_yesno(), getenv_ulong() 2017-08-16 08:30:32 -04:00
am3517crane Configs: Migrate CONFIG_SYS_I2C_OMAP34XX to CONFIG_SYS_I2C_OMAP24XX 2017-08-09 06:14:13 +02:00
beagle env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
common env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr() 2017-08-16 08:23:56 -04:00
dra7xx board: ti: dra71x-evm: Hook LDO1 of LP8733 to EN_PIN 2017-11-17 07:43:32 -05:00
evm omap3: evm: Fixes for CONFIG_NAND, SPL_OS_BOOT, USB, and environment 2017-09-03 15:30:36 -04:00
ks2_evm dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig 2017-10-05 21:31:04 -04:00
omap5_uevm usb: hub: identify the hub-device to usb_hub_reset_devices 2017-11-26 02:22:36 +01:00
panda env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
sdp4430 omap4: sdp4430: match the #endif comment to #ifdef 2017-10-27 08:52:22 -04:00
ti814x env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
ti816x env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00