From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B74C9C43387 for ; Thu, 17 Jan 2019 15:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C1E520855 for ; Thu, 17 Jan 2019 15:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbfAQPuz convert rfc822-to-8bit (ORCPT ); Thu, 17 Jan 2019 10:50:55 -0500 Received: from mail.bootlin.com ([62.4.15.54]:42308 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbfAQPuz (ORCPT ); Thu, 17 Jan 2019 10:50:55 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 11A3B20908; Thu, 17 Jan 2019 16:50:53 +0100 (CET) Received: from xps13 (aaubervilliers-681-1-37-87.w90-88.abo.wanadoo.fr [90.88.156.87]) by mail.bootlin.com (Postfix) with ESMTPSA id B4245206A7; Thu, 17 Jan 2019 16:50:52 +0100 (CET) Date: Thu, 17 Jan 2019 16:50:52 +0100 From: Miquel Raynal To: Vivien Didelot Cc: Andrew Lunn , 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] net: dsa: mv88e6xxx: Add suspend/resume callbacks Message-ID: <20190117165052.6d1f1a58@xps13> In-Reply-To: <20190117104641.GD13242@t480s.localdomain> References: <20190116153419.3208-1-miquel.raynal@bootlin.com> <20190116155651.GC29244@lunn.ch> <20190116222329.GP29244@lunn.ch> <20190117104641.GD13242@t480s.localdomain> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, Vivien, Vivien Didelot wrote on Thu, 17 Jan 2019 10:46:41 -0500: > Hi, > > On Wed, 16 Jan 2019 23:23:29 +0100, Andrew Lunn wrote: > > Hi Florian > > > > > A possible approach could be to call the port_disable, port_enable > > > callbacks from dsa_slave_suspend() and dsa_slave_resume(), I might have > > > some patches doing that already somewhere. > > > > I expect it is also on Viviens TODO list, since this really could be > > in the core. > > Indeed that is! So, shall I wait for Vivien's patches (adding port_disable/enable() in dsa_slave_suspend/resume()) and keep the driver as-is or do you want me to manually call port_disable/enable() from the mv88e6xxx driver? Thanks, Miquèl