phy: renesas: rcar-gen3-usb2: add conditions for uses_otg_pins == false
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 21 Sep 2018 11:53:23 +0000 (20:53 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:11 +0000 (16:10 +0530)
commita602152c81a2c1c0daeae56d145d558d52a70dae
tree02d4b8283708a49630f478eb477ec234139f66ac
parent73801b90a38ff1ee89ad38c925fa37fbcb421bfc
phy: renesas: rcar-gen3-usb2: add conditions for uses_otg_pins == false

If uses_otg_pins is set to false, this driver 1) should disable otg
related interruptions, and 2) should not get ID pin signal, to avoid
unexpected behaviors. So, this patch adds conditions for it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/renesas/phy-rcar-gen3-usb2.c