]> 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)
commit9f3034dc8e76a0bd68319ce4c046198224dad59d
tree62c0de657f6928db11a9139c3c552b877ec7958b
parentd17aa4b87851442be58ea5609dc8099fa8437cab
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