Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2287309rdb; Wed, 21 Feb 2024 03:04:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWXlWLsY7SNNb2Z+azxGhdVEueQp2MZjT+iW/9bcK1ytM5Es7oPTHam805FKo6Z9RepTnEUd6sn1w8jsFS4RUFVqfjM/mJJ/Y3UUhWDwA== X-Google-Smtp-Source: AGHT+IHWBOjigc6BAP1OPyiB6sS2HuXYON4Mfc2ZiAPk8JzfB/tih5CMRxWBCfhojEiz23ohnbJP X-Received: by 2002:a17:90a:8003:b0:299:7d18:43d2 with SMTP id b3-20020a17090a800300b002997d1843d2mr7765104pjn.33.1708513442422; Wed, 21 Feb 2024 03:04:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708513442; cv=pass; d=google.com; s=arc-20160816; b=STUIXnMp8XHvAovxSEOi6GoVfZZsrB00v3AfMhKDtAW+J56ebXpV653OXZizy/YpUb ZVIISIYXqm48ah+d5cOmFgNpljo0MnBdLP567TaQw+bFLMR19tJP7/bq1437T3/OxatL xuKoo+MGtb+cB1s0IdiXikGcCslcBCxLun19IjnFw0srTBqTCHvkJUuWWjK4Xeu5nuvn HIUm71hlXj1qYvwv3jiEU0TAR6ZSUxITAcjQYZj9sZi8ETjdeQKkFRFPhoOe4uyErGPP kZrkRhIiN/sJxBTzpyTiPSiNgeqSOvan7YkB7UGv+oKzZAmeKYNMMEWEfoQsIw1R81mZ WTRQ== 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=vInAPH5p+e8119+v06ulfZ5lvJvXTu8ss9P3JzvQTHY=; fh=nXs/zBkC1fyGT1Fbmmp5YZLdzFQCtlsfnl+UZiYevqg=; b=rauzw7TIL2+9GWWrst9QY+LkhVGfKuSLssRllGb4qbE+meoWijQzJc8EVfu+POsk/m vnzl2tf/ZHF8hUaRlxudjuLEck+QTr6H7ANGIIQVFGEKZshZzSIgQWgsFL/I4QPvW76Z XdMgtuAiwyqmgFLUFYjef4uFxX8NNOjyOFBGdBNcenciZ9vuvftU8wqB+37+FsTRNvQp e/0TMwz4xI+pRUQ0LhsnT+sThSBI3BLhoGiv71lsWgCVpoZ1Q9sVcqejjKkByK10Zwcm kXiANoXwFL8/CTmb9g66cIymRUlv9bAPe5mSy8GMf1FwPPpZcZ7tCy1SFOd4X+f9Bed/ WMzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XN2ZfXNc; 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-74583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id pl7-20020a17090b268700b00299002bab6dsi7915792pjb.69.2024.02.21.03.04.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 03:04:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XN2ZfXNc; 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-74583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74583-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ADC2FB24097 for ; Wed, 21 Feb 2024 11:02:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67DA53EA89; Wed, 21 Feb 2024 11:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XN2ZfXNc" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 C17A33A1A2; Wed, 21 Feb 2024 11:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708513315; cv=none; b=I31353WXohwBCUo+xZdNscnt+/BGhPM8DE+Jn90YGOi1aKYhUhd2/b6zGt0m7xrKi5O3XYhydmBM2Z5UFjIj//7RWVrLePNcTWoQ/64fEaNrmx4MkduTahu3ohaqECyiCrr3Ob1GoVBuyDXDm4lw5YvujdBrwrK+9dLXQ/1jJF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708513315; c=relaxed/simple; bh=dRk415UzsgzDNWkIDPhHwFDgyKW9PXo6eI6QQRKIUbg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M804e3JIL34nYtaYaY7GeNbOVM59BeGtZLykSNIQ/lyVxZuodRd6xpuqFWkjYiA50/Xom8Lex6c0PLUL9OdhzjXe8Su/CvpmoiIzODFhcfTWFuymZSwQSrHDqjEKa7JvHOvWTrjFNvcm+80ttFL7aVZgUXeWG1Sfp/ijjC8p+ro= 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=XN2ZfXNc; arc=none smtp.client-ip=217.70.183.201 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 441241BF209; Wed, 21 Feb 2024 11:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708513307; 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=vInAPH5p+e8119+v06ulfZ5lvJvXTu8ss9P3JzvQTHY=; b=XN2ZfXNc0o0/ZL9aDDvYuX0tX/X+cAUOjEyPjjYOeuCHaYl1rlDr1Zo2s5XyriovJpzcap 5ZjBJwOO30nd09Epax4Smr0EKKs2MnvZ6Q3CHnOyYM6NwMgAUWRW4U6CmpYsOp6wOCBm6e Y4luy+dNbIH4qMXu7QFPc4ol2jaCvPTZ9WhoCrLsokTohJ569FN6n4JNHtW33M7bro/a6F PKuVY4qRveAwriMN481ITaN546VAyU3LywwhyzfSs6aURNBCIxVNE/C/trMpsclq4Q7hAZ Jc3HcZu+GwQDdXz9UFfQrUzBF5NmVJHPQyOh6pylNe/TMxTyGPghV8PG2xYDpA== Message-ID: Date: Wed, 21 Feb 2024 12:01:43 +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/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. -- Thomas Richard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com