]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Fix for failure when irq is not defined in dt
authorArun Parameswaran <arun.parameswaran@broadcom.com>
Fri, 8 Feb 2019 00:01:18 +0000 (16:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:18:37 +0000 (18:18 -0800)
commitb7520fb244f334a56f5d27a8eedbccf66289cbbb
treea4b7f21277f1358ed5b4368ed95bb0415f25a747
parentd4e4dc2a22abca802139ea53e954651b24d8c8bd
net: dsa: b53: Fix for failure when irq is not defined in dt

Fixes the issues with non BCM58XX chips in the b53 driver
failing, when the irq is not specified in the device tree.

Removed the check for BCM58XX in b53_srab_prepare_irq(),
so the 'port->irq' will be set to '-EXIO' if the irq is not
specified in the device tree.

Fixes: a29ede51ae7d ("net: dsa: b53: Make SRAB driver manage port interrupts")
Fixes: 0fd95cee92d7 ("net: dsa: b53: Do not fail when IRQ are not initialized")
Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_srab.c