UPSTREAM: usb: of: add an api to get dr_mode by the phy node
authorBin Liu <b-liu@ti.com>
Tue, 3 Nov 2015 17:51:15 +0000 (11:51 -0600)
committerWu Liang feng <wulf@rock-chips.com>
Mon, 12 Sep 2016 02:57:05 +0000 (10:57 +0800)
commitb9c8b9e5b21128413ede52ae80cb65ca8a46dd79
tree3108b2f8035f0703fd7445713dd5f9e383b34bc8
parent8cc3b8c47304477a274911c3ed5793574f498279
UPSTREAM: usb: of: add an api to get dr_mode by the phy node

Some USB phy drivers have different handling for the controller in each
dr_mode. But the phy driver does not have visibility to the dr_mode of
the controller.

This adds an api to return the dr_mode of the controller which
associates the given phy node.

Change-Id: I2bdf7ba8fbff03e8dd33a2f4642b4455bcdabd29
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry picked from commit 98bfb39466954c69d2a448e6ddcab6d91cd48e25)
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/common/common.c
include/linux/usb/of.h