]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: clean up tsu clk rate acquisition
authorConor Dooley <conor.dooley@microchip.com>
Wed, 25 Mar 2026 16:28:13 +0000 (16:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 29 Mar 2026 21:34:28 +0000 (14:34 -0700)
commitb698a1e397ab9371911a130605908d26510e83c6
tree149db380c52a84953f86a4eaed1f864ce18addb6
parent3fe13d858f8391e38c75698719198d15a6a962dc
net: macb: clean up tsu clk rate acquisition

tsu_clk is grabbed during probe, so doesn't need to be re-grabbed here.
pclk is mandatory, probe will fail if it is err/NULL, so there's no need
to check it here or have a !pclk 3rd arm. Simplify gem_get_tsu_rate() to
account for these facts.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260325-hazing-penniless-14ba803efbb6@spud
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c