phy: renesas: rcar-gen3-usb2: change a condition "dr_mode"
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 21 Sep 2018 11:53:22 +0000 (20:53 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:11 +0000 (16:10 +0530)
commit73801b90a38ff1ee89ad38c925fa37fbcb421bfc
tree0de7b6dcff35afa371b44d0a183e74041bddbd7e
parent7ab0305d4d7725699169e21cdc4f6c8759c32feb
phy: renesas: rcar-gen3-usb2: change a condition "dr_mode"

This patch changes a condition about dr_mode. If a device node has
any dr_mode ("host", "peripheral" or "otg"), this driver allows to
set "is_otg_channel" to true. Also, this patch keeps the dr_mode
value for future use.

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