Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp67649ima; Wed, 6 Feb 2019 17:21:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IZTLtBk/LGilA8Hyub1WP27/bDfRrQmtLrIysas9d+RppwVhg6+sVvOJg6D1nWQFBL/KgD2 X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr13884247pla.129.1549502472798; Wed, 06 Feb 2019 17:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549502472; cv=none; d=google.com; s=arc-20160816; b=JfJwM0n41lOWjZoyHGDc65ol+3KjVCdvYg9PXWS5i2b2UdWUhOwTZx0DKrArCPwVGc ZnrBTU1hjc2xxQqBKBnTByz6Q6qa685oFZnICwFA73aaUqbhG2IXDXgG5jS6VOZmPbQC ttEalyp9go5G2Pb+aFJHPQC/mIPsVC4fiq5aunIiNVowf6IYR80o5a3iv0BuD1AeNNb1 Nq2EXPkhNsne8Eg+ynvSliUEGXAAaQS2BNuq/LRZ0dIR63a+1qRs0abWPIyf/KuNVD4j U7LswO0ffD/J4FxK1zmRjgObIJDhKs53zumR+4teDgS/bmg9bPwAH2v/fOG9N8oUuNkF ki6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=ydoJ5mRfbgLW5bYJWB3UBry1ELichM7qLOHrmNEFtR8=; b=luHOO3JJXwY40DZXb3Ff6dwIZfiMS5Cdqf65tkaV8j05sSWxnDzWCmIeI2Mr6VH6hk VDOfuSUzBhOdVLvCbezI6/nkZguA3/19SituJsETQJiMzeiSxPM2amB/HSE5UZK8uPty TjywXsWXpGHl1s+AdjE6UCI7006AfAsmXFvslRuKOnepcepIeJQnP2OtNCsj2uLFjrr+ w2eHKfwMUxfylp98ZlcPIh9VAIE6kgerCjNY5xdW7Bqw7ITUIv23k458x3TPxKohd+eb 9MSrsJweO/FPXBAeYkhbhzdqgPQS5lHhbVkda3Zbh/1ttryRZfMP3zaDMQRlAEe/PH2q EWBA== 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 t11si7522738plo.293.2019.02.06.17.20.30; Wed, 06 Feb 2019 17:21:12 -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; 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 S1726641AbfBGBQ7 (ORCPT + 99 others); Wed, 6 Feb 2019 20:16:59 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:39008 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfBGBQ7 (ORCPT ); Wed, 6 Feb 2019 20:16:59 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 963031404973D; Wed, 6 Feb 2019 17:16:58 -0800 (PST) Date: Wed, 06 Feb 2019 17:16:57 -0800 (PST) Message-Id: <20190206.171657.1823157800327376584.davem@davemloft.net> To: miquel.raynal@bootlin.com Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, antoine.tenart@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com Subject: Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM From: David Miller In-Reply-To: <20190205110728.11451-1-miquel.raynal@bootlin.com> References: <20190205110728.11451-1-miquel.raynal@bootlin.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 06 Feb 2019 17:16:59 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miquel Raynal Date: Tue, 5 Feb 2019 12:07:28 +0100 > 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 Applied to net-next, thanks.