Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2350867rdb; Wed, 21 Feb 2024 05:13:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWr3qdcqye0+924GpUX6ym8xqRsQh7OrnHVz8lUGg3zPfNi3xIcpOM0f7cEzPvcSY+AfpIodQZtyAJSNcPu/pnROwvMohpj09qV2t0KxQ== X-Google-Smtp-Source: AGHT+IHM/dPB47tZ65B05lMpc/m904BOek+f36fubBdN4wZj9kZFvHxg6cB6BvBaWv/Hth10ZGEp X-Received: by 2002:a17:907:76d4:b0:a3e:787d:d3bb with SMTP id kf20-20020a17090776d400b00a3e787dd3bbmr6423417ejc.75.1708521226399; Wed, 21 Feb 2024 05:13:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708521226; cv=pass; d=google.com; s=arc-20160816; b=kIcqPKpKsYUh7SQBNWbO7ydyT0S4QOvyOFYuJ7lLgvqEr+gVUyeVa8pCcqh1vraOFL IIoD91O/cKbyDO8IMWyBFYWWU9rnIEwRLWu6lpSIs5tPNidA7XeBd4ImgG+oTJZtCZ1F EtUqw4zfiS1rcSeNAuVWCW65Syx+VMvZ5zJXKHzm4k3yvQpEqK0J+wchCwaPGzOZKhxJ TYIE0JbbhoahTzd5cEUBbZlykbiPNHbwIWNltthL8AZYAurDIrsvEwYkYxmcVejHJenb DQM3HyfG8i9WvkLUzS7CKHh7/rzFPQ206Mj7MWyxjZBZ57nIuxBgrueeeD/l2IE7Sy7n kTcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=H6NGPdSv5adYzKJ3gzFDMc2yypsSTVkA0M3N34rAUV0=; fh=5apKaVowz/ZjS9fLUt54OKJ3biaEWV4EZkKw2C1HbwI=; b=00pnTTFG0Ddl0766b3XXVQqMT69n1i9f0aBh3XWxnDeyav/7yy9HE3CD1CGUDMPSG3 T94nAbkaohymEr+75bRIermnqZXgJJWlnxpPl7b05l12P3ha2pIuEffZAkLtSZf9x2KG uNxpN47pcYdZ6MN5XOyuBH86sNYy0XQfLANJQssXNc9bgBOBMrsMLxC09MdTHWsxcK3+ b+9sWnAUzqqAKhMBaGwJntOvrvLavS+y9m3SO0GElHE7Eo5cZN/RtFxZMOqw2RAVNy8r XXUGlip0ffWkqcZZWxse4AxeXeJAyCSqofgrEDzBQyUIiRgHCfEoAonF381v82e0RVw2 4kNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u9-20020a1709063b8900b00a3e6c5fa398si3277667ejf.304.2024.02.21.05.13.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:13:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2967F1F23705 for ; Wed, 21 Feb 2024 13:13:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8763969DF9; Wed, 21 Feb 2024 13:13:37 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6497353816; Wed, 21 Feb 2024 13:13:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708521217; cv=none; b=L9OqUmxKy1l4nWhWKNdJvzXwNReFRGJaYn/DHM5LC67F6PvyccA5bjRWtyD0uJFRCGwfsGp6+5gpcXXsDgnW7jppE7xHt82lrRNDO4sojGvjIO3EtSqtTypkj62FFcZoOyZPN8mHMyEfprsNE8UCwiQfHTchuxvdiV2cW0fpccE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708521217; c=relaxed/simple; bh=2GVfeT/gobu3+8GT9oAkEUuXnH2POQPwjFLVQB0cX34=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SbeYzO3tM9zqEWHU/1bsFCE0GOQyeVr0NnFtYFNNIPUSV5QAC5qwFvZ4fKfGVrtN7mV9zOvRAR3X/X0KoEcqGGOzVTnAiOEpKWKsWIwGwyim+PJlz7DXBhh4VUbE8pXrbrxFzJGo6zG4lLs8wOSKA/ZN6+tzc363RC3umgeRey8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="6454518" X-IronPort-AV: E=Sophos;i="6.06,175,1705392000"; d="scan'208";a="6454518" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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