]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Prevent truncation of longer interrupt names
authorAndrew Lunn <andrew@lunn.ch>
Sat, 8 Feb 2020 15:54:32 +0000 (16:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Feb 2020 13:01:43 +0000 (14:01 +0100)
commit50e1fe4d57466a78c43141feddc8d68d00133c44
treefbbf0d6ecb6c4c9df9095920d2c5dc2752f042a7
parent56a0020e5ca1bcb408dab475a69b8990ffb9d26b
net: dsa: mv88e6xxx: Prevent truncation of longer interrupt names

When adding support for unique interrupt names, after testing on a few
devices, it was assumed 32 characters would be sufficient. This
assumption turned out to be incorrect, ZII RDU2 for example uses a
device base name of mv88e6xxx-30be0000.ethernet-1:0, leaving no space
for post fixes such as -g1-atu-prob and -watchdog. The names then
become identical, defeating the point of the patch.

Increase the length of the string to 64 charactoes.

Reported-by: Chris Healy <Chris.Healy@zii.aero>
Fixes: 1f9b4437f13e ("net: dsa: mv88e6xxx: Unique IRQ name")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.h