]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge tag 'phy-for-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2015 05:13:41 +0000 (14:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2015 05:13:41 +0000 (14:13 +0900)
Kishon writes:

phy: for 4.2 merge window

*) new Broadcom SATA3 PHY driver for Broadcom STB SoCs
*) new phy API to get PHY by index which is used in EHCI and
   OHCI controller drivers
*) support specifying supply at port level used for multi-port PHYs
*) sparse warning fixes in miphy PHYs
*) fix pm_runtime issues in twl4030 driver

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1  2 
drivers/phy/Kconfig
drivers/phy/Makefile
drivers/usb/host/ehci-platform.c

index fceac96c2a31fca71956b36eac0bca2c30f2cb4d,36788b6f0220a0a1f6958ae524b6ddc968c67918..56e1b7585d27c6a810ce76b3f3a65c40486d7121
@@@ -309,11 -309,13 +309,20 @@@ config PHY_QCOM_UF
        help
          Support for UFS PHY on QCOM chipsets.
  
 +config PHY_TUSB1210
 +      tristate "TI TUSB1210 ULPI PHY module"
 +      depends on USB_ULPI_BUS
 +      select GENERIC_PHY
 +      help
 +        Support for TI TUSB1210 USB ULPI PHY.
 +
+ config PHY_BRCMSTB_SATA
+       tristate "Broadcom STB SATA PHY driver"
+       depends on ARCH_BRCMSTB
+       depends on OF
+       select GENERIC_PHY
+       help
+         Enable this to support the SATA3 PHY on 28nm Broadcom STB SoCs.
+         Likely useful only with CONFIG_SATA_BRCMSTB enabled.
  endmenu
index 0a204180313576f2722c1fc34c443dfdb0b206ca,c61f3fdd191efde603f3bcda1ea34032ae422efd..bc92b427e5ca611003776f41a865803e39a1fbc1
@@@ -40,4 -40,4 +40,5 @@@ obj-$(CONFIG_PHY_STIH41X_USB)         += phy-s
  obj-$(CONFIG_PHY_QCOM_UFS)    += phy-qcom-ufs.o
  obj-$(CONFIG_PHY_QCOM_UFS)    += phy-qcom-ufs-qmp-20nm.o
  obj-$(CONFIG_PHY_QCOM_UFS)    += phy-qcom-ufs-qmp-14nm.o
 +obj-$(CONFIG_PHY_TUSB1210)            += phy-tusb1210.o
+ obj-$(CONFIG_PHY_BRCMSTB_SATA)                += phy-brcmstb-sata.o
index ba07f16b13e09c34c30c8e83a68f3da0aec48d20,145bf19ec283a31716cf5704f92df783a6150029..2593def13cea09c1a37210c6780c8752229b4f60
@@@ -202,42 -195,24 +195,28 @@@ static int ehci_platform_probe(struct p
                                          "needs-reset-on-resume"))
                        pdata->reset_on_resume = 1;
  
 +              if (of_property_read_bool(dev->dev.of_node,
 +                                        "has-transaction-translator"))
 +                      pdata->has_tt = 1;
 +
                priv->num_phys = of_count_phandle_with_args(dev->dev.of_node,
                                "phys", "#phy-cells");
-               priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1;
  
-               priv->phys = devm_kcalloc(&dev->dev, priv->num_phys,
-                               sizeof(struct phy *), GFP_KERNEL);
-               if (!priv->phys)
-                       return -ENOMEM;
+               if (priv->num_phys > 0) {
+                       priv->phys = devm_kcalloc(&dev->dev, priv->num_phys,
+                                           sizeof(struct phy *), GFP_KERNEL);
+                       if (!priv->phys)
+                               return -ENOMEM;
+               } else
+                       priv->num_phys = 0;
  
                for (phy_num = 0; phy_num < priv->num_phys; phy_num++) {
-                               err = of_property_read_string_index(
-                                               dev->dev.of_node,
-                                               "phy-names", phy_num,
-                                               &phy_name);
-                               if (err < 0) {
-                                       if (priv->num_phys > 1) {
-                                               dev_err(&dev->dev, "phy-names not provided");
-                                               goto err_put_hcd;
-                                       } else
-                                               phy_name = "usb";
-                               }
-                               priv->phys[phy_num] = devm_phy_get(&dev->dev,
-                                               phy_name);
-                               if (IS_ERR(priv->phys[phy_num])) {
-                                       err = PTR_ERR(priv->phys[phy_num]);
-                                       if ((priv->num_phys > 1) ||
-                                           (err == -EPROBE_DEFER))
-                                               goto err_put_hcd;
-                                       priv->phys[phy_num] = NULL;
-                               }
+                       priv->phys[phy_num] = devm_of_phy_get_by_index(
+                                       &dev->dev, dev->dev.of_node, phy_num);
+                       if (IS_ERR(priv->phys[phy_num])) {
+                               err = PTR_ERR(priv->phys[phy_num]);
+                                       goto err_put_hcd;
+                       }
                }
  
                for (clk = 0; clk < EHCI_MAX_CLKS; clk++) {