diff options
| author | Arun Ramadoss <[email protected]> | 2022-07-01 15:01:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-07-02 15:34:05 +0000 |
| commit | 457c182af597a5a2a9c1c4d12beac1ff35ee76e2 (patch) | |
| tree | d86d84031004ae3d38460a26f17d745c80f66d1e /drivers/net/dsa/microchip/lan937x_main.c | |
| parent | net: dsa: tag_ksz: add tag handling for Microchip LAN937x (diff) | |
| download | kernel-457c182af597a5a2a9c1c4d12beac1ff35ee76e2.tar.gz kernel-457c182af597a5a2a9c1c4d12beac1ff35ee76e2.zip | |
net: dsa: microchip: generic access to ksz9477 static and reserved table
The ksz9477 and lan937x has few difference in the static and reserved
table register 0x041C. For the ksz9477 if the bit 0 is 1 - read
operation and 0 - write operation. But for lan937x bit 1:0 used for
selecting the read/write operation, 01 - write and 10 - read.
To use ksz9477 mdb add/del and enable_stp_addr for the lan937x, masks &
shifts are introduced for ksz9477 & lan937x in ksz_common.c. Then
updated the function with masks & shifts based on the switch instead of
hard coding it.
Signed-off-by: Arun Ramadoss <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x_main.c')
0 files changed, 0 insertions, 0 deletions
