]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Prevent suspend to RAM
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 11:07:28 +0000 (12:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 01:16:09 +0000 (17:16 -0800)
commit2e73d65c3087e9f48ac9cb601992ceba5038d6c1
treeab59ffc8002262a71b8f35d4f9a88f3c18745dbc
parentcefe39486bab4b98215bf1cb974b45bd2a8d5e09
net: dsa: mv88e6xxx: Prevent suspend to RAM

On one hand, the mv88e6xxx driver has a work queue called in loop
which will attempt register accesses after MDIO bus suspension, that
entirely freezes the platform during suspend.

On the other hand, the DSA core is not ready yet to support suspend to
RAM operation because so far there is no way to recover reliably the
switch configuration.

To avoid the kernel to freeze when suspending with a switch driven by
the mv88e6xxx driver, we choose to prevent the driver suspension and
in the same way, the whole platform.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c