]> git.karo-electronics.de Git - karo-tx-linux.git/commit
phy-sun4i-usb: Refactor forced session ending
authorHans de Goede <hdegoede@redhat.com>
Wed, 7 Sep 2016 20:20:38 +0000 (22:20 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:45:19 +0000 (17:15 +0530)
commit36f9159ba99076ab643794a83735197b4042b16f
tree8e6cec1166753ff1ab240ff06fc53aaebb703b73
parent9745ceebc4e1e593ddba1b1a104a4a99f2b9a556
phy-sun4i-usb: Refactor forced session ending

The phy-sun4i-usb code supports forced ending a session on systems
which lack Vbus detection, to allow switching between host and peripheral
mode on such systems.

Role switching via the musb driver "mode" sysfs attribute requires force
ending the session too. This commit refactors the code to allow other
parts of the phy-sun4i-usb code to request a forced session end.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c