Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2067570lqp; Tue, 16 Apr 2024 06:37:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7xGQbL4zHWB2wa6ZYLujygBTG+F7ZpkPzPXigltpsVrjwcXvpaQXj8/VSKrB2LvkRFH0ugFkcMYu3m6FCI7bX3t1yQUiE4Eu7tHDMQA== X-Google-Smtp-Source: AGHT+IGGd0FEwOcqznB4cYJPVSj/Dzp4aDuJkpOR/gypQUmT65u4VOMlQjk5INOatkKdA9HhxcVq X-Received: by 2002:a05:6a21:78a6:b0:1a9:6df3:fcd2 with SMTP id bf38-20020a056a2178a600b001a96df3fcd2mr12735787pzc.8.1713274648880; Tue, 16 Apr 2024 06:37:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713274648; cv=pass; d=google.com; s=arc-20160816; b=da6IF5hKhyeju0n/HJAa566oDzpAVvMusrqxS7tRENeg3umBzZF6sp9OFvQzaBqKc5 HwiYKM2WzuPfhMyITJT78dk+DwigheaK8AMnlBqtw0u1wrAssKmX2uFQYm14Wis+sDS+ NbyU0yLopWCnPrPmDpozUL8ncDSyfBs7pmnS917cvNdMbcVie5hSvctTYGBhTEbJY8Wx 4yWzLJj4sO2KQTjRw/l49W0L7uRUgkUc9Hu9E0bm4Umx/Hx4tpB0TAvBrRbF4BmVh+fy 4D8FzvzhaX+yjwk3GM7QSdj/cV/UDJRU8dN2Z05bSx2vlhSx6Rgm0ZR6wf6W61u3fpLr frbg== 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=lu3hCWyQRXgdKfpiur37ixVeu1808uQZIfDP+sU8AMA=; fh=+6o6d2KGt2ZTSidIuE8uz1q8yt3pK0TjTqozrmclSIs=; b=EcZJt6Ng6Gyi7Ft9ls8lRjt2+YFaMt4En7tBhvLEXwFonp8pOeWi0WWudcX08FoEaM Lt/eNlBerlB2pIX9NhkjFcOz9oZ+ALxt+O7rO5WwZEwfsGilP3BjtVSM/fqLVs4rFwQU P5QpT0Y5/E0AZmd9qnvthy3mUWhklBl2FrKpu4CmhyaV2SCpaVcP1EBMQ8vkoSWOo2Mz 8TREKLPSH7KT7lvKJs7u1kIXp8MO0hBEK26Fi67gxH3Kidkpq5wLGlp1Hnt7Al/wlyHJ YOEbzyJQieBkFbvoZPFL2VzciWgeXDNXp+D+vmeD8tfnGv6dWlYtvtyLqRErp8RrzuG+ s7Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BsnVe4V9; 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-146891-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146891-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. [147.75.48.161]) by mx.google.com with ESMTPS id sc8-20020a17090b510800b002a69b8a87d5si9269565pjb.7.2024.04.16.06.37.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:37:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146891-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BsnVe4V9; 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-146891-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146891-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 17C7FB2330E for ; Tue, 16 Apr 2024 13:34:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 007701327ED; Tue, 16 Apr 2024 13:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BsnVe4V9" 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 7371F131732; Tue, 16 Apr 2024 13:30:29 +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=1713274232; cv=none; b=rSBqOif0siCcBGGDzDmZY/CnLWqUhEjYuYwAKdr6sPwGgwoDwL6rQQMeh19n6C2Nl/s57Mh8XZdB8L468Gt62lx7w906rCb1/DYs3v8k8h3/MMYJS00P8FuOU+2nWRegqPlr1i3Rvqel1rBuxhekzZ1KUcth/xo29Td4fCGOLgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713274232; c=relaxed/simple; bh=SKxnqxqQTOu0V80tOrHg0VWiV3r/5d05UFM/bBwvo2w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pmiFRe6uJqoOJErDymbuor4MiXx+dQR9apHMKLMloqFhq90Bgk+vp4xyEfWXV9Su5olPuxVa4pdEM6KTB6OE5wIF4Dur9RDjwsiDBi2rRqmm+fOktrod5ZSBVOItm0pTyQv7LBLkd5uS8wjw78t1uogFkedzC2jWAXiTu2J6M/E= 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=BsnVe4V9; 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 6D9BA40006; Tue, 16 Apr 2024 13:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713274228; 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=BsnVe4V9Z/9QIlrhv+rS6yFcQLThF6H6hGelARmzGr7HYZEFfNtCqqSmOhHwaNnb2kU/71 H9rfm/oBP+rkoe71xpXN9QLWPz56a2IadENKCMOCvITkxebMaqCNYELoZlllf5RTy9gqx3 wUVyV/I+bRfRazZFYDa4g11WZktB7PxXIlruvYKgYQ//1gsq/Fy1s2PbFxnGAFz0OdL1wm Ux2FQGJbavl8lDOqta1in+VxGO00xqfVNm85tTsef4Qh7Q91O+ZPtzhCsVakmB9mQoMKi9 zOL8N2XvN9++PnpND4QLmcNhimd5RQoALAwy7gs19eS1rATmC4O9UXxR+seiaw== From: Thomas Richard Date: Tue, 16 Apr 2024 15:29:59 +0200 Subject: [PATCH v5 10/11] PCI: j721e: Use T_PERST_CLK_US macro 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: 7bit Message-Id: <20240102-j7200-pcie-s2r-v5-10-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 Use the T_PERST_CLK_US macro, and the fsleep() function instead of usleep_range(). Signed-off-by: Thomas Richard --- drivers/pci/controller/cadence/pci-j721e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2