]> git.baikalelectronics.ru Git - kernel.git/commit
phy: renesas: rcar-gen3-usb2: add is_otg_channel to use "role" sysfs
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 21 Sep 2018 11:53:24 +0000 (20:53 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:12 +0000 (16:10 +0530)
commitccd2a057eafd800734fb47702a462df46e7de553
treeb2857ea0e8f15ad872096f8e546b4fb4d295e37e
parente2b2c0f2ad0ccfb0b9b6130080155b69b06f7fa7
phy: renesas: rcar-gen3-usb2: add is_otg_channel to use "role" sysfs

Even if a board doesn't have otg pins connection, this hardware can
change the role by a register setting. So, this patch adds
"is_otg_channel" 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