]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: fix broken connection with the sja1110 tagger
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 14 Dec 2021 01:45:35 +0000 (03:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2021 12:45:16 +0000 (12:45 +0000)
commit8fa904d45e19bbac3a60b7c8191a4f47685b9c4a
tree42976cb39243649db2ab4bfd9a1523944a708344
parent6cbeebb3a692974eb2c0a1de03558eee12701251
net: dsa: sja1105: fix broken connection with the sja1110 tagger

The driver was incorrectly converted assuming that "sja1105" is the only
tagger supported by this driver. This results in SJA1110 switches
failing to probe:

sja1105 spi1.0: Unable to connect to tag protocol "sja1110": -EPROTONOSUPPORT
sja1105: probe of spi1.2 failed with error -93

Add DSA_TAG_PROTO_SJA1110 to the list of supported taggers by the
sja1105 driver. The sja1105_tagger_data structure format is common for
the two tagging protocols.

Fixes: 40675362e2e5 ("net: dsa: tag_sja1105: convert to tagger-owned data")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c
include/linux/dsa/sja1105.h