Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3295198yba; Mon, 8 Apr 2019 15:41:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBlgwKyC+K6WNkSnlJz+6Lhoh4hfptTtldIuydWiBL8kYJRNIDjZ5MDVMjg19xWMm0gYp/ X-Received: by 2002:a62:19c3:: with SMTP id 186mr33274493pfz.172.1554763312529; Mon, 08 Apr 2019 15:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554763312; cv=none; d=google.com; s=arc-20160816; b=mhu3tLXR4QS+UYjsfX3DXnSiTNWi4PmdYCxt4OUEG6jTZwj94bXBMPBpgRCbcI11Sa mwpRGjDD1a2Obosvh9tZE8RsMcUnlJPB65hIqXdzK6m4Res0ylGZbPewuG0n8pmE4zL0 r8tXHu2AyazlbrXp0JO+x7N3139P1DVB8nI+wlKaHCOeqRbnlMoa0/fxHSJR7GMIIs0W xyrWEznN3wJcXHJ5OjY9KXwGn4k3m0SQFlcKP1hUYkuzyxgLooIwCAbsT9WVG7JsAGSq sFrKZ+VW2q22HU09Ky2tfHDgQ2tpxuMVP+jB+zVCgrrVQaBXEvmLbuEofxT9iSUze61W 3R7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6Msk/qrk6iE67t8xkWDSK05pUTcUdE1gTCWOmNH/lMs=; b=dUptVbvdpCx5geg7oEIDGyUq1kBOb75xHKhMtTWZkVr8ya11xTU3GZTqjEiy+3TQAj dM/pce40HTZgMgT0OjO25RCn+ZlVx/+vl6c947YQVOP22xpNDIi0v+/rkFPGQRFP5opC f9qbZvmg7kDiAq+/0IfJ0XQON/igoEzfLSl+2wwZ3qTfu5FeA34aaAsnv333SoqmDiSE Z81Fnd0tnVBdYHUW3jwa+QEkshMiNRwwWsUt5/Y/dA/vQWFqGZX1LaQv94d8bRrDmDZj 7Ro1HLDBmKMWRaUca/eRW44lk7/ct6QHaOqZ4hS5CGFGX/dX1Gtig9fD5gK4eYaJ4C1z RMvg== 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 e1si20091631pfc.149.2019.04.08.15.41.36; Mon, 08 Apr 2019 15:41:52 -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 S1726808AbfDHVzp (ORCPT + 99 others); Mon, 8 Apr 2019 17:55:45 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57192 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfDHVzm (ORCPT ); Mon, 8 Apr 2019 17:55:42 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 5498180543; Mon, 8 Apr 2019 23:55:33 +0200 (CEST) Date: Mon, 8 Apr 2019 23:55:41 +0200 From: Pavel Machek To: Miquel Raynal 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: <20190408215540.GA27929@amd> References: <20190205110728.11451-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20190205110728.11451-1-miquel.raynal@bootlin.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Could we at least do printk() so that user knows what went wrong? Debugging s2ram is usually not easy :-(. Pavel =20 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyrw1wACgkQMOfwapXb+vIcdQCfSb6aq3flcqsLHl/QIbSjL6I9 igoAoLlj9LAlnBVno5vVImksSAYnL7Nz =q9AG -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--