OSDN Git Service

usb: uhci: Add clk support to uhci-platform
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 16 Jan 2018 09:53:14 +0000 (20:53 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 14:08:56 +0000 (15:08 +0100)
commit26c502701c5287cd826b8a62358187f4b8941363
treeaa22bf62aa4918c1651b34cc7148b04ee439147b
parentcbeef22fd611c4f47c494b821b2b105b8af970bb
usb: uhci: Add clk support to uhci-platform

The Aspeed SoCs use uhci-platform. With the new dynamic clock
control framework, the corresponding IP block clock must be
properly enabled.

This is a simplified variant of what ehci-platform does, it
looks for *one* clock attached to the device, and if it's
there, enables it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-hcd.h
drivers/usb/host/uhci-platform.c