Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2066612lqp; Tue, 16 Apr 2024 06:35:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQHSzUSBVyEcUCMtmH56TQenOlEzjC7ZJnABWEmCwMHQkcj59gysN7CZP25tmbc2j07LsJUN4wfz8dRnmUTUxlkUBavDcmnIGLIpTQ2Q== X-Google-Smtp-Source: AGHT+IErEWE458k7/RqFByNpg1ZtFT06PEdPDvqOLT6sUdR4dEFwWAuPRtadLJJuwwbeLN2wZsEE X-Received: by 2002:a05:6871:b10:b0:229:ce58:477a with SMTP id fq16-20020a0568710b1000b00229ce58477amr14936542oab.19.1713274551035; Tue, 16 Apr 2024 06:35:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713274551; cv=pass; d=google.com; s=arc-20160816; b=07jQOGMOAVyLV7Qb0omPh5QKe2I97VmtOHKUlFAHNu54CPe7ebyWWTmWK+LmTRhKQS 5DbkopD077WEjc/t7c8s4hAJ/EaFOxo83tOWb9mB3F+A3uPzAJHnf32sHnS8rG4LdPyw OFTT9QrsBbWzrB5jj7yocMKrNh2oopmvKACT0kwD9093obPmr+mk1OZxDk1Ln8oOkllO kl8hmJPGp6Cmk0W0P2XJTEao+D5jcwQkTzqsI9m699tm6y7VFM9Y+Xe2+6bpJ5dKKOVU bkqrtgEIxhatIuNZkx629sI2kZlWz1d1yooNu7zOLyPv2WGyKknLz6TqtAJeaa/hD9kA CQRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=pAhWJDZy3Qxtd03byX/QomLU+QUbXtxsEhEbMTufqk0=; fh=+6o6d2KGt2ZTSidIuE8uz1q8yt3pK0TjTqozrmclSIs=; b=bWkLXkf9XrzaYmfK70+OXVJPV7i/d2P7Wigc5V4+YndmEWqAckPskBWgE8jH8I5LSv vrcT8DT8ISoYK+ABK1rs72ULnz6H/s9xZ8JniHzJGVOUei4nyiJUVfOkjSzIUvPE3/2F GPG4oHSqYbnMvMF+rA2eMSD+E6/PONy2VzNTDnWqE6jquKqRssA7KDwdS4/Bz0bdyWGH BvEZ4QvP4Wt9Ppw/vKiiTK3z43Q5eJFiZ8jwGdmQjc1Tc7aXpgawACeYOj3tey5ok6tw FMODcJuUOrsGoLoPicyKoKUvo3ySgRrWh1kuR+YzeTQE1FRv+WLqiki6jkWaik8ksSsk eh6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XZYn+kxc; 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-146888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146888-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 l126-20020a632584000000b005dc42bb64aesi9958504pgl.617.2024.04.16.06.35.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146888-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=XZYn+kxc; 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-146888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146888-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 812BBB22618 for ; Tue, 16 Apr 2024 13:33:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA18E1311AC; Tue, 16 Apr 2024 13:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XZYn+kxc" 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 C586C130A45; Tue, 16 Apr 2024 13:30: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=1713274227; cv=none; b=TjjidLwBl5zDvzD3NAPx0HhswgjZN6rwPcSl/qOAZHKMuUJE+v0YpgO+aiSU3mkjyJf+XSKTWAjEfrgAcCTvDRw2eY3AXWkb09UZjRb4GZpPG5xxHK74Hv3sG+EZ0z4DSlbnIbgxNLttqH8K6MIADuCVby4QLTHES7CyiAt2wVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713274227; c=relaxed/simple; bh=D/mIw5PQXaVybV8q1M5tT5irn19bOqE7/C1r84b60EQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LLaQ12XTMcdIuTH3OfPVlJgjLdDHu5R1vM+QaM0KxzU88TKpwOiFuPrk2r+HUerhdLJOlfARufNJjt4FoGiipTSwpEzoac5IihO0trybUWWJ7D1tOvefoo68bThorF3VHVPXiV08oPz+jZtdvyqX2RhwHvNEChmmbuxi2l7VETk= 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=XZYn+kxc; 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 D126E40012; Tue, 16 Apr 2024 13:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713274224; 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=pAhWJDZy3Qxtd03byX/QomLU+QUbXtxsEhEbMTufqk0=; b=XZYn+kxcfuCWQYnCjZUR3LhfF3daR2uuyjreMPlmn52jRBk5PEAe/gEf4ViXV9q+piGWY2 xYmtQhD3oBTgc5cWSrLHq8rj+7VdDyRNFXAxkzYC55IdKuttJeqqrYToeqz1Ey7eUJ33BV B7F6n2BqE9Y6xrBSwsPBJwa+NhvvVlybCa5OrUCz34Wq3N6iTdtkwSm1v+pqV289Uqn1NG aoeTw2OMKRHuEKDDJbUvGXdDPUO0WrIh1aKFUn+pT/NMuslw1+fO2IkjokUwOFU6d6b7Cm zi/cI4qDkrYCrIQsDunA6h+v+0wnj9m/tCFk7dRj/Jx9gfyJ1AM6dqeDAdLV0w== From: Thomas Richard Date: Tue, 16 Apr 2024 15:29:57 +0200 Subject: [PATCH v5 08/11] PCI: j721e: Add reset GPIO to struct j721e_pcie 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-Transfer-Encoding: 8bit Message-Id: <20240102-j7200-pcie-s2r-v5-8-4b8c46711ded@bootlin.com> References: <20240102-j7200-pcie-s2r-v5-0-4b8c46711ded@bootlin.com> In-Reply-To: <20240102-j7200-pcie-s2r-v5-0-4b8c46711ded@bootlin.com> To: Linus Walleij , Bartosz Golaszewski , Tony Lindgren , Aaro Koskinen , Janusz Krzysztofik , Vignesh R , Andi Shyti , Peter Rosin , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Siddharth Vadapalli Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com, Thomas Richard X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com From: Théo Lebrun Add reset GPIO to struct j721e_pcie, so it can be used at suspend and resume stages. Signed-off-by: Théo Lebrun Signed-off-by: Thomas Richard --- drivers/pci/controller/cadence/pci-j721e.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index 98484f001562..9af4fd64c1f9 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -52,6 +52,7 @@ struct j721e_pcie { u32 mode; u32 num_lanes; u32 max_lanes; + struct gpio_desc *reset_gpio; void __iomem *user_cfg_base; void __iomem *intd_cfg_base; u32 linkdown_irq_regfield; @@ -508,6 +509,7 @@ static int j721e_pcie_probe(struct platform_device *pdev) ret = dev_err_probe(dev, PTR_ERR(gpiod), "Failed to get reset GPIO\n"); goto err_get_sync; } + pcie->reset_gpio = gpiod; ret = cdns_pcie_init_phy(dev, cdns_pcie); if (ret) { -- 2.39.2