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