Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3207905lqo; Wed, 15 May 2024 03:04:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWn5rf2cccUBrRJSQiRsW8wQBfKynr1QGYIksBs8+BCQBQM7qsKqF8EeNjWl2fVyx6KTpqufCH6rqAknBPWMlihkBsLED3alroSfKmJQ== X-Google-Smtp-Source: AGHT+IFptGwYivpiocZYtry+UyLoI27bCV0BIqYNgaewTAbkjIpKzOGxZsp0bcnzxXA2qNy5xm9G X-Received: by 2002:ac8:5783:0:b0:43d:ea13:4331 with SMTP id d75a77b69052e-43dfdaabde4mr152062421cf.18.1715767488682; Wed, 15 May 2024 03:04:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715767488; cv=pass; d=google.com; s=arc-20160816; b=gDoOTF1mflw7MuY/6updqas2s0RLNTfHdNwmqrC8Lp4P4gYVpYtoWkpOdLQPl/jp7j 9jtDZbjJKYf/nQQzTzR2F5N8kXBsgGk6886cddbfVzPkuB6r3ffYeTZLsnx/JP5DqzuV dlYjfecD/X/0YfX0aLEgQ65Czrx45cTVabQcwlnxfzFaO0Nd5e/OP8kaauaM82xVOLnp qT2sikxvuvxqk75u64HgMnEd5Om0WGw1X+PmD8v6Ca+KyzLotoe2Dia1tSMT8U5aDh1b h2kwjrPb3MVpo0537kxIGlGilMp37qMgLORjXSKNrKiYIA2LNvKGeB42gvaMdNvb9voR 5PNw== 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=UtBmEdIuqHpNYIeprudZmHX+EoM8EKaOAZluZkcvZXE18ntKQSCtzwY2VemLSuPlBK JoKv5nZMDb/1ulSjFi1LFZjmbZZjXAg1DM6TttyR35P4019Vd0hqkErs3W+/9DJFxFsg TTBUFoRTvrqtZGEODFP8ix7E/PCRa3uQaborrSLuV+Z1q4kFsDKqyNLWKe+mRc5+MuCY A4WW/YbcT+2Ctp+iqQ+sqW9xZ96n7yahpq2hERxfAr0W0jaORmSn9TDOgGf2xPXvVNj8 H9GFIQN0Hn11h8SjW/IKLXPtS0UUGyZaCqWZrkuLIDNEG564h02h/d3Aqs71TCVtZM4g sL1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BjGh3qPH; 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-179747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179747-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d162dsi144633091cf.646.2024.05.15.03.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 03:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BjGh3qPH; 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-179747-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179747-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 61B051C21B96 for ; Wed, 15 May 2024 10:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D1584D37; Wed, 15 May 2024 10:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BjGh3qPH" 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 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 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-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-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 , 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