diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-08 13:57:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-08 13:57:51 -0400 |
commit | 19915e623458004547c1c2490b09bb923fe69337 (patch) | |
tree | b794a81ddf083ed08a5bb32820c2dd0121ed74b2 /drivers/phy | |
parent | 4e47dcf78d2fa0b6316b6d563a055fdcc93bd222 (diff) | |
parent | d4a4f75cd8f29cd9464a5a32e9224a91571d6649 (diff) |
Merge 4.1-rc7 into usb-next
This resolves a merge issue in musb_core.c and we want the fixes that
were in Linus's tree in this branch as well for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/Kconfig | 10 | ||||
-rw-r--r-- | drivers/phy/phy-core.c | 4 | ||||
-rw-r--r-- | drivers/phy/phy-omap-usb2.c | 1 | ||||
-rw-r--r-- | drivers/phy/phy-rcar-gen2.c | 4 |
4 files changed, 12 insertions, 7 deletions
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 56e1b7585d27..15cab070f582 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig | |||
@@ -38,7 +38,9 @@ config ARMADA375_USBCLUSTER_PHY | |||
38 | config PHY_DM816X_USB | 38 | config PHY_DM816X_USB |
39 | tristate "TI dm816x USB PHY driver" | 39 | tristate "TI dm816x USB PHY driver" |
40 | depends on ARCH_OMAP2PLUS | 40 | depends on ARCH_OMAP2PLUS |
41 | depends on USB_SUPPORT | ||
41 | select GENERIC_PHY | 42 | select GENERIC_PHY |
43 | select USB_PHY | ||
42 | help | 44 | help |
43 | Enable this for dm816x USB to work. | 45 | Enable this for dm816x USB to work. |
44 | 46 | ||
@@ -97,8 +99,9 @@ config OMAP_CONTROL_PHY | |||
97 | config OMAP_USB2 | 99 | config OMAP_USB2 |
98 | tristate "OMAP USB2 PHY Driver" | 100 | tristate "OMAP USB2 PHY Driver" |
99 | depends on ARCH_OMAP2PLUS | 101 | depends on ARCH_OMAP2PLUS |
100 | depends on USB_PHY | 102 | depends on USB_SUPPORT |
101 | select GENERIC_PHY | 103 | select GENERIC_PHY |
104 | select USB_PHY | ||
102 | select OMAP_CONTROL_PHY | 105 | select OMAP_CONTROL_PHY |
103 | depends on OMAP_OCP2SCP | 106 | depends on OMAP_OCP2SCP |
104 | help | 107 | help |
@@ -122,8 +125,9 @@ config TI_PIPE3 | |||
122 | config TWL4030_USB | 125 | config TWL4030_USB |
123 | tristate "TWL4030 USB Transceiver Driver" | 126 | tristate "TWL4030 USB Transceiver Driver" |
124 | depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS | 127 | depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS |
125 | depends on USB_PHY | 128 | depends on USB_SUPPORT |
126 | select GENERIC_PHY | 129 | select GENERIC_PHY |
130 | select USB_PHY | ||
127 | help | 131 | help |
128 | Enable this to support the USB OTG transceiver on TWL4030 | 132 | Enable this to support the USB OTG transceiver on TWL4030 |
129 | family chips (including the TWL5030 and TPS659x0 devices). | 133 | family chips (including the TWL5030 and TPS659x0 devices). |
@@ -304,7 +308,7 @@ config PHY_STIH41X_USB | |||
304 | 308 | ||
305 | config PHY_QCOM_UFS | 309 | config PHY_QCOM_UFS |
306 | tristate "Qualcomm UFS PHY driver" | 310 | tristate "Qualcomm UFS PHY driver" |
307 | depends on OF && ARCH_MSM | 311 | depends on OF && ARCH_QCOM |
308 | select GENERIC_PHY | 312 | select GENERIC_PHY |
309 | help | 313 | help |
310 | Support for UFS PHY on QCOM chipsets. | 314 | Support for UFS PHY on QCOM chipsets. |
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 7d535dbb63ee..fc48fac003a6 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c | |||
@@ -538,7 +538,7 @@ struct phy *phy_optional_get(struct device *dev, const char *string) | |||
538 | { | 538 | { |
539 | struct phy *phy = phy_get(dev, string); | 539 | struct phy *phy = phy_get(dev, string); |
540 | 540 | ||
541 | if (PTR_ERR(phy) == -ENODEV) | 541 | if (IS_ERR(phy) && (PTR_ERR(phy) == -ENODEV)) |
542 | phy = NULL; | 542 | phy = NULL; |
543 | 543 | ||
544 | return phy; | 544 | return phy; |
@@ -592,7 +592,7 @@ struct phy *devm_phy_optional_get(struct device *dev, const char *string) | |||
592 | { | 592 | { |
593 | struct phy *phy = devm_phy_get(dev, string); | 593 | struct phy *phy = devm_phy_get(dev, string); |
594 | 594 | ||
595 | if (PTR_ERR(phy) == -ENODEV) | 595 | if (IS_ERR(phy) && (PTR_ERR(phy) == -ENODEV)) |
596 | phy = NULL; | 596 | phy = NULL; |
597 | 597 | ||
598 | return phy; | 598 | return phy; |
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index 183ef4368101..c1a468686bdc 100644 --- a/drivers/phy/phy-omap-usb2.c +++ b/drivers/phy/phy-omap-usb2.c | |||
@@ -275,6 +275,7 @@ static int omap_usb2_probe(struct platform_device *pdev) | |||
275 | phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); | 275 | phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); |
276 | if (IS_ERR(phy->wkupclk)) { | 276 | if (IS_ERR(phy->wkupclk)) { |
277 | dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); | 277 | dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); |
278 | pm_runtime_disable(phy->dev); | ||
278 | return PTR_ERR(phy->wkupclk); | 279 | return PTR_ERR(phy->wkupclk); |
279 | } else { | 280 | } else { |
280 | dev_warn(&pdev->dev, | 281 | dev_warn(&pdev->dev, |
diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index 0050301dce7a..39d9b2995435 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #define USBHS_LPSTS 0x02 | 23 | #define USBHS_LPSTS 0x02 |
24 | #define USBHS_UGCTRL 0x80 | 24 | #define USBHS_UGCTRL 0x80 |
25 | #define USBHS_UGCTRL2 0x84 | 25 | #define USBHS_UGCTRL2 0x84 |
26 | #define USBHS_UGSTS 0x88 /* The manuals have 0x90 */ | 26 | #define USBHS_UGSTS 0x88 /* From technical update */ |
27 | 27 | ||
28 | /* Low Power Status register (LPSTS) */ | 28 | /* Low Power Status register (LPSTS) */ |
29 | #define USBHS_LPSTS_SUSPM 0x4000 | 29 | #define USBHS_LPSTS_SUSPM 0x4000 |
@@ -41,7 +41,7 @@ | |||
41 | #define USBHS_UGCTRL2_USB0SEL_HS_USB 0x00000030 | 41 | #define USBHS_UGCTRL2_USB0SEL_HS_USB 0x00000030 |
42 | 42 | ||
43 | /* USB General status register (UGSTS) */ | 43 | /* USB General status register (UGSTS) */ |
44 | #define USBHS_UGSTS_LOCK 0x00000300 /* The manuals have 0x3 */ | 44 | #define USBHS_UGSTS_LOCK 0x00000100 /* From technical update */ |
45 | 45 | ||
46 | #define PHYS_PER_CHANNEL 2 | 46 | #define PHYS_PER_CHANNEL 2 |
47 | 47 | ||