diff mbox series

[v2,net,7/9] net: enetc: remove the mm_lock from the ENETC v4 driver

Message ID 20250219054247.733243-8-wei.fang@nxp.com (mailing list archive)
State New
Headers show
Series net: enetc: fix some known issues | expand

Commit Message

Wei Fang Feb. 19, 2025, 5:42 a.m. UTC
Currently, the ENETC v4 driver has not added the MAC merge layer support
in the upstream, so the mm_lock is not initialized and used, so remove
the mm_lock from the driver.

Fixes: 99100d0d9922 ("net: enetc: add preliminary support for i.MX95 ENETC PF")
Cc: stable@vger.kernel.org
Signed-off-by: Wei Fang <wei.fang@nxp.com>
---
 drivers/net/ethernet/freescale/enetc/enetc4_pf.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Vladimir Oltean Feb. 20, 2025, 4:03 p.m. UTC | #1
On Wed, Feb 19, 2025 at 01:42:45PM +0800, Wei Fang wrote:
> Currently, the ENETC v4 driver has not added the MAC merge layer support
> in the upstream, so the mm_lock is not initialized and used, so remove
> the mm_lock from the driver.
> 
> Fixes: 99100d0d9922 ("net: enetc: add preliminary support for i.MX95 ENETC PF")
> Cc: stable@vger.kernel.org
> Signed-off-by: Wei Fang <wei.fang@nxp.com>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
diff mbox series

Patch

diff --git a/drivers/net/ethernet/freescale/enetc/enetc4_pf.c b/drivers/net/ethernet/freescale/enetc/enetc4_pf.c
index 48861c8b499a..73ac8c6afb3a 100644
--- a/drivers/net/ethernet/freescale/enetc/enetc4_pf.c
+++ b/drivers/net/ethernet/freescale/enetc/enetc4_pf.c
@@ -672,7 +672,6 @@  static int enetc4_pf_netdev_create(struct enetc_si *si)
 err_alloc_msix:
 err_config_si:
 err_clk_get:
-	mutex_destroy(&priv->mm_lock);
 	free_netdev(ndev);
 
 	return err;