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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 179BBC48BF6 for ; Wed, 21 Feb 2024 13:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BqLlZkODDBfjR8sXqvNUrImRHdl2BV9CsuGBXO/83tU=; b=SreNpH6PtVbMiv Dxv5NL78s1rehSy0k39Wv1oCilkQqQPt4yYK/sjIzY3AqRbQFdaVpmTEdEKSFX+IlS7PuQ/OiS5sK dsR5Jyiuk5iuiOGVxtMTSEIBIlm0EWGu3tAMg8Qv9HjafCSZBjyApCPDM/ocsXXMzTO6yDyaJnuiW /izU+yPulftPhMbd6gj6wD/MBHfWS5QUSAApIOC19WkKdcBD/mC1qEK5g6IkLf4uNC2Nw9aCVL2yq q7kYC9RNCO6ZUk0WH0Uz/DQD+CmNm5OCp+KLeSF1czAHeGa0pMUvVXRo9fwiXawNM2hf2wI3Go2Zw jwshMRgJqIarOAIl4cGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcmPr-00000000zBh-0Fhf; Wed, 21 Feb 2024 13:13:39 +0000 Received: from mgamail.intel.com ([192.198.163.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcmPn-00000000zB5-3qgc; Wed, 21 Feb 2024 13:13:37 +0000 X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="6454521" X-IronPort-AV: E=Sophos;i="6.06,175,1705392000"; d="scan'208";a="6454521" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2024 05:13:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="913302142" X-IronPort-AV: E=Sophos;i="6.06,175,1705392000"; d="scan'208";a="913302142" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2024 05:13:26 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rcmPY-00000006M4t-3IcO; Wed, 21 Feb 2024 15:13:20 +0200 Date: Wed, 21 Feb 2024 15:13:20 +0200 From: Andy Shevchenko To: Thomas Richard Cc: Linus Walleij , Bartosz Golaszewski , Tony Lindgren , Haojian Zhuang , Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Andi Shyti , Peter Rosin , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com Subject: Re: [PATCH v3 02/18] pinctrl: pinctrl-single: remove dead code in suspend() and resume() callbacks Message-ID: References: <20240102-j7200-pcie-s2r-v3-0-5c2e4a3fac1f@bootlin.com> <20240102-j7200-pcie-s2r-v3-2-5c2e4a3fac1f@bootlin.com> <78add459-a96a-46c6-83ff-e2657d4d3db4@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_051335_986334_9DB82CD2 X-CRM114-Status: GOOD ( 22.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Feb 21, 2024 at 12:01:43PM +0100, Thomas Richard wrote: > On 2/16/24 16:08, Andy Shevchenko wrote: > > On Fri, Feb 16, 2024 at 08:59:47AM +0100, Thomas Richard wrote: > >> On 2/15/24 16:27, Andy Shevchenko wrote: > >>> On Thu, Feb 15, 2024 at 04:17:47PM +0100, Thomas Richard wrote: > >>>> No need to check the pointer returned by platform_get_drvdata(), as > >>>> platform_set_drvdata() is called during the probe. > >>> > >>> This patch should go _after_ the next one, otherwise the commit message doesn't > >>> tell full story and the code change bring a potential regression. > >> > >> Hello Andy, > >> > >> I'm ok to move this patch after the next one. > >> But for my understanding, could you explain me why changing the order is > >> important in this case ? > > > > Old PM calls obviously can be called in different circumstances and these > > checks are important. > > > > Just squash these two patches to avoid additional churn and we are done. > > You mean invert the order instead of squash. Either would work, but see how much churn in terms of changing just changed lines it adds. -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel