Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4804078imu; Tue, 29 Jan 2019 07:48:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN4APbwTOCLrsnIBMDl80G8hJ+++Fc3Q6Ak6xGiyK5PxrWNoPiIgoNulqyA/BsMeq1CIzcCP X-Received: by 2002:a62:32c4:: with SMTP id y187mr27624124pfy.195.1548776884416; Tue, 29 Jan 2019 07:48:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548776884; cv=none; d=google.com; s=arc-20160816; b=W2bx+DNKhPXC7NuRxdESGlLO1AYu+H+s4c749/6LSYW4HXvkywHE5XPuZMZCG4ShfB RKxkLNj+2aGqhG8HG/YuDtQlwpnffW8HST5sAj7C1wLghyj61A+/I48jdibqr5wYjZSo 1DfhNWOUPFpAR7a2h2eu1mJbC/oiUqRLltGUzokV22RWr3zWzuBF7ivvz2P+dFD9ZuWn kOoKTQ11EIbPeRLFUl8ICHWSj0a2NP3aLvxcY85G6McRru8RxbTLNtWUiVAbOtR2xFxR 13NS2DULPHqzV9GIkN+goDGdwQwjNaMD0AjBYxniUgrdqw5qNDsBytRK1XHRIrRie12+ uIWg== 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 :content-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=jaGvAbXhC5dIi1Ogf34SSUSae29H2KVsiNffc9aYcAI=; b=Ih1Ixfohb9lABsOaP5JC4F/1XobMQy9L9YDuh0G/dAlufM3zqSVyQf1tGf+Bq+8xRQ F0YnU/q6e54vEHIBCHTIbeYoE/XbhcPypBNyory4s162moT0NIVSazY6xBMhWhLGxoEk wh3gfzQmBelAhQyesVfkbl4FxoxNtsoUVpxz9SqKI+38KK5Jrk8fNLs9l8hj6v/zptln 0eZjcU+Cuh2JA7nuuoPzGWcGJ+dfSrslI75HQu/5ORwS5DdA3FW5KNdWXoxExrpI1lvx WEJreOzUyDgGGpspjMVJN1JmTo928O78d8KUNpGZ0VfrQk4ivpHXts1Y1cA1BIGs4hq4 u9pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fmHTGU4B; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si35033995pgg.173.2019.01.29.07.47.48; Tue, 29 Jan 2019 07:48:04 -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=pass header.i=@gmail.com header.s=20161025 header.b=fmHTGU4B; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbfA2PqQ (ORCPT + 99 others); Tue, 29 Jan 2019 10:46:16 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:34962 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfA2PqQ (ORCPT ); Tue, 29 Jan 2019 10:46:16 -0500 Received: by mail-qt1-f193.google.com with SMTP id v11so22720197qtc.2; Tue, 29 Jan 2019 07:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=jaGvAbXhC5dIi1Ogf34SSUSae29H2KVsiNffc9aYcAI=; b=fmHTGU4BFN3JldI/opjH6+FX43epwJ2Mvzaik//vy0JD51ENWuCb9fFzEBK/7c1icL qFla7GN7aHMrqZc3rEBY36GwQEobJEsZ/qSa+BvQOlMowjW+3X9UJC63Ha6vTozKxnpA Kzh0rSk2IZvKfXvz9eMNdiD5U+YehyACJ7p1cmLbriv8HOYxccV/sZ/WPdswxDjnOOBh XEGEvMqO2fV+zp6TAMVbZZg6OmW38k8cENIITV3252e8IC97BbZ3I+kTOeaMfnmtXrWu hE9oOHFRPovCgOs6mKIczPCB8Ha3wZQw5j5LyNA1tadX0hv0tbwT3+GnU6yeZtdIYKQ2 e/ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=jaGvAbXhC5dIi1Ogf34SSUSae29H2KVsiNffc9aYcAI=; b=P1/GdH1FPhb8oQCYfH1PjSQg3Bp6tPBYXxl67Q73xJBoV39npQ8WTHMPKikYNcFXwp IWzxu3YnjFas6AJgFEJxm9zu5MLe0u5U9iiJe2UJIjX1owv5enjuPnjcl1yxOnPur8yE kikE9gX16awhz2NWPpR4wmxmPXOC9xWdf6H2Ju8OZO+QHy3jjbo+s7y/HPidpxd/ZUTp x/S2pWHFnBz4Cm/WnEVo1bDefZcZutpKGIzcGUtQSwUZQ8Kp1WP0IXZ3Ffo4XZBcyGuw 1J69g1Dl3mtKyuRnQg771Z5BTPIdpR8Aw1AjtaixA6G8ctjPQoXIPCLITzZjsnkgc89S SaUQ== X-Gm-Message-State: AJcUukdBpo6BV3V3O0pKPeETBzURK7ka21by3g7rPiQakkLW9pgBokKU zjwzBU41doYdHjRVscfpjAQ+jtbK3NA= X-Received: by 2002:aed:2b01:: with SMTP id p1mr26165859qtd.101.1548776775209; Tue, 29 Jan 2019 07:46:15 -0800 (PST) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id 18sm51904571qki.35.2019.01.29.07.46.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Jan 2019 07:46:14 -0800 (PST) Date: Tue, 29 Jan 2019 10:46:13 -0500 Message-ID: <20190129104613.GC20920@t480s.localdomain> From: Vivien Didelot To: Andrew Lunn Cc: Miquel Raynal , 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 v2 1/2] net: dsa: mv88e6xxx: Save switch rules In-Reply-To: <20190129145157.GK4765@lunn.ch> References: <20190125095507.29334-1-miquel.raynal@bootlin.com> <20190125095507.29334-2-miquel.raynal@bootlin.com> <20190128152456.212ae5ac@xps13> <20190128144417.GG4765@lunn.ch> <20190128165749.6abf2dc4@xps13> <20190128174246.GD28759@lunn.ch> <20190129100117.5ef6774c@xps13> <20190129145157.GK4765@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquèl, On Tue, 29 Jan 2019 15:51:57 +0100, Andrew Lunn wrote: > > Today, there is no S2RAM support for switches. First, I proposed to add > > suspend/resume callbacks to the mv88e6xxx driver - just enough to avoid > > crashing the kernel. > > Then i would suggest the mv88e6xxx refuses the suspend. Actually that > probably is the first correct step. We don't have suspend support, so > stop the suspend happening, so preventing the kernel crash. I am not confortable with adding support for S2RAM in mv88e6xxx yet because as it was explained, we are aware of much complicated scenarios out there to pretend that DSA /partly/ supports suspend-resume. The prefered approach for the moment is to keep things simple and not supporting this feature yet, especially at the mv88e6xxx driver level. However crashing is unacceptable so I'm backing Andrew's point here, please submit a fix to prevent the suspend (and crash) for the moment. Sorry if you felt that your work is being delayed, it is much appreciated! Thanks, Vivien