From ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7 Mon Sep 17 00:00:00 2001 From: Zoltan Herpai Date: Thu, 6 Mar 2014 00:09:30 +0000 Subject: sunxi: driver refresh for 3.13 - update gmac / mmc / usb / ahci drivers to follow mainline dev trees - add driver for spi - update clock support - update a31 support - move to new DT compats where appropriate - re-order patchqueue where needed - verified working a20 smp - move most DTSes off files/ - update defconfig Signed-off-by: Zoltan HERPAI SVN-Revision: 39782 --- .../160-2-phy-core-dont-porpagate-ENOSUPP.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 target/linux/sunxi/patches-3.13/160-2-phy-core-dont-porpagate-ENOSUPP.patch (limited to 'target/linux/sunxi/patches-3.13/160-2-phy-core-dont-porpagate-ENOSUPP.patch') diff --git a/target/linux/sunxi/patches-3.13/160-2-phy-core-dont-porpagate-ENOSUPP.patch b/target/linux/sunxi/patches-3.13/160-2-phy-core-dont-porpagate-ENOSUPP.patch new file mode 100644 index 0000000..5caeb8b --- /dev/null +++ b/target/linux/sunxi/patches-3.13/160-2-phy-core-dont-porpagate-ENOSUPP.patch @@ -0,0 +1,40 @@ +From 37e3cce7288f7d5c34ae630f16faf48bd3d01c18 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Sun, 5 Jan 2014 22:40:39 +0100 +Subject: [PATCH] phy-core: Don't propagate -ENOSUPP from + phy_pm_runtime_get_sync to caller + +The phy-core allows phy_init and phy_power_on to be called multiple times, +but before this patch -ENOSUPP from phy_pm_runtime_get_sync would be +propagated to the caller for the 2nd and later calls. + +Signed-off-by: Hans de Goede +--- + drivers/phy/phy-core.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c +index b355553..6c73837 100644 +--- a/drivers/phy/phy-core.c ++++ b/drivers/phy/phy-core.c +@@ -176,6 +176,8 @@ int phy_init(struct phy *phy) + dev_err(&phy->dev, "phy init failed --> %d\n", ret); + goto out; + } ++ } else { ++ ret = 0; /* Override possible ret == -ENOTSUPP */ + } + ++phy->init_count; + +@@ -232,6 +234,8 @@ int phy_power_on(struct phy *phy) + dev_err(&phy->dev, "phy poweron failed --> %d\n", ret); + goto out; + } ++ } else { ++ ret = 0; /* Override possible ret == -ENOTSUPP */ + } + ++phy->power_count; + mutex_unlock(&phy->mutex); +-- +1.8.5.5 + -- cgit v1.1