net: macb: ensure interface is not suspended on at91rm9200
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 12 Feb 2020 16:45:38 +0000 (17:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 02:41:30 +0000 (18:41 -0800)
commite6a41c23df0d5da01540d2abef41591589c0b4be
tree20e84dd397056c3a832bfd6c4a53d06b4edf476d
parent540e585a79e9d643ede077b73bcc7aa2d7b4d919
net: macb: ensure interface is not suspended on at91rm9200

Because of autosuspend, at91ether_start is called with clocks disabled.
Ensure that pm_runtime doesn't suspend the interface as soon as it is
opened as there is no pm_runtime support is the other relevant parts of the
platform support for at91rm9200.

Fixes: d54f89af6cc4 ("net: macb: Add pm runtime support")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c