aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorJijie Shao <[email protected]>2024-12-16 04:05:31 +0000
committerJakub Kicinski <[email protected]>2024-12-18 04:01:39 +0000
commit3f5a61f6d504f55ed1a36cce044d5123d508721f (patch)
tree50e8f7bee3de6bc86dfc977f61d7d99e7cf1c6fb /drivers/pwm/pwm-stm32.c
parentnet: hibmcge: Add pauseparam supported in this module (diff)
downloadkernel-3f5a61f6d504f55ed1a36cce044d5123d508721f.tar.gz
kernel-3f5a61f6d504f55ed1a36cce044d5123d508721f.zip
net: hibmcge: Add reset supported in this module
Sometimes, if the port doesn't work, we can try to fix it by resetting it. This patch supports reset triggered by ethtool or FLR of PCIe, For example: ethtool --reset eth0 dedicated echo 1 > /sys/bus/pci/devices/0000\:83\:00.1/reset We hope that the reset can be performed only when the port is down, and the port cannot be up during the reset. Therefore, the entire reset process is protected by the rtnl lock. After the reset is complete, the hardware registers are restored to their default values. Therefore, some rebuild operations are required to rewrite the user configuration to the registers. Signed-off-by: Jijie Shao <[email protected]> Reviewed-by: Simon Horman <[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