Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2389040rdb; Wed, 21 Feb 2024 06:20:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU8/fNxAJyrwApiNhxdN7n0erCr2IY+7OGDmNJduOuKXMGwDCTi3GoR23++xR892g6QKvCkmOZ04DbeqPtcJVRO5+O85hqxiW431BHI0g== X-Google-Smtp-Source: AGHT+IEFHITxI2zKrKVsScQGg74yuiIyiSXZOr6gh+0519yUz2OHdqWqr3zS1vqGIb01jr/YuKI8 X-Received: by 2002:a05:620a:260c:b0:787:6fa3:8bad with SMTP id z12-20020a05620a260c00b007876fa38badmr8260937qko.9.1708525222960; Wed, 21 Feb 2024 06:20:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708525222; cv=pass; d=google.com; s=arc-20160816; b=euQ72hosHrO5UY3pg+0a2ji51uS7AoAPyNOnhXs2lx4fgOlGUgMDdNdqv4ikWpY2rx e1uT1PsX3BwupszL0PXY9EWjekONbzrS91jrRZvz41k3kpW6NijKWS420okd3vmYmTr0 e7Lf6E9pvfCPHOx0nJ35p2mW4+82t56WmLGVdQ8CDlgL22UyiTgSlBdJyKiEiB9FMfgL JgpekwOagYwRLwvyVKVr66xwW3OvrHJZBIJAt3XBK7GDGNke+SunL2lOfkMGIhom55Wf Mfkl3h1Z6y8sILoXR0Dd3tdktq+FhQJ7hoKqkskoC2zCldaOzyhXBfFDj0wbQNuX/SG3 egZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=djgIwKG8h1E1vBHOq7Yx/ZY0Ehwdq+Fa2OAPhHy5Bg0=; fh=nXs/zBkC1fyGT1Fbmmp5YZLdzFQCtlsfnl+UZiYevqg=; b=oABhKN95tqoTCo4/ixGbm2kiydy0pTNTXaskbuqy5D1rQoJF8uJn08w+to+slVZwbu 9x81XvPYRyJJICFm94Bba2mYnvfjbtmUaerdjrPf/kByPNdXsxVLLF4USrlUMoKtqnHX LnI62INkL67iPR7Z/r12RDZwy1ahbZK2fuha/bxCjmdscPN/JYnhHy6rvlmIkdvtbT3o BjqCAXvNS7Ys6iy8ue6dBZvk730xBwti/exufKifFQd31aqHgAv7Z08ekfllAN1bPw52 aqlmV1GXT0sOKDTNh4xZB+f2064BNmmtNWzr78cTolUSUK0npBNpPKyS071hSpFqxD0d bTRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BH3RU58z; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x27-20020a05620a099b00b0078753d43ec8si9781144qkx.50.2024.02.21.06.20.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:20:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BH3RU58z; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 484EF1C23807 for ; Wed, 21 Feb 2024 14:20:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D19377CF32; Wed, 21 Feb 2024 14:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BH3RU58z" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 75A4A69D38; Wed, 21 Feb 2024 14:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525173; cv=none; b=s7ySvEIystER1Exlmf7nlxhO7zqogkvTYkVF0bXduOEv8q4nYgDjljihpuZanuvIAwqVUCfQlmHxhIRarxBnOYSHJdOKeXtO+kJIpvWBVpuNemFezceCgjN7g+Fa3HZdg4W1OHZf3rxW3ilWasLWFIUbTg0lWvZdxRhIQpnWA9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708525173; c=relaxed/simple; bh=7wFKTVlWizL57RttcaVLGrwRB1DayJIhODEBnM4Uul8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Qu53vKhUD7q0rP+F1rk6XZ9xzUEhDWZe0P+BPAIjW8RDbUKJHHg8B5vOHfBxrgOZX9V4sxqLct62hRmO3ew40ndCdtnGz9UjD0IcMFapzU7PZmYgLpwQ9PAyZJKZ3jdDIpByagp2ZSPxoGcptHAi8gdMprfh32D0dJrZf2TSBXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=BH3RU58z; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 334A660005; Wed, 21 Feb 2024 14:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708525167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=djgIwKG8h1E1vBHOq7Yx/ZY0Ehwdq+Fa2OAPhHy5Bg0=; b=BH3RU58z7cr7I5bVawgKgfnYC5GysBok+JTGHq7LVbJ85EirfpHA2o2XLzRR+7UrXVwEfR /wZa6tcSK+DMxgMWmUsnNDaOR0N1r8YgkoRdYceug+1Yk4JmUTFRDvRCA3/cymZ9XpUHr/ vd1WaoQ4pQTMeRzCHOJKwuvBlu9/+rOifdvv6q5fqfzwFEr1d5o71iFGgd3kc3AOzFnAO1 A1snWfe4kw4sZl4URubjBTzCzQTc4uqweCPYbYIuoPmUagYG9LKMcqiXTtnvElDi8wKgo0 I0H6nXBonAHEME2N7LD4uGH31cYGjo3LmMOeUpuFAYUSps2nLsFC7ihsE8gNUA== Message-ID: Date: Wed, 21 Feb 2024 15:19:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 02/18] pinctrl: pinctrl-single: remove dead code in suspend() and resume() callbacks Content-Language: en-US To: Andy Shevchenko 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 , =?UTF-8?Q?Krzysztof_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 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> From: Thomas Richard In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: thomas.richard@bootlin.com On 2/21/24 14:13, Andy Shevchenko wrote: > 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. OK thanks. I'll squash the two patches. And I'll add a comment which explains that I dropped some dead code. Regards, -- Thomas Richard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com