diff options
author | Nikita Yushchenko <nikita.yoush@cogentembedded.com> | 2024-12-16 10:19:55 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-19 06:32:05 +0300 |
commit | 1ced1b8cacf396d6ff979f594ba40ace42087797 (patch) | |
tree | e330839e79a8161d544e7fa9520fd12a243cd98e /tools/testing/selftests/net/lib/py/ynl.py | |
parent | da75ba93e3383fc10af71e5029b5a57378a57576 (diff) | |
download | linux-1ced1b8cacf396d6ff979f594ba40ace42087797.tar.xz |
net: renesas: rswitch: align mdio C45 operations with datasheet
Per rswitch datasheet, software can know that mdio operation completed
either by polling MPSM.PSME bit, or via interrupt.
Instead, the driver currently polls for interrupt status bit. Although
this still provides correct result, it requires additional register
operations to clean the interrupt status bits, and generally looks wrong.
Fix it to poll MPSM.PSME bit, as the datasheet suggests.
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://patch.msgid.link/20241216071957.2587354-4-nikita.yoush@cogentembedded.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions