phy: renesas: rcar-gen3-usb2: enable/disable independent irqs
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 11 Apr 2019 10:27:36 +0000 (19:27 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Apr 2019 08:43:14 +0000 (14:13 +0530)
commit549b6b55b00558183cef4af2c2bb61d4f2ffe508
tree848b8ab701b1062fc2f1768d50ce87c9a3097a56
parent92fec1c27caa7b6f2a70566625425190e14c2204
phy: renesas: rcar-gen3-usb2: enable/disable independent irqs

Since the previous code enabled/disabled the irqs both OHCI and EHCI,
it is possible to cause unexpected interruptions. To avoid this,
this patch creates multiple phy instances from phandle and
enables/disables independent irqs by the instances.

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