Message ID | 20240102-j7200-pcie-s2r-v6-11-4656ef6e6d66@bootlin.com |
---|---|
State | New |
Headers | show
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 035FD7FBA3; Wed, 15 May 2024 10:01:46 +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=1715767309; cv=none; b=L47sjxSc3/J1uLSnBWqTcbk6Hd6NO1HK0oMfpsUMYq/5g7ux0Azu+nQyfWohkfLTsyjA2XS2wKSnsyHFjwux5ta/ai3Azhcnm1NnFeUPy6MCKBwOdwbibP9moCOKBPeMu2O6lhPBFmGRAUMT5bZJ7P+nICL0vfSPuiOWFUgcEiE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715767309; c=relaxed/simple; bh=SKxnqxqQTOu0V80tOrHg0VWiV3r/5d05UFM/bBwvo2w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ngw1oeJmjKPEl7+JLrGLa1Qjxh0wqt1Cf7cB6JjG3RKRnIv4Ctd1ai7D26rwZHEx+vFMxYebGH8W/ewuKJAFpn9s8fANbD9wWVmWcYHAkW8B1fxqPH+LEuXp5tJ2G+KdRsuFbIjQdfqEtS907kpxsDMqmtjYspj34jS5XZPi2NE= 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=BjGh3qPH; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BjGh3qPH" Received: by mail.gandi.net (Postfix) with ESMTPSA id A653A1BF218; Wed, 15 May 2024 10:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715767305; 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=lu3hCWyQRXgdKfpiur37ixVeu1808uQZIfDP+sU8AMA=; b=BjGh3qPHxGvqOghTQ1IwNfnvlFVvFEUU8gHfv/Ymgli2oJxiLamfAQQxOVF5oWx1NvcCvO B/0NCvaERkm4N4plQt0nQMujFWuFQoluyO3djVVDsXDSdarhK4Rz3Z1/4NKZ2tDqBUwGym JpMcmvRmGvrEcexjMPRr2ydOpWQvXq+wAlotBI9Au9ReJIl3UZgW+RoEGxqUm5H8tsYW1P Cd9h79/ITppi6fFiZap4XJ2P20HyWLOTUBUfGSVEj6E7Ne/HA9wKRKYUYVa0hncJ+pBx83 e65XsAD4/GPNrPpizYdCgR/0AecFAuJ6zZomQjjNtUDr/tVeCmoXVzicN4jIUA== From: Thomas Richard <thomas.richard@bootlin.com> Date: Wed, 15 May 2024 12:01:12 +0200 Subject: [PATCH v6 11/12] PCI: j721e: Use T_PERST_CLK_US macro Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: <linux-i2c.vger.kernel.org> List-Subscribe: <mailto:linux-i2c+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-i2c+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240102-j7200-pcie-s2r-v6-11-4656ef6e6d66@bootlin.com> References: <20240102-j7200-pcie-s2r-v6-0-4656ef6e6d66@bootlin.com> In-Reply-To: <20240102-j7200-pcie-s2r-v6-0-4656ef6e6d66@bootlin.com> To: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Tony Lindgren <tony@atomide.com>, Aaro Koskinen <aaro.koskinen@iki.fi>, Janusz Krzysztofik <jmkrzyszt@gmail.com>, Vignesh R <vigneshr@ti.com>, Andi Shyti <andi.shyti@kernel.org>, Peter Rosin <peda@axentia.se>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Siddharth Vadapalli <s-vadapalli@ti.com> 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 <thomas.richard@bootlin.com> X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com |
Series |
Add suspend to ram support for PCIe on J7200
|
expand
|
diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index 9af4fd64c1f9..967a5bf38e26 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -539,7 +539,7 @@ static int j721e_pcie_probe(struct platform_device *pdev) * after 100 us. */ if (gpiod) { - usleep_range(100, 200); + fsleep(PCIE_T_PERST_CLK_US); gpiod_set_value_cansleep(gpiod, 1); }
Use the T_PERST_CLK_US macro, and the fsleep() function instead of usleep_range(). Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> --- drivers/pci/controller/cadence/pci-j721e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)