net: ibm: emac: mal: add dcr_unmap to _remove
Subsystems (2)
PATCH 1/1 net: ibm: emac: mal: add dcr_unmap to _remove
It's done in probe so it should be done in remove.
--- drivers/net/ethernet/ibm/emac/mal.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/ibm/emac/mal.c +2 -0
@@ -715,6 +715,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 +
Signature · 1 line
2.46.2
Quoted 36 lines
-----Original Message-----
From: Rosen Penev <[email protected]>
Sent: Monday, October 7, 2024 1:39 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Keller, Jacob E <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH net] net: ibm: emac: mal: adddcr_unmapto_removeIt's done in probe so it should be done in remove.
Fixes 1ff0fcfcb1a6 ("ibm_newemac: Fix new MAL feature handling")Signed-off-by Rosen Penev <[email protected]>--- drivers/net/ethernet/ibm/emac/mal.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/ibm/emac/mal.c +2
-1@@ -715,6 +715,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 + --
Quoted 1 line
2.46.2
Jakub Kicinski
maintainerQuoted 3 lines · On Mon, 7 Oct 2024 13:39:23 -0700 Rosen Penev wrote:
Fixes 1ff0fcfcb1a6 ("ibm_newemac: Fix new MAL feature handling")Signed-off-by Rosen Penev <[email protected]>
I'll fix this one when applying but please make sure there is no empty lines between tags in the future.
Jakub Kicinski
maintainerQuoted 7 lines · On Mon, 7 Oct 2024 17:21:22 -0700 Jakub Kicinski wrote:
Quoted 3 lines · On Mon, 7 Oct 2024 13:39:23 -0700 Rosen Penev wrote:
Fixes 1ff0fcfcb1a6 ("ibm_newemac: Fix new MAL feature handling")Signed-off-by Rosen Penev <[email protected]>I'll fix this one when applying but please make sure there is no empty lines between tags in the future.
I take that back, 'cause it also doesn't apply
Signature · 1 line
pw-bot: cr