usb: cdns3: introduce set_phy_power_on{off} APIs
authorPeter Chen <peter.chen@nxp.com>
Wed, 2 Sep 2020 09:57:31 +0000 (17:57 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:38 +0000 (09:57 +0300)
commitefe2fa0836a7a051a816c90b44f07590f2fd74c5
tree9264edf64cac63a0ef35127017925464cf2d00a8
parent753a18c2596de2edf01259db24940010dd1c6d9e
usb: cdns3: introduce set_phy_power_on{off} APIs

Since we have both USB2 and USB3 PHYs for cdns3 controller, it is
better we have unity APIs to handle both USB2 and USB3's power, it
could simplify code for error handling and further power management
implementation.

Reviewed-by: Pawel Laszczak <pawell@cadence.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/core.c