usb: misc: usb3503: make sure reset is low for at least 100us
authorStefan Agner <stefan@agner.ch>
Thu, 11 Jan 2018 13:47:40 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:45:25 +0000 (09:45 +0100)
commitf562a823dd2564e8af78424e9580031387809bfd
treef659393bf86d0a37230eae0389efa3a6befb56ce
parentd5f322fea60a96812ba3ab079bf03e27be4fc225
usb: misc: usb3503: make sure reset is low for at least 100us

commit b8626f1dc29d3eee444bfaa92146ec7b291ef41c upstream.

When using a GPIO which is high by default, and initialize the
driver in USB Hub mode, initialization fails with:
  [  111.757794] usb3503 0-0008: SP_ILOCK failed (-5)

The reason seems to be that the chip is not properly reset.
Probe does initialize reset low, however some lines later the
code already set it back high, which is not long enouth.

Make sure reset is asserted for at least 100us by inserting a
delay after initializing the reset pin during probe.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb3503.c