]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: misc: onboard_dev: extend platform data to add power on delay field
authorRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Sat, 7 Sep 2024 18:03:15 +0000 (23:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:36:25 +0000 (15:36 +0200)
commit908f61bedb2c40c6d856bbfd7f870b967a4cb498
treeb537c39849d5e31aa37c8491e170b2f869fbf1c0
parent2c6b6afa59e78bebcb65bbc8a76b3459f139547c
usb: misc: onboard_dev: extend platform data to add power on delay field

Introduce dedicated field 'power_on_delay_us' in onboard platform data
and update its delay for USB5744 configuration. Hub itself requires some
delay after reset to get to state where configuration data is going to
be accepted. Without delay upcoming support for configuration via SMBUS
is reporting a failure on the first SMBus write.

i2c 2-002d: error -ENXIO: BYPASS_UDC_SUSPEND bit configuration failed

Similar delay is likely also required for default configuration but
because there is enough time (code execution) between reset and usage
of the hub any issue is not visible but it doesn't mean delay shouldn't
be reflected.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Suggested-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/1725732196-70975-2-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/onboard_usb_dev.c
drivers/usb/misc/onboard_usb_dev.h