OSDN Git Service

usb: renesas_usbhs: set the mode by using extcon state for non-otg channel
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 13 Dec 2017 06:46:59 +0000 (15:46 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 13 Dec 2017 10:50:24 +0000 (12:50 +0200)
commitcd14247d5c14b9b20bb3d3dfcaa899ca22c8dccc
tree72f567803efb92542fb33fb7f5d1f0360ad32a94
parentf16323fdbd40a4062fb6c89d563e26d93854caa0
usb: renesas_usbhs: set the mode by using extcon state for non-otg channel

The usbhs_rcar3_power_and_pll_ctrl() will be used by non-otg channel
(e.g. R-Car D3) and the previous code has hardcoded as peripheral mode.
So, this patch sets the mode by using extcon state.
If the channel doesn't get any extcon devices, this driver's behavior
is the same as before.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/rcar3.c