diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2026-05-21 09:12:38 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-23 04:40:48 +0300 |
| commit | 7c494a10f937eb9a7612c9ba1eb3e1fbc1e090a2 (patch) | |
| tree | 236a0d32f2fdcdce1d7a73047c79c9031e7a69fd /include/linux/errqueue.h | |
| parent | dfc5c56829b98cdc9ba1852370255bb2c4fff0a5 (diff) | |
| download | linux-7c494a10f937eb9a7612c9ba1eb3e1fbc1e090a2.tar.xz | |
net: dsa: microchip: bypass dev_ops->setup() and teardown() for ksz9477
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 ksz9477, 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-3-75c38971c19a@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
