]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 6 Mar 2020 11:38:04 +0000 (12:38 +0100)
commit03d6283fe68bdb0327fb71877ed4eb826f20e03f
tree654f59f23a966c241dc4574f9ceba1f2c0b8c5bc
parent442d053a6f18af8812deaa15ca564fe5ed034fbe
net: macb: ensure interface is not suspended on at91rm9200

BugLink: https://bugs.launchpad.net/bugs/1866333
[ Upstream commit e6a41c23df0d5da01540d2abef41591589c0b4be ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/cadence/macb_main.c