]> git.dujemihanovic.xyz Git - linux.git/commit
net: ethernet: fs_enet: Make the per clock optional
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Sat, 14 Sep 2024 08:18:20 +0000 (10:18 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Sep 2024 15:29:30 +0000 (08:29 -0700)
commitc209847b8974d2d5e784e3105d4683835673b18d
treed94c2579d15a8f55eba55229a440cc023577f99e
parent3254ce83899b2d7eae83877a67f454908350c538
net: ethernet: fs_enet: Make the per clock optional

Some platforms that use fs_enet don't have the PER register clock. This
optional dependency on the clock was incorrectly made mandatory when
switching to devm_ accessors.

Reported-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Closes: https://lore.kernel.org/netdev/4e4defa9-ef2f-4ff1-95ca-6627c24db20c@wanadoo.fr/
Fixes: c614acf6e8e1 ("net: ethernet: fs_enet: simplify clock handling with devm accessors")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/20240914081821.209130-1-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c