Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1371638lqt; Wed, 20 Mar 2024 01:37:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjxODCAPTgaEsOhM5I8sNZ7CMwjnEP9sO1XlyWnkqrI7j0+tSf27hbtAj55ne4Qlgn1hnA0fj56RBjnACfIVSnW75/xjQSRVN33SCtNA== X-Google-Smtp-Source: AGHT+IHwMMo+/Y0gFs4nmvkWr9ewcsQv/b1iPDLU2ZAePtejOOb8rJYIiI6RTQdZ6X9j5W9FAwL1 X-Received: by 2002:a0c:e24e:0:b0:696:47ea:df2e with SMTP id x14-20020a0ce24e000000b0069647eadf2emr450598qvl.23.1710923866603; Wed, 20 Mar 2024 01:37:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710923866; cv=pass; d=google.com; s=arc-20160816; b=ZKfIgy8yWPp/JkwXwn5hZHIxz19c/gH4ymbIiaSLIgCMzR/anbZv//8HgNHxo1nsJS 5IxLbMcaGUMN+SeF0yK/Bfz3aaKPbc6oi93s5KQ+jWsjXrlB9ZeyID6jqjD07gXKsagy yswMZbnOyYlOUct1/ydDNEXwZqAd1aSR8xWiXQjADU6fr017ht2LSeqfhIqsh4K1g9Xp 1uILDV9O613S/GW067sOuxJirY22+BemsVxBS8mMhu0n+M95FZJJjHi45Mk8MxAgTBbL SSrgz2/O4RYKMxoLrOS5pVe7SsQpB/Vi06vb7aaR2OW8wcxbsAUSwR3CNh45WpK1z46P pQCA== 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=STDUP9Qpyn6byZT3Ex4nieAzKGvpxzwoBCLFYRcWYac=; fh=8oNoplANa0TP8QeGRpwRVpjSh91MsrDoDnkunrBCg1c=; b=jNu+VYgQheZgqC6A74phxHNroLc33LVzKtDHE0hJ5twKBijyc+jPmGwLItlZfvU31u Nm3vOfdoxOGAJeOCeo7E0JcjhlnSW45aTgsybZfpvJyC6RSyobOzofWnxQ7XxNoXhC3k di0ElHiWDq1/jPfdHfrDW5k8ebbFYSfe8BHez4oxcfzQ8WK3AQPVvjO/CkTUWHO175J2 forGNWQ/+S9DjPv1e+op9+lK1KInMqzTPWkyIwgLplOsHqklOu3kVKGNxkEmLYvbdlQb RaumFsfUQ8WJcdpgUGEG//jqUOR7mQ1XdrXfr5Z/yPMF0ir7/UEkmi/tCFf6o3/YsDOV zfhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YZcI3zZ6; 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-108624-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108624-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 pn17-20020a056214131100b0069153d9f78fsi12524456qvb.465.2024.03.20.01.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 01:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108624-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=YZcI3zZ6; 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-108624-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108624-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 54F561C203F7 for ; Wed, 20 Mar 2024 08:37:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D95D38391; Wed, 20 Mar 2024 08:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="YZcI3zZ6" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 D24B738F94; Wed, 20 Mar 2024 08:37:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923849; cv=none; b=WusI+gZVUcr7b+W1MELGUxVnFVnRgYRzp+EZU38F37LiEmDBPCpBNC/3uIKxrdBgnwnOF4BJlhhRW2ZoHnyidT2j3cNBOmX2wm0MjyONSKidL+/JwRRHtuVayklN6L9pFH8dqMOvFydl6t1Kj+iSogioHk8JM+ETz4xkK38Ud+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923849; c=relaxed/simple; bh=e7sm5KHKe7u07Hsum6EAU2IzxwlcrcHFBumoupR3X0A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uxuYaJdW8uXRk4Spt+/0QGqZmodE5mBprctzoOqs7tzXP3uZW/x+Q1vhTQGOs7z8b8kgiAHZqOazg9aqIWhtzSpGFQNaj575B9+Wm/sPtJrhD0hy9VuH6LxaU3tWowxOo3bBpwfRTV25kcpFhnDjhuppG+q9Y2cKGQjZvhobZF8= 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=YZcI3zZ6; arc=none smtp.client-ip=217.70.183.194 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 45FB44000B; Wed, 20 Mar 2024 08:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710923843; 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=STDUP9Qpyn6byZT3Ex4nieAzKGvpxzwoBCLFYRcWYac=; b=YZcI3zZ6pCAGbOyaL4vujc3a8ofF3MTLoqFnqYp2nnh6+aION1xaleoyRffG047ewxT09f sAbNU86SW5htuCuTQnymVuuwp/9TS+uJ854aCbULiTNRZLut0QO6yurLmTxiWbboBE3Vzm idoVKgot7+G7goramB7nNFKAjUuPNJ3KWJB3N0XiT3x8T/NUECF7n64SH3OfaKGlZBGilc Rtwp2GMx7wArlXzCFnyM+RVp2pEedhtJy6oDAuH60kBFJK9byFbZNVdqce+2o4QoBChdg2 WTV5ompOrojR4xHgMsWPjDHilcSja1wX1gZ5i3z5sqYkp3un611thZiP4rQbCg== Message-ID: Date: Wed, 20 Mar 2024 09:37:21 +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 v4 02/18] pinctrl: pinctrl-single: move suspend()/resume() callbacks to noirq Content-Language: en-US To: Dhruva Gole Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , 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, Andy Shevchenko References: <20240102-j7200-pcie-s2r-v4-0-6f1f53390c85@bootlin.com> <20240102-j7200-pcie-s2r-v4-2-6f1f53390c85@bootlin.com> <20240320074431.6yzao3jlyaxuii7c@dhruva> From: Thomas Richard In-Reply-To: <20240320074431.6yzao3jlyaxuii7c@dhruva> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: thomas.richard@bootlin.com On 3/20/24 08:44, Dhruva Gole wrote: > Hi, > > On Mar 04, 2024 at 16:35:45 +0100, Thomas Richard wrote: >> The goal is to extend the active period of pinctrl. >> Some devices may need active pinctrl after suspend() and/or before >> resume(). >> So move suspend()/resume() to suspend_noirq()/resume_noirq() in order to >> have active pinctrl until suspend_noirq() (included), and from >> resume_noirq() (included). >> >> The deprecated API has been removed to use the new one (dev_pm_ops struct). >> >> No need to check the pointer returned by dev_get_drvdata(), as >> platform_set_drvdata() is called during the probe. >> >> Reviewed-by: Linus Walleij >> Reviewed-by: Andy Shevchenko >> Signed-off-by: Thomas Richard >> --- > > I was planning to do this but didn't see particular benefit to it. Do > you see the benefit on your specific device? Can you help me understand > how? Not against the patch, just curious. Hello Dhruva, We need this patch to support suspend to ram for the PCIe on J7200. In root complex mode, a gpio is used to reset endpoints. This gpio shall be managed during suspend_noirq and resume_noirq stages. On J7200 this gpio is on a gpio expander. So we need this patch to restore pinctrl to be able to do i2c accesses in noirq stages. Best Regards, -- Thomas Richard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com