Mugunthan V N | 17 Jul 2012 20:09
Picon
Favicon

[PATCH 0/2] runtime PM support for cpsw and davinci mdio drivers

This patch set adds support for runtime PM support for CPSW and Davinci MDIO
drivers

Mugunthan V N (2):
  driver: net: ethernet: davinci_mdio: runtime PM support
  driver: net: ethernet: cpsw: runtime PM support

 drivers/net/ethernet/ti/cpsw.c         |   23 ++++++++++++++---------
 drivers/net/ethernet/ti/davinci_mdio.c |   25 ++++++++++++-------------
 2 files changed, 26 insertions(+), 22 deletions(-)

Mugunthan V N | 17 Jul 2012 20:09
Picon
Favicon

[PATCH 2/2] driver: net: ethernet: cpsw: runtime PM support

Enabling runtime PM support for cpsw driver

Signed-off-by: Mugunthan V N <mugunthanvnm <at> ti.com>
---
 drivers/net/ethernet/ti/cpsw.c |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index ca381d3..1e5d85b 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
 <at>  <at>  -27,6 +27,7  <at>  <at> 
 #include <linux/phy.h>
 #include <linux/workqueue.h>
 #include <linux/delay.h>
+#include <linux/pm_runtime.h>

 #include <linux/platform_data/cpsw.h>

 <at>  <at>  -494,11 +495,7  <at>  <at>  static int cpsw_ndo_open(struct net_device *ndev)
 	cpsw_intr_disable(priv);
 	netif_carrier_off(ndev);

-	ret = clk_enable(priv->clk);
-	if (ret < 0) {
-		dev_err(priv->dev, "unable to turn on device clock\n");
-		return ret;
-	}
+	pm_runtime_get_sync(&priv->pdev->dev);

(Continue reading)

Mugunthan V N | 17 Jul 2012 20:09
Picon
Favicon

[PATCH 1/2] driver: net: ethernet: davinci_mdio: runtime PM support

Enabling runtime PM support for davinci mdio driver

Signed-off-by: Mugunthan V N <mugunthanvnm <at> ti.com>
---
 drivers/net/ethernet/ti/davinci_mdio.c |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index e4e4708..cd7ee20 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
 <at>  <at>  -34,6 +34,7  <at>  <at> 
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/io.h>
+#include <linux/pm_runtime.h>
 #include <linux/davinci_emac.h>

 /*
 <at>  <at>  -321,7 +322,9  <at>  <at>  static int __devinit davinci_mdio_probe(struct platform_device *pdev)
 	snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s-%x",
 		pdev->name, pdev->id);

-	data->clk = clk_get(dev, NULL);
+	pm_runtime_enable(&pdev->dev);
+	pm_runtime_get_sync(&pdev->dev);
+	data->clk = clk_get(&pdev->dev, "fck");
 	if (IS_ERR(data->clk)) {
 		dev_err(dev, "failed to get device clock\n");
 		ret = PTR_ERR(data->clk);
(Continue reading)

David Miller | 17 Jul 2012 20:13
Favicon

Re: [PATCH 0/2] runtime PM support for cpsw and davinci mdio drivers


How many times do you plan on posting this patch set?
N, Mugunthan V | 17 Jul 2012 20:42
Picon
Favicon

RE: [PATCH 0/2] runtime PM support for cpsw and davinci mdio drivers

> -----Original Message-----
> From: David Miller [mailto:davem <at> davemloft.net]
> Sent: Tuesday, July 17, 2012 11:44 PM
> To: N, Mugunthan V
> Cc: netdev <at> vger.kernel.org
> Subject: Re: [PATCH 0/2] runtime PM support for cpsw and davinci mdio
> drivers
> 
> 
> How many times do you plan on posting this patch set?

Sorry, the first patch set was sent by mistake.

Regards,
Mugunthan V N.
David Miller | 18 Jul 2012 18:45
Favicon

Re: [PATCH 0/2] runtime PM support for cpsw and davinci mdio drivers

From: Mugunthan V N <mugunthanvnm <at> ti.com>
Date: Tue, 17 Jul 2012 23:39:48 +0530

> This patch set adds support for runtime PM support for CPSW and Davinci MDIO
> drivers
> 
> Mugunthan V N (2):
>   driver: net: ethernet: davinci_mdio: runtime PM support
>   driver: net: ethernet: cpsw: runtime PM support

All applied to net-next, thanks.

Gmane