(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

net: dsa: motorcomm: Remove the redundant MIB clear

The MIB clear in yt921x_chip_setup() is redundant. yt921x_dsa_setup() issues a hardware reset first, and the reset itself zeroes all the MIB counters. It does not follow the correct procedure either: CLEAN only takes effect while ALL_PORT is low, so a single-step CLEAN | ALL_PORT write does nothing once ALL_PORT is latched - and this write is what latches it for any CLEAN requested later. Signed-off-by: David Yang <mmyangfl@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20261015004422.1554104-1-mmyangfl@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>


Author David Yang Committer Paolo Abeni Date Commit Parent 8e793b89
-6
1 changed file
-6
1 changed file