]> git.baikalelectronics.ru Git - kernel.git/commit
phy: Add set_mode callback
authorDavid Lechner <david@lechnology.com>
Mon, 9 May 2016 23:39:59 +0000 (18:39 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 4 Jul 2016 11:49:22 +0000 (17:19 +0530)
commit34fbfa49bb90a8790f0b54e5ed353e8723bb569b
tree62c0de657f6928db11a9139c3c552b877ec7958b
parent9e9fc0c10f75c0bb850674c72d5f1fe90077be45
phy: Add set_mode callback

The initial use for this is for PHYs that have a mode related to USB OTG.
There are several SoCs (e.g. TI OMAP and DA8xx) that have a mode setting
in the USB PHY to override OTG VBUS and ID signals.

Of course, the enum can be expaned in the future to include modes for
other types of PHYs as well.

Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
drivers/phy/phy-core.c
include/linux/phy/phy.h