diff options
| author | Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com> | 2026-06-08 17:10:07 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-13 04:08:07 +0300 |
| commit | c90e80103ba5ee1ca704944352e5e5b7a064a292 (patch) | |
| tree | 976caf0e1f1108534ec8dbcd3b85f0f94cb4e3cf /include/uapi/linux | |
| parent | 4d574a5cfa4859340638e60caad77d51bb6dbdaa (diff) | |
| download | linux-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
