mirror_ubuntu-kernels/drivers/net/dsa/microchip
Arun Ramadoss de6dd626d7 net: dsa: ksz: added the generic port_stp_state_set function
The ksz8795 and ksz9477 uses the same algorithm for the
port_stp_state_set function except the register address is different. So
moved the algorithm to the ksz_common.c and used the dev_ops for
register read and write. This function can also used for the lan937x
part. Hence making it generic for all the parts.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220424112831.11504-1-arun.ramadoss@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-04-26 10:19:34 +02:00
..
Kconfig net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00
ksz8.h net: dsa: microchip: ksz8795: handle eee specif erratum 2022-03-17 17:19:16 -07:00
ksz8795_reg.h net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz8795_spi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
ksz8795.c net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz8863_smi.c net: dsa: microchip: ksz8863: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
ksz9477_i2c.c net: dsa: microchip: add ksz8563 to ksz9477 I2C driver 2022-02-19 18:56:03 +00:00
ksz9477_reg.h net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz9477_spi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
ksz9477.c net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz_common.c net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz_common.h net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
Makefile net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00