diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2026-05-21 09:12:39 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-23 04:40:48 +0300 |
| commit | 4c54f910eefdb6971083d2483c3c1d9f1d973e99 (patch) | |
| tree | 1f64e55f7b68a0cc0260eb2d8a2616b578db7378 /include/linux/pgalloc.h | |
| parent | 7c494a10f937eb9a7612c9ba1eb3e1fbc1e090a2 (diff) | |
| download | linux-4c54f910eefdb6971083d2483c3c1d9f1d973e99.tar.xz | |
net: dsa: microchip: bypass dev_ops->setup() and teardown() for ksz8
The KSZ switch families are sufficiently different that a common
ds->ops->setup() - ksz_setup() with micro-managed dev_ops->reset(),
dev_ops->pcs_create(), dev_ops->config_cpu_port(),
dev_ops->enable_stp_addr(), dev_ops->setup() seems to be too convoluted.
I am proposing to make each KSZ switch family part ways for
dsa_switch_ops :: setup() and teardown(), to allow them greater
flexibility. This here is the implementation for ksz8, which is
nothing other than a copy of ksz_setup() with the dev_ops function
pointers replaced with direct function calls.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20260521-clean-ksz-2nd-series-v3-4-75c38971c19a@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/pgalloc.h')
0 files changed, 0 insertions, 0 deletions
