Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419812 > unrolled thread

[PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

Started byIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
First post2016-06-11 00:20 +0200
Last post2016-06-13 04:10 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-11 00:20 +0200
    Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy  channels David Miller <davem@davemloft.net> - 2016-06-11 03:20 +0200
      Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy  channels Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-11 11:30 +0200
        Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy  channels Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-11 12:40 +0200
    Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy  channels David Miller <davem@davemloft.net> - 2016-06-13 04:10 +0200

#1419812 — [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

FromIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Date2016-06-11 00:20 +0200
Subject[PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
Message-ID<rICWv-2P1-61@gated-at.bofh.it>
There is no reason to destroy channels that are destroyed while
cpdma_ctlr destroy. In this case no need to remember how much
channels where created and destroy them by one, as cpdma_ctlr
destroys all of them.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
---

Based on master

 drivers/net/ethernet/ti/cpsw.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index e6bb0ec..5319089 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -2505,8 +2505,6 @@ static int cpsw_probe(struct platform_device *pdev)
 clean_ale_ret:
 	cpsw_ale_destroy(priv->ale);
 clean_dma_ret:
-	cpdma_chan_destroy(priv->txch);
-	cpdma_chan_destroy(priv->rxch);
 	cpdma_ctlr_destroy(priv->dma);
 clean_runtime_disable_ret:
 	pm_runtime_disable(&pdev->dev);
@@ -2534,8 +2532,6 @@ static int cpsw_remove(struct platform_device *pdev)
 	unregister_netdev(ndev);
 
 	cpsw_ale_destroy(priv->ale);
-	cpdma_chan_destroy(priv->txch);
-	cpdma_chan_destroy(priv->rxch);
 	cpdma_ctlr_destroy(priv->dma);
 	pm_runtime_disable(&pdev->dev);
 	device_for_each_child(&pdev->dev, NULL, cpsw_remove_child_device);
-- 
1.9.1

[toc] | [next] | [standalone]


#1419865 — Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

FromDavid Miller <davem@davemloft.net>
Date2016-06-11 03:20 +0200
SubjectRe: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
Message-ID<rIFKF-4QS-5@gated-at.bofh.it>
In reply to#1419812
From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Date: Sat, 11 Jun 2016 01:11:54 +0300

> Based on master

master... of what?

[toc] | [prev] | [next] | [standalone]


#1419951 — Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

FromIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Date2016-06-11 11:30 +0200
SubjectRe: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
Message-ID<rINoR-1h4-5@gated-at.bofh.it>
In reply to#1419865

On 11.06.16 04:17, David Miller wrote:
> From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
> Date: Sat, 11 Jun 2016 01:11:54 +0300
>
>> Based on master
>
> master... of what?
>

master of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
but it's applicable on linux-next master also.

-- 
Regards,
Ivan Khoronzhuk

[toc] | [prev] | [next] | [standalone]


#1419962 — Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

FromIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Date2016-06-11 12:40 +0200
SubjectRe: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
Message-ID<rIOuB-1UP-9@gated-at.bofh.it>
In reply to#1419951

On 11.06.16 12:24, Ivan Khoronzhuk wrote:
>
>
> On 11.06.16 04:17, David Miller wrote:
>> From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
>> Date: Sat, 11 Jun 2016 01:11:54 +0300
>>
>>> Based on master
>>
>> master... of what?
>>
>
> master of
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> but it's applicable on linux-next master also.
>

Also checked on master of
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

-- 
Regards,
Ivan Khoronzhuk

[toc] | [prev] | [next] | [standalone]


#1420407 — Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

FromDavid Miller <davem@davemloft.net>
Date2016-06-13 04:10 +0200
SubjectRe: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels
Message-ID<rJpu9-8jL-5@gated-at.bofh.it>
In reply to#1419812
From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Date: Sat, 11 Jun 2016 01:11:54 +0300

> There is no reason to destroy channels that are destroyed while
> cpdma_ctlr destroy. In this case no need to remember how much
> channels where created and destroy them by one, as cpdma_ctlr
> destroys all of them.
> 
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web