Skip to content

Commit 8288c99

Browse files
tq-steinagregkh
authored andcommitted
usb: misc: onboard_usb_hub: Remove duplicated power_on delay
onboard_hub_power_on() already ensures the reset pulse width delay, so there is no need to wait right after requesting GPIO as well. Fixes: 40758e4 ("usb: misc: onboard_usb_hub: Add reset-gpio support") Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20220728064937.917935-1-alexander.stein@ew.tq-group.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ed92f43 commit 8288c99

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/usb/misc/onboard_usb_hub.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@ static int onboard_hub_probe(struct platform_device *pdev)
256256
if (IS_ERR(hub->reset_gpio))
257257
return dev_err_probe(dev, PTR_ERR(hub->reset_gpio), "failed to get reset GPIO\n");
258258

259-
if (hub->reset_gpio)
260-
fsleep(hub->pdata->reset_us);
261-
262259
hub->dev = dev;
263260
mutex_init(&hub->lock);
264261
INIT_LIST_HEAD(&hub->udev_list);

0 commit comments

Comments
 (0)