summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorBastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>2026-06-08 17:10:07 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-13 04:08:07 +0300
commitc90e80103ba5ee1ca704944352e5e5b7a064a292 (patch)
tree976caf0e1f1108534ec8dbcd3b85f0f94cb4e3cf /include/uapi/linux
parent4d574a5cfa4859340638e60caad77d51bb6dbdaa (diff)
downloadlinux-c90e80103ba5ee1ca704944352e5e5b7a064a292.tar.xz
net: dsa: microchip: wrap the MAC configuration checks in a function
The common .mac_config() implementation checks some conditions before doing any register access. As this common implementation is about to be split in the upcoming patch, these checks would lead to code duplication. Wrap all the checks in a need_config() function that returns true when the driver really need to access the switch registers to configure the MAC. Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com> Link: https://patch.msgid.link/20260608-clean-ksz-3rd-v2-4-6e61b7be23c4@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions