Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp628526rdb; Tue, 16 Jan 2024 10:38:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRhqELLgap9rnClXYBaoQG6rCalfWIjlk5v5qqninKAnXoGK50ljKf2QAfTxcGeXgBkQJO X-Received: by 2002:a05:6870:8909:b0:206:c02f:d72c with SMTP id i9-20020a056870890900b00206c02fd72cmr9644309oao.114.1705430314618; Tue, 16 Jan 2024 10:38:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705430314; cv=pass; d=google.com; s=arc-20160816; b=SCB93pwYjnC6OpGgUN47ThwlmF5gDkeONb2KC0ejU1OA49QiCg+AYgaZ34sfWTziCa F4okEJ2pszmLLWr2ULKlHxMD7hl91nRlikMyvFtNOtNnY7L8mgOdp1ou00dH1dh0hqqe pIrz6Y9Nw7yGNe4r0ygqaA7Rp99xD7DnnRztK5ShsnPrU5NaAqWOImvUP5tevT2oYJ3A iznCu8jmbPMInv4qdc6EGlmcvZXAhGdXw8IQO7gX3qHjVRNWg6pBK2jz+Q07WYsrAbjx qehADRMUWmFCesQZnNU1319M6PIzlxZEM0jLTvyXb0KKss4eB8Mv/d9I5WG8hGPyWGXc eeZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=aBv6ybbCeW0C/Efmw68Vkr1Sak5KQNNH8QRj77zkaZM=; fh=yitKyQkVbb3/Q2UBVh9TzgETEinm4DaTRKDNXnhgric=; b=KbBM8cRZ2r4lLrw7CAn8XAciAGwTicX1KLXUOdng/wYf2zbqlyGhS87k76QKZteZsL 834sYrSfoqAX/G+ls8fxRIRmtijTczdNYcavl29LeaSV4ZM64aXLMLawOsDSK+wJFft+ HCklSDh4wFC92gGyVgRFvIkWUgLcX7C+9rOk5gKSv6m9fEl65lMD88sOG/80HmSFjRmn lA0M/+/QGa+dyIURJ5/EjGNIULfvpDtEBMyt6Sg/XXKouyzb60tM26Ru7Q0vk1goEAuH Zom9uozaHK/L+PccXXWEeX8kLKnfAHU3q3ZSAAIGLAk8tyooSQ0bKuYUN/sVIInoJLcI ZwTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DsPYcpVq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f23-20020a635557000000b005cdfddfe6c8si11146326pgm.711.2024.01.16.10.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 10:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DsPYcpVq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27684-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CE9E828ACFE for ; Tue, 16 Jan 2024 18:20:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 147981CF94; Tue, 16 Jan 2024 18:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DsPYcpVq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 1BE831CFAE; Tue, 16 Jan 2024 18:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705429182; cv=none; b=uS+fGuxlHIPzHAem07HLwlTW5dBuIWZfAAS1k6v52Dsb/V2owD8Y/ZR5Znj02N4eOByafREGSAAQeosgeYSh0qzHsRgV/Wq3mgeOdGcP+S1geyX5dwpg86Vnqp2NvLlsISVoQMKck9KUZiUsCz85F9w49RdANrjMrUSsLlKi45A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705429182; c=relaxed/simple; bh=cK0uK7R2+gEbjOCsenY8rYIQosqscpXTCp6F+qM8Pd8=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=f4qqqu70PiY9s2RJIg1vFMbhOBJJrv52f+4/jsYkaxi57jZ2W7SIAMtX+XwwFcXgBljGh+5tFyOCaPUXJUCTXI8wkt/31vujlAMpGdhqPoBG0xItl0ZQ+wc8C760n3eWSnPuWHXTJnZDnNyzTXDwo4rThA2yKc47T2THVs29cKY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DsPYcpVq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4490FC433F1; Tue, 16 Jan 2024 18:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705429181; bh=cK0uK7R2+gEbjOCsenY8rYIQosqscpXTCp6F+qM8Pd8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=DsPYcpVqeSMaQVwap6TSM10XjoOPuojT6s+DQLUtOv+G5QecnwOOLG/Btd30B9sKD sPLkDVnjb3Ujys/qaKlj6P/2Q2Q976Ex1Qvf1/GH+yU1SiUnOC2LJ6MwMU6A0kkb4b laB0h0Yy1fmCV5dvcsLx+/XtcTFLtVXXPReiJfAINVpuOKuFIX3CfdDb/k7vHjTyE8 EpnyMDv5x9RZhgd0oSGVD9/8ujhuWDfhz67X1nUEGE7Q2EVz0/eU202+tc6yopwHJk mlhOdTwzbhGv1kssB7mJQ3FfHQgC/qjiMsfFWtIYbEVwdvWBzJM/I/6Y3PGVRbGwm5 BA2iB9BUFtu6Q== Date: Tue, 16 Jan 2024 12:19:39 -0600 From: Bjorn Helgaas To: Thomas Richard 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 , Tom Joseph , 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 13/14] PCI: j721e: move reset GPIO to device struct Message-ID: <20240116181939.GA101049@bhelgaas> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240102-j7200-pcie-s2r-v1-13-84e55da52400@bootlin.com> On Mon, Jan 15, 2024 at 05:14:54PM +0100, Thomas Richard wrote: > From: Théo Lebrun > > Move reset GPIO to device struct, so it can be used at suspend and > resume stages. s/Move/Add/ since we're not moving it from one struct to another. (In subject also.) s/device struct/struct j721e_pcie/ since "device struct" could also refer to the "struct device", which is obviously not relevant here. BTW, if you capitalize the PCI subject lines to match previous history, it will save some work when applying this series. Also rewrap commit logs to fill 75 columns and add blank lines between paragraphs (noticed in patch 12/14). > @@ -54,6 +54,7 @@ struct j721e_pcie { > struct clk *refclk; > u32 mode; > u32 num_lanes; > + struct gpio_desc *reset_gpio; > void __iomem *user_cfg_base; > void __iomem *intd_cfg_base; > u32 linkdown_irq_regfield; > @@ -359,7 +360,6 @@ static int j721e_pcie_probe(struct platform_device *pdev) > struct j721e_pcie *pcie; > struct cdns_pcie_rc *rc = NULL; > struct cdns_pcie_ep *ep = NULL; > - struct gpio_desc *gpiod; > void __iomem *base; > struct clk *clk; > u32 num_lanes;