Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1160310rdb; Fri, 16 Feb 2024 07:09:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUO+UnGLK9NePZm19Zr5+VnDXnmkJlloJKrQF5zUiLrJipqGxTVI8xXrlvUXWd/+mHnorWeJtckL1n1mzSKGl/EHSrVo7CRvDFMyhLX8Q== X-Google-Smtp-Source: AGHT+IFQ1P07JEEpE95SzsTbUDWKeyScItyvVFYm7iioXKLaZgLH3d7+dIL0vBFqOADmInJwQWgG X-Received: by 2002:a0c:e44f:0:b0:68f:25ab:3184 with SMTP id d15-20020a0ce44f000000b0068f25ab3184mr4558718qvm.22.1708096145019; Fri, 16 Feb 2024 07:09:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708096145; cv=pass; d=google.com; s=arc-20160816; b=SiK0m9e/TOw+D5REdixHikRvQ09Pr5sKZmxMX4BjP8PMVJR38Q9NGisXgRttVjYaRd umhAtRFTyGK2AG//frG4lMqXsFvthXCNqJDr70PjAmshLpZq+pQRJ9ZGye9mXCqdPZZT iAgscUPxW7EgOoULzjEoRTOsyQ69ODsKihFEYUALcIgZtJypgRHG7ZSYuG+TDoGqaAGA I7hj7mG4a1PXwqjgm/QRIE85WLJyW9YYWfj9A10evEtJGU+jiX+eXs3rzInw/B4VwQnl NCQL6fZ0UsQLX0xC7UbRz0AKOWo8NN9I/Q5zJ6mq02EpM2by4yPtXArVvG25EEYr8dPi PqaA== 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=4bxOS3OEpjUuswiVMua85B1bKUL6FNgFg0gUnW6kZRo=; fh=5apKaVowz/ZjS9fLUt54OKJ3biaEWV4EZkKw2C1HbwI=; b=baxpFmK+N/OomG8J1p+t/nnl1ix1hOzYbp7VF3TL6cRHHrHUcXffBG5lkhe8YUX/AD oY5wa5HfO0A1hZ5OmSPVfSpiotS0442Hf3OpqPJFl2Tj8mTYmKHbENiz4PS/6MMk6LJf +O7NPgWjLPlonQgEf6/cKesvB1tZmgLJEfPtVFQJTnuxvalYMdBgdQM+rRRcT71Kvy9y TFRTr123J0X8ws34r/4TqvTTUAEv0kLFzJwQgYWcJvhmIecE5gxaVNCG7tbyew9JiWaq mtV7MvGdu5NiHvV2EqSB3A3rE0JVkKpiTn0MSXHKxZMMngqJM2nQUZMzJSk8vB3CH2Vw qZXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-68782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p9-20020ad45f49000000b0068f2e7427f7si2538117qvg.125.2024.02.16.07.09.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-68782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68782-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F77B1C225D3 for ; Fri, 16 Feb 2024 15:09:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C259112F597; Fri, 16 Feb 2024 15:08:49 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 DE7FF1292F4; Fri, 16 Feb 2024 15:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096129; cv=none; b=eXGl7BwbvVv5/xzB8RUxf2YrEyMLXLu5tvwg8BBJgD7T8ug7nemyR8AunT3StClECHtUBav1gJMEayX6WRwuOhfG1Nk6CYTfp/R75XcWvs/bpq2NPX87Z2IQtJpkPlgNU+eYqmhvvAsm1DMPfUzzauqKe2GKs+fIO96W4aI3n24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096129; c=relaxed/simple; bh=AOCAORj/NLMv+eKT0QBmdsr53HgKAYcc7MKJyrnstS4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eG6DcpN9WmjNgRfhaCLTzq3OKykmXQ27KdZQ754lTGCIq6EQWAWD0z7EMS81dYcvFII2P+7Vav6mhTZa7aUSaEXOM/QPFia5bnUEaBz8lfXhlCmXBDkAmrJdiESMNT8AJqbbz7UJbbmlInbjdCVKf5o0bH7z6lei95YkkS7NItk= 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=198.175.65.18 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,10985"; a="2338378" X-IronPort-AV: E=Sophos;i="6.06,164,1705392000"; d="scan'208";a="2338378" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2024 07:08:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10985"; a="912374432" X-IronPort-AV: E=Sophos;i="6.06,164,1705392000"; d="scan'208";a="912374432" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2024 07:08:40 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1razpN-000000054tL-1WLs; Fri, 16 Feb 2024 17:08:37 +0200 Date: Fri, 16 Feb 2024 17:08:37 +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: <78add459-a96a-46c6-83ff-e2657d4d3db4@bootlin.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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. -- With Best Regards, Andy Shevchenko