]> git.baikalelectronics.ru Git - kernel.git/commit
phy: renesas: rcar-gen3-usb2: fix vbus_ctrl for role sysfs
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 21 Sep 2018 11:53:18 +0000 (20:53 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:09 +0000 (16:10 +0530)
commitf8d0fe8dc1ae1cf5b0e31146290282126f33d441
tree3fb88ecb7d56e41e04c0894602e497e2721e237f
parent7a346e6019c1357fec116715531260c7619c9936
phy: renesas: rcar-gen3-usb2: fix vbus_ctrl for role sysfs

This patch fixes and issue that the vbus_ctrl is disabled by
rcar_gen3_init_from_a_peri_to_a_host(), so a usb host cannot
supply the vbus.

Note that this condition will exit when the otg irq happens
even if we don't apply this patch.

Fixes: 91e31128adf3 ("phy: rcar-gen3-usb2: add sysfs for usb role swap")
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