* [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove
@ 2024-10-08 23:30 Rosen Penev
2024-10-09 8:23 ` Breno Leitao
2024-10-10 2:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Rosen Penev @ 2024-10-08 23:30 UTC (permalink / raw)
To: netdev
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rosen Penev, Jeff Johnson, Breno Leitao, Christian Marangi,
Uwe Kleine-König, David Gibson, Jeff Garzik, open list
It's done in probe so it should be done here.
Fixes: 1d3bb996 ("Device tree aware EMAC driver")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
v2: Rebase and add proper fixes line.
drivers/net/ethernet/ibm/emac/mal.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c
index a93423035325..c634534710d9 100644
--- a/drivers/net/ethernet/ibm/emac/mal.c
+++ b/drivers/net/ethernet/ibm/emac/mal.c
@@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev)
free_netdev(mal->dummy_dev);
+ dcr_unmap(mal->dcr_host, 0x100);
+
dma_free_coherent(&ofdev->dev,
sizeof(struct mal_descriptor) *
(NUM_TX_BUFF * mal->num_tx_chans +
--
2.46.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-08 23:30 [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove Rosen Penev @ 2024-10-09 8:23 ` Breno Leitao 2024-10-10 2:28 ` Jakub Kicinski 2024-10-10 2:30 ` patchwork-bot+netdevbpf 1 sibling, 1 reply; 5+ messages in thread From: Breno Leitao @ 2024-10-09 8:23 UTC (permalink / raw) To: Rosen Penev Cc: netdev, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Jeff Johnson, Christian Marangi, Uwe Kleine-König, David Gibson, Jeff Garzik, open list Hello Rosen, On Tue, Oct 08, 2024 at 04:30:50PM -0700, Rosen Penev wrote: > It's done in probe so it should be done here. > > Fixes: 1d3bb996 ("Device tree aware EMAC driver") > Signed-off-by: Rosen Penev <rosenp@gmail.com> > --- > v2: Rebase and add proper fixes line. > drivers/net/ethernet/ibm/emac/mal.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c > index a93423035325..c634534710d9 100644 > --- a/drivers/net/ethernet/ibm/emac/mal.c > +++ b/drivers/net/ethernet/ibm/emac/mal.c > @@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev) > > free_netdev(mal->dummy_dev); > > + dcr_unmap(mal->dcr_host, 0x100); > + > dma_free_coherent(&ofdev->dev, > sizeof(struct mal_descriptor) * > (NUM_TX_BUFF * mal->num_tx_chans + The fix per see seems correct, but, there are a few things you might want to improve: 1) Fixes: format Your "Fixes:" line does not follow the expected format, as detected by checkpatch. you might want something as: Fixes: 1d3bb996481e ("Device tree aware EMAC driver") 2) The description can be improved. For instance, you say it is done in probe but not in remove. Why should it be done in remove instead of removed from probe()? That would help me to review it better, instead of going into the code and figure it out. Once you have fixed it, feel free to add: Reviewed-by: Breno Leitao <leitao@debian.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-09 8:23 ` Breno Leitao @ 2024-10-10 2:28 ` Jakub Kicinski 2024-10-10 2:53 ` Rosen Penev 0 siblings, 1 reply; 5+ messages in thread From: Jakub Kicinski @ 2024-10-10 2:28 UTC (permalink / raw) To: Breno Leitao Cc: Rosen Penev, netdev, David S. Miller, Eric Dumazet, Paolo Abeni, Jeff Johnson, Christian Marangi, Uwe Kleine-König, David Gibson, Jeff Garzik, open list On Wed, 9 Oct 2024 01:23:02 -0700 Breno Leitao wrote: > Hello Rosen, > > On Tue, Oct 08, 2024 at 04:30:50PM -0700, Rosen Penev wrote: > > It's done in probe so it should be done here. > > > > Fixes: 1d3bb996 ("Device tree aware EMAC driver") > > Signed-off-by: Rosen Penev <rosenp@gmail.com> > > --- > > v2: Rebase and add proper fixes line. > > drivers/net/ethernet/ibm/emac/mal.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c > > index a93423035325..c634534710d9 100644 > > --- a/drivers/net/ethernet/ibm/emac/mal.c > > +++ b/drivers/net/ethernet/ibm/emac/mal.c > > @@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev) > > > > free_netdev(mal->dummy_dev); > > > > + dcr_unmap(mal->dcr_host, 0x100); > > + > > dma_free_coherent(&ofdev->dev, > > sizeof(struct mal_descriptor) * > > (NUM_TX_BUFF * mal->num_tx_chans + > > The fix per see seems correct, but, there are a few things you might > want to improve: > > 1) Fixes: format > Your "Fixes:" line does not follow the expected format, as detected by > checkpatch. you might want something as: > > Fixes: 1d3bb996481e ("Device tree aware EMAC driver") > > > 2) The description can be improved. For instance, you say it is done in > probe but not in remove. Why should it be done in remove instead of > removed from probe()? That would help me to review it better, instead of > going into the code and figure it out. > > Once you have fixed it, feel free to add: > > Reviewed-by: Breno Leitao <leitao@debian.org> Good points, I'll fix when applying - I want to make sure this gets into tomorrow's PR 'cause Rosen has patches for net-next depending on it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-10 2:28 ` Jakub Kicinski @ 2024-10-10 2:53 ` Rosen Penev 0 siblings, 0 replies; 5+ messages in thread From: Rosen Penev @ 2024-10-10 2:53 UTC (permalink / raw) To: Jakub Kicinski Cc: Breno Leitao, netdev, David S. Miller, Eric Dumazet, Paolo Abeni, Jeff Johnson, Christian Marangi, Uwe Kleine-König, David Gibson, Jeff Garzik, open list On Wed, Oct 9, 2024 at 7:28 PM Jakub Kicinski <kuba@kernel.org> wrote: > > On Wed, 9 Oct 2024 01:23:02 -0700 Breno Leitao wrote: > > Hello Rosen, > > > > On Tue, Oct 08, 2024 at 04:30:50PM -0700, Rosen Penev wrote: > > > It's done in probe so it should be done here. > > > > > > Fixes: 1d3bb996 ("Device tree aware EMAC driver") > > > Signed-off-by: Rosen Penev <rosenp@gmail.com> > > > --- > > > v2: Rebase and add proper fixes line. > > > drivers/net/ethernet/ibm/emac/mal.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c > > > index a93423035325..c634534710d9 100644 > > > --- a/drivers/net/ethernet/ibm/emac/mal.c > > > +++ b/drivers/net/ethernet/ibm/emac/mal.c > > > @@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev) > > > > > > free_netdev(mal->dummy_dev); > > > > > > + dcr_unmap(mal->dcr_host, 0x100); > > > + > > > dma_free_coherent(&ofdev->dev, > > > sizeof(struct mal_descriptor) * > > > (NUM_TX_BUFF * mal->num_tx_chans + > > > > The fix per see seems correct, but, there are a few things you might > > want to improve: > > > > 1) Fixes: format > > Your "Fixes:" line does not follow the expected format, as detected by > > checkpatch. you might want something as: > > > > Fixes: 1d3bb996481e ("Device tree aware EMAC driver") > > > > > > 2) The description can be improved. For instance, you say it is done in > > probe but not in remove. Why should it be done in remove instead of > > removed from probe()? That would help me to review it better, instead of > > going into the code and figure it out. > > > > Once you have fixed it, feel free to add: > > > > Reviewed-by: Breno Leitao <leitao@debian.org> > > Good points, I'll fix when applying - I want to make sure this gets > into tomorrow's PR 'cause Rosen has patches for net-next depending > on it. Much appreciated. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-08 23:30 [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove Rosen Penev 2024-10-09 8:23 ` Breno Leitao @ 2024-10-10 2:30 ` patchwork-bot+netdevbpf 1 sibling, 0 replies; 5+ messages in thread From: patchwork-bot+netdevbpf @ 2024-10-10 2:30 UTC (permalink / raw) To: Rosen Penev Cc: netdev, davem, edumazet, kuba, pabeni, quic_jjohnson, leitao, ansuelsmth, u.kleine-koenig, david, jeff, linux-kernel Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 8 Oct 2024 16:30:50 -0700 you wrote: > It's done in probe so it should be done here. > > Fixes: 1d3bb996 ("Device tree aware EMAC driver") > Signed-off-by: Rosen Penev <rosenp@gmail.com> > --- > v2: Rebase and add proper fixes line. > drivers/net/ethernet/ibm/emac/mal.c | 2 ++ > 1 file changed, 2 insertions(+) Here is the summary with links: - [PATCHv2,net] net: ibm: emac: mal: add dcr_unmap to _remove https://git.kernel.org/netdev/net/c/080ddc22f3b0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-10 2:53 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-10-08 23:30 [PATCHv2 net] net: ibm: emac: mal: add dcr_unmap to _remove Rosen Penev 2024-10-09 8:23 ` Breno Leitao 2024-10-10 2:28 ` Jakub Kicinski 2024-10-10 2:53 ` Rosen Penev 2024-10-10 2:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox