Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5051265ima; Tue, 5 Feb 2019 05:43:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZTO7cQaEvdYM21Q9keedWqO36c38mn1EXCI9BVrWxb2KNiX35QWZtMBqovfR5GbhcvsEl0 X-Received: by 2002:a17:902:820c:: with SMTP id x12mr5226010pln.315.1549374189780; Tue, 05 Feb 2019 05:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549374189; cv=none; d=google.com; s=arc-20160816; b=ojJKRQwsazvy414x6Js/m5BGQaypW7qsm1qJIz6oc/xALYXlHzFJxDGrxaBLQMa1na RJoIUWdHqaWiFkILiLHXwRblWMxBPbvZJjDVCPdOxVnfdgjvVz5MNKHxtX++B+0ZRWuo r4pQirhnzCXcYbyvoOV0HFyhVFFQf3SlOfRGYYnSsLdkWlONDworp2KVX/Ax+yWyfI2H /aWWSc+qNbIxKWpLW1XsH53qFp+vNpzrWLcx/ZhOZeKsOJx2nAV4br7pZoTXyBCacFy+ nQ2T191/OtH24zQ7dFipe3eomKvmuMUHcAYDhVWgsjKqlGk4SO5vaI67X+aOmDflHyEd 1b6Q== 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:dkim-signature; bh=Zqlnk1X4UGfuwvFpgQxqiW5WczMJ0Ten01zb1oZ51QU=; b=xtvDr3pu3Ab5CF5xp7nVgVDArXEjXTiL21wilkNWuugE8+82oNMJVX1ypxwIT6Mdxf W3SOkr14Sgp7dEcP1JxnKc/GYU/ex/cO+hJBvG0K4WWX7NSHKp2cT9jri2quRw78HII8 Wo0JLbY8SmCTcZrUAQI+5vxso84kLIDl28O1GGDEuO4Ho12D3xRrjRZlJbWQIS2A5MYC 03e1bugvSQcBNsSxtDnmuYg1XQGDwQXmaU/H3wqqaEywXNYfzSBucFeNZ2+uZVN7zilD cheVgsgzO3TvHwWqGyLJ4h9Ntcc3mmu4hmr8aPRcqs2iv5+ApPeNfc+0SOKzQH+1scbv Pjfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="4YuzPV/J"; 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 82si3068601pga.270.2019.02.05.05.42.53; Tue, 05 Feb 2019 05:43:09 -0800 (PST) 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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="4YuzPV/J"; 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 S1729490AbfBEN1L (ORCPT + 99 others); Tue, 5 Feb 2019 08:27:11 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:39463 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbfBEN1L (ORCPT ); Tue, 5 Feb 2019 08:27:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Zqlnk1X4UGfuwvFpgQxqiW5WczMJ0Ten01zb1oZ51QU=; b=4YuzPV/JC9tKlY+9CIhbac4MjS QYzpxOF3XHh7k5Reojah3Ysj8Zaqnab0T7JkchtBUTAM1w/iGbaIaBiO2gaEuH/1IF4aeVW56iMpH AUsIiUYuciIkLrh+SDwCLi3E06/l/awLirkqPnw8nJcFqoHh6fI4OrBxkIa7ApJHUrUA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gr0kl-0007hZ-2h; Tue, 05 Feb 2019 14:27:07 +0100 Date: Tue, 5 Feb 2019 14:27:07 +0100 From: Andrew Lunn To: Miquel Raynal Cc: 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: <20190205132707.GD28397@lunn.ch> References: <20190205110728.11451-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 On Tue, Feb 05, 2019 at 12:07:28PM +0100, 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. > > 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 Reviewed-by: Andrew Lunn Andrew