mirror_ubuntu-kernels/drivers/net/dsa/microchip
Arun Ramadoss 462d525018 net: dsa: microchip: move ksz_chip_data to ksz_common
This patch moves the ksz_chip_data in ksz8795 and ksz9477 to ksz_common.
At present, the dev->chip_id is iterated with the ksz_chip_data and then
copy its value to the ksz_dev structure. These values are declared as
constant.
Instead of copying the values and referencing it, this patch update the
dev->info to the ksz_chip_data based on the chip_id in the init
function. And also update the ksz_chip_data values for the LAN937x based
switches.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-18 12:50:59 +01: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: microchip: move ksz_chip_data to ksz_common 2022-05-18 12:50:59 +01: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: microchip: move ksz_chip_data to ksz_common 2022-05-18 12:50:59 +01:00
ksz_common.c net: dsa: microchip: move ksz_chip_data to ksz_common 2022-05-18 12:50:59 +01:00
ksz_common.h net: dsa: microchip: move ksz_chip_data to ksz_common 2022-05-18 12:50:59 +01:00
Makefile net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00