]> git.ipfire.org Git - thirdparty/linux.git/commit
net: bcmasp: fix double disable of clk
authorJustin Chen <justin.chen@broadcom.com>
Thu, 19 Mar 2026 23:48:13 +0000 (16:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Mar 2026 02:07:28 +0000 (19:07 -0700)
commit27dfe9030acbc601c260b42ecdbb4e5858a97b53
tree0837c4c5d41aa6cbb7bca30dcff3c05eaa9854a6
parentcbfa5be2bf64511d49b854a0f9fd6d0b5118621f
net: bcmasp: fix double disable of clk

Switch to devm_clk_get_optional() so we can manage the clock ourselves.
We dynamically control the clocks depending on the state of the interface
for power savings. The default state is clock disabled, so unbinding the
driver causes a double disable.

Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260319234813.1937315-3-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/asp2/bcmasp.c