diff options
author | Yoshihiro Shimoda <[email protected]> | 2023-09-26 21:30:54 +0900 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-10-03 16:00:30 -0700 |
commit | a0c55bba0d0d0b5591083f65f830940d8ae63f31 (patch) | |
tree | b44b7a18d407b06e8b4e2728fed0cf1ee646686f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | dfc7f7a988dad34c3bf4c053124fb26aa6c5f916 (diff) |
rswitch: Fix PHY station management clock setting
Fix the MPIC.PSMCS value following the programming example in the
section 6.4.2 Management Data Clock (MDC) Setting, Ethernet MAC IP,
S4 Hardware User Manual Rev.1.00.
The value is calculated by
MPIC.PSMCS = clk[MHz] / (MDC frequency[MHz] * 2) - 1
with the input clock frequency from clk_get_rate() and MDC frequency
of 2.5MHz. Otherwise, this driver cannot communicate PHYs on the R-Car
S4 Starter Kit board.
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Reported-by: Tam Nguyen <[email protected]>
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Tested-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions