]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: host: fotg2: add silicon clock handling
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 1 Sep 2018 16:03:12 +0000 (18:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 18:03:50 +0000 (20:03 +0200)
commitffa8a31b5b3b81f12a9d77a574cc0b25bb8e856e
tree673a0a1f1465cd217b48b367bba7fd7348c6781f
parent697fa834c3103cda43107bce1e1c3cfb7a4603ac
usb: host: fotg2: add silicon clock handling

When used in a system with software-controlled silicon clocks,
the FOTG210 needs to grab, prepare and enable the clock.

This is needed on for example the Cortina Gemini, where the
platform will by default gate off the clock unless the
peripheral (in this case the USB driver) grabs and enables
the clock.

If there is no clock available on the platform, we live
without it. Make sure to percolate probe deferrals.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fotg210-hcd.c
drivers/usb/host/fotg210.h