Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3591639yba; Tue, 9 Apr 2019 00:08:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2yT0FOTBfAnA0xHDH9lW6cRMjL73E/iZ9AVX1VgJM41uDBAS8mZv5dIdDfLwSSlPTgbXf X-Received: by 2002:a17:902:7589:: with SMTP id j9mr9473313pll.287.1554793685880; Tue, 09 Apr 2019 00:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554793685; cv=none; d=google.com; s=arc-20160816; b=ZpQioT3FJA6g/W27aLVNnyjvcb4Y9dPiqzUm51okG6adQB7lzTvJ1H8/e4rqwIuEZn /dGzqdjH19NbrOA4VlC/9UVYm6QM4g96P9d0IvSi777jsdK6vWyU59+a/e+KZlwujd0z nflU7OrRtx8xpE+9Gsf27KHFDPRkekYfPpjUbezsZ7zZX24kOyLASrxfyXtXutem/GDi YXHXbA7USbDI3RswSmfQy35d0+W7hej67hI8BYL4HtOzx7KttIxYNvfOgS3mYnJX1fMT UC8L/XxvDIvllOH7YNWf7kXHFRFSGTvDS/efAQfXt47f15AOyWEOxa0Z9tgdsD/INSfZ S6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=Qjj+JvWZDhuKbssDLHpyTmFQJ2qoHPS/XOySXEoqA1A=; b=ddQ7yG3iwPyzorT2V3vprlM+xX+MUU+b5Rf5/NsRSUKylaSt4t+n6EpMrEUaO+nv1U YZgj5ICTf+G9aWdIOAzs477XzTDgNQOcmjb80ztyHtrSuEM2kdRIaVYDND2rXO3ercAo hJMEsJySMTYx+pJbpOGy3SG3Lt9iGNS6Lt2SoqJI1lgGf83iFY+yNdGjkBP0SGnka1HH Asy79HuHmVTwGLkwfyc56xxfwExAPDXhGgUJxq+g0GJpxNiGhuW5lGb8fxw9dJLJeliR 3qkCgC3vouk5YaY9NOxxRKhyZAeIPNOtSeFeVaY7GHkDf1HXajNoWtC4jQ4kxptyWDK+ WPsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si28193206pfd.275.2019.04.09.00.07.50; Tue, 09 Apr 2019 00:08:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbfDIHGy (ORCPT + 99 others); Tue, 9 Apr 2019 03:06:54 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:59203 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfDIHGy (ORCPT ); Tue, 9 Apr 2019 03:06:54 -0400 X-Originating-IP: 90.88.30.125 Received: from xps13 (aaubervilliers-681-1-89-125.w90-88.abo.wanadoo.fr [90.88.30.125]) (Authenticated sender: miquel.raynal@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C7BA41C0008; Tue, 9 Apr 2019 07:06:50 +0000 (UTC) Date: Tue, 9 Apr 2019 09:06:43 +0200 From: Miquel Raynal To: Pavel Machek Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Gregory Clement , Antoine Tenart , Maxime Chevallier , Nadav Haklai Subject: Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM Message-ID: <20190409090643.0d8ce19a@xps13> In-Reply-To: <20190408215540.GA27929@amd> References: <20190205110728.11451-1-miquel.raynal@bootlin.com> <20190408215540.GA27929@amd> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/MGz6Rqgj/SytUAX/Mnnjcka"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/MGz6Rqgj/SytUAX/Mnnjcka Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Pavel, Pavel Machek wrote on Mon, 8 Apr 2019 23:55:41 +0200: > On Tue 2019-02-05 12:07:28, Miquel Raynal wrote: > > 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. > >=20 > > 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. > >=20 > > 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. > >=20 > > Signed-off-by: Miquel Raynal =20 >=20 > Could we at least do printk() so that user knows what went wrong? >=20 > Debugging s2ram is usually not easy :-(. I suppose you will be told that suspend was refused by a driver (probably without stating which one though). You may send a patch to add a trace if you think it is important, as this change as already been merged. Thanks, Miqu=C3=A8l --Sig_/MGz6Rqgj/SytUAX/Mnnjcka Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE9HuaYnbmDhq/XIDIJWrqGEe9VoQFAlysRIMACgkQJWrqGEe9 VoR4kQf+JvRV2syJ6wW29RnHHoBqEH68B52f61MgCwKY50Mf3TUiB4Gk8DomzTO7 K9BD64MPyNucdKfH5aTPlloHYy3zYEq8nOOWJd9WdXB0787UZDcjR6SkU3KSytTH lM/N7MKBDhxbiUGDvUOLSIFyKs3GQj1U1IQjHmsv9sywgOnIa4N50NILzROv/ZnA BNBujVqJ/XBK/fhorUokD4+pePV6NN2o2hmamoZAKy2TrHRoqrDUur9M1xqlRf2w cTp2Ld7dNsX01uKMNLS2T016uRtjA+/yJSSiLUs6SMnvi+GMdKAfoeMw6yCnLCgy kBmf7/WgXdYpZkmFmvywIJBE0jw8FQ== =wn3A -----END PGP SIGNATURE----- --Sig_/MGz6Rqgj/SytUAX/Mnnjcka--