linux/drivers/net/dsa
Anas Iqbal b487318496 net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths
Smatch reports:
drivers/net/dsa/bcm_sf2.c:997 bcm_sf2_sw_resume() warn:
'priv->clk' from clk_prepare_enable() not released on lines: 983,990.

The clock enabled by clk_prepare_enable() in bcm_sf2_sw_resume()
is not released if bcm_sf2_sw_rst() or bcm_sf2_cfp_resume() fails.

Add the missing clk_disable_unprepare() calls in the error paths
to properly release the clock resource.

Fixes: e9ec5c3bd2 ("net: dsa: bcm_sf2: request and handle clocks")
Reviewed-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com>
Link: https://patch.msgid.link/20260318084212.1287-1-mohd.abd.6602@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-19 09:26:40 -07:00
..
b53 net: dsa: b53: skip multicast entries for fdb_dump() 2025-12-27 17:17:32 +01:00
hirschmann Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lantiq net: dsa: mxl-gsw1xx: validate chip ID 2026-02-10 09:09:27 +01:00
microchip net: dsa: microchip: Fix error path in PTP IRQ setup 2026-03-11 18:06:22 -07:00
mv88e6xxx Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
mxl862xx net: dsa: mxl862xx: don't set user_mii_bus 2026-03-10 19:18:13 -07:00
ocelot Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
qca net: Use dev_fwnode() 2025-06-12 18:46:37 -07:00
realtek net: dsa: realtek: Fix LED group port bit for non-zero LED group 2026-03-11 19:03:21 -07:00
sja1105 net: dsa: sja1105: ensure phylink_replay_link_end() will not be missed 2026-03-06 17:48:01 -08:00
xrs700x net: dsa: xrs700x: reject unsupported HSR configurations 2025-12-01 16:45:07 -08:00
Kconfig net: dsa: add basic initial driver for MxL862xx switches 2026-02-11 11:27:58 +01:00
Makefile net: dsa: add basic initial driver for MxL862xx switches 2026-02-11 11:27:58 +01:00
bcm_sf2.c net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths 2026-03-19 09:26:40 -07:00
bcm_sf2.h net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
bcm_sf2_cfp.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bcm_sf2_regs.h
dsa_loop.c net: dsa: loop: remove MDIO device modalias 2026-02-03 12:46:55 +01:00
ks8995.c net: dsa: ks8995: Fix incorrect OF match table name 2025-11-18 18:22:04 -08:00
lan9303-core.c net: dsa: lan9303: ensure chip reset and wait for READY status 2024-10-07 16:38:02 -07:00
lan9303.h
lan9303_i2c.c net: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-26 07:28:08 -07:00
lan9303_mdio.c dsa: lan9303: consistent naming for PHY address parameter 2024-07-15 08:49:59 -07:00
mt7530-mdio.c net: pcs: pcs-mtk-lynxi: pass SGMIISYS OF node to PCS 2026-01-21 19:46:58 -08:00
mt7530-mmio.c net: dsa: mt7530: Constify struct regmap_config 2025-07-13 22:28:56 +01:00
mt7530.c net: dsa: mt7530: use simple HSR offload helpers 2025-12-01 16:45:08 -08:00
mt7530.h net: dsa: mt7530: unexport mt7530_switch_ops 2025-12-01 16:45:06 -08:00
mv88e6060.c net: dsa: mv88e6060: use simple HSR offload helpers 2025-12-01 16:45:08 -08:00
mv88e6060.h
rzn1_a5psw.c net: dsa: a5psw: use simple HSR offload helpers 2025-12-01 16:45:08 -08:00
rzn1_a5psw.h net: dsa: rzn1-a5psw: add vlan support 2023-08-11 11:58:36 +01:00
vitesse-vsc73xx-core.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vitesse-vsc73xx-platform.c net: dsa: Switch back to struct platform_driver::remove() 2024-10-04 16:39:57 -07:00
vitesse-vsc73xx-spi.c net: dsa: vitesse-vsc73xx: remove unnecessary set_drvdata() 2022-09-22 19:30:39 -07:00
vitesse-vsc73xx.h net: dsa: vsc73xx: implement FDB operations 2024-09-03 10:22:58 +02:00
yt921x.c net: dsa: yt921x: Add DCB/QoS support 2026-02-03 15:09:31 +01:00
yt921x.h net: dsa: yt921x: Add DCB/QoS support 2026-02-03 15:09:31 +01:00