aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorNikita Yushchenko <[email protected]>2024-12-16 07:19:55 +0000
committerJakub Kicinski <[email protected]>2024-12-19 03:32:05 +0000
commit1ced1b8cacf396d6ff979f594ba40ace42087797 (patch)
treee330839e79a8161d544e7fa9520fd12a243cd98e /drivers/pwm/pwm-stm32.c
parentnet: renesas: rswitch: use FIELD_PREP for remaining MPIC register fields (diff)
downloadkernel-1ced1b8cacf396d6ff979f594ba40ace42087797.tar.gz
kernel-1ced1b8cacf396d6ff979f594ba40ace42087797.zip
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 <[email protected]> Reviewed-by: Yoshihiro Shimoda <[email protected]> Tested-by: Yoshihiro Shimoda <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions