diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-06-17 19:32:47 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2013-06-17 19:32:47 +0000 |
commit | 78a66975d65b348bb49d741e21f6399cdb27b87d (patch) | |
tree | 1971d91ef0abef99efeba6400af3d7223e82314a /target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch | |
parent | d2894412d8f78f491f0ca5c3884349c6928aadb9 (diff) | |
download | mtk-20170518-78a66975d65b348bb49d741e21f6399cdb27b87d.zip mtk-20170518-78a66975d65b348bb49d741e21f6399cdb27b87d.tar.gz mtk-20170518-78a66975d65b348bb49d741e21f6399cdb27b87d.tar.bz2 |
brcm63xx: remove support for 3.8 kernel
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36948
Diffstat (limited to 'target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch b/target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch deleted file mode 100644 index aac70f9..0000000 --- a/target/linux/brcm63xx/patches-3.8/021-bcm63xx_enet-properly-prepare-unprepare-clocks-befor.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 8d6b746129f11efe4ba69aeb2c982359d33c6ec3 Mon Sep 17 00:00:00 2001 -From: Jonas Gorski <jogo@openwrt.org> -Date: Mon, 10 Sep 2012 01:28:47 +0200 -Subject: [PATCH 3/3] bcm63xx_enet: properly prepare/unprepare clocks - before/after usage - -Use clk_prepare_enable/disable_unprepare calls in preparation for -switching to the generic clock framework. - -Signed-off-by: Jonas Gorski <jogo@openwrt.org> ---- - drivers/net/ethernet/broadcom/bcm63xx_enet.c | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - ---- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c -+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c -@@ -1671,7 +1671,7 @@ static int bcm_enet_probe(struct platfor - ret = PTR_ERR(priv->mac_clk); - goto out; - } -- clk_enable(priv->mac_clk); -+ clk_prepare_enable(priv->mac_clk); - - /* initialize default and fetch platform data */ - priv->rx_ring_size = BCMENET_DEF_RX_DESC; -@@ -1700,7 +1700,7 @@ static int bcm_enet_probe(struct platfor - priv->phy_clk = NULL; - goto out_put_clk_mac; - } -- clk_enable(priv->phy_clk); -+ clk_prepare_enable(priv->phy_clk); - } - - /* do minimal hardware init to be able to probe mii bus */ -@@ -1801,12 +1801,12 @@ out_uninit_hw: - /* turn off mdc clock */ - enet_writel(priv, 0, ENET_MIISC_REG); - if (priv->phy_clk) { -- clk_disable(priv->phy_clk); -+ clk_disable_unprepare(priv->phy_clk); - clk_put(priv->phy_clk); - } - - out_put_clk_mac: -- clk_disable(priv->mac_clk); -+ clk_disable_unprepare(priv->mac_clk); - clk_put(priv->mac_clk); - out: - free_netdev(dev); -@@ -1844,10 +1844,10 @@ static int bcm_enet_remove(struct platfo - - /* disable hw block clocks */ - if (priv->phy_clk) { -- clk_disable(priv->phy_clk); -+ clk_disable_unprepare(priv->phy_clk); - clk_put(priv->phy_clk); - } -- clk_disable(priv->mac_clk); -+ clk_disable_unprepare(priv->mac_clk); - clk_put(priv->mac_clk); - - platform_set_drvdata(pdev, NULL); |