stm32-dwmac: Support of multiple VLAN ids
Hi,
we have designed a custom board, based on STM32MP151 and OpenSTLinux 5.10. On this board we use the switch NXP SJA1105S with 3 phys and a MAC-MAC interface between the MPU and the switch. All ports are configured for RGMII mode. At startup(via modprobe) the SJA1105 driver tries to load a default configuration that assigns multiple vlan ids to the ports. Unfortunately it looks like, that the stm32-dwmac driver does not support this by default, because it outputs the message "Only single VLAN ID supported". Is there a possibility to change this behavior of the stm32-dwmac driver?
Example Output:
[ 80.801160] sja1105 spi2.0: Probed switch chip: SJA1105S
[ 80.934971] sja1105 spi2.0: Updating VLAN 1025
[ 80.943584] sja1105 spi2.0: Updating VLAN 1025
[ 80.952858] sja1105 spi2.0: Updating VLAN 1025
[ 80.961709] sja1105 spi2.0: Updating VLAN 1025
[ 80.967525] sja1105 spi2.0: Updating VLAN 1025
[ 80.977959] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 80.983877] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 80.995737] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.004256] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.012844] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.021277] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.030518] sja1105 spi2.0: Updating VLAN 2049
[ 81.039485] sja1105 spi2.0: Updating VLAN 2049
[ 81.048265] sja1105 spi2.0: Updating VLAN 1026
[ 81.057550] sja1105 spi2.0: Updating VLAN 1026
[ 81.066966] sja1105 spi2.0: Updating VLAN 1026
[ 81.076340] sja1105 spi2.0: Updating VLAN 1026
[ 81.085989] sja1105 spi2.0: Updating VLAN 1026
[ 81.091785] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.102420] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.110977] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.119447] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.127888] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.136362] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.144868] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.153432] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
...
Thanks a lot and best regards
