Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp273119lqh; Thu, 28 Mar 2024 01:13:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5uAm9YAeWF9LRHQRwdfcHiCJV6noBYLAhVYsvXuAJVwpJJEeNm62a6UeSzEzr3yH3M4j43mmyqTtBvt6mQkmEU2LHpgZyJKNaxtLesg== X-Google-Smtp-Source: AGHT+IGeKqZ8rOcc/OWoEWJvJzTuiABwNNukgBBmScc7FCYWu0KYxvDaN2OVZW9vlTn7PmLMdrt0 X-Received: by 2002:a50:cd5d:0:b0:56b:a7e3:7426 with SMTP id d29-20020a50cd5d000000b0056ba7e37426mr1472605edj.34.1711613591035; Thu, 28 Mar 2024 01:13:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711613591; cv=pass; d=google.com; s=arc-20160816; b=W31laGMIQLMlpTEkeyFfstzAXje3us151ktv+fEn/xnhbcM1el0dFP6q1BI+P1FNlB JZb+GJBTlpPOjps6CFQVkx9pEWfmDTCHK7ztIuSOrgD9cba2kcHr6RMe0mM13/hSBghq LhZzdbVz1oxIUl9F0W4p8bWW8/zXiBNIYAucfYMIv3VNwcorBs4jLCJcdURdvqbI5Jui rgo16O8+zS9c1vqNOMxHqlEgkkixTGh0XPC9GgPImZFxdd40Ve4gN+JGeQJMUEV+AsRH Wz6ynihS3RY+9qG5YBD/SQmKRGQaRMp9uWmh0ozej8ozzz00obczIiSywxlogAeSuAsN 0HrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/LsQt1Fn7usOGylUUKnMr0Xe/MyGAD2iuJQVSgmxxrA=; fh=OfBpGDNmLWfGid5cfyDOjgqXsZrTCQrTH01jo3xstBw=; b=H6Rkg0TG7ZQWxzuCLRJnttPgEpgrlHZs/zynfXNepLc4gUPara29s08MU9sSxx3dcy CcP/dUC18TpRr/UxGO5PazVvIqQgtuC3wrKKtfs52sdVLd09aBqXROTyyy91lxY2w8zH 4QDqMDhesA2uDwGSX5f8HX/A3AHuOpyey2s//IRIFdMWDMo/BaZ6PEsma6+z0wdLQ/DM CdrvA0K91J6iP7h7X4QysMhNXejUORYObYwl12nirH5KSZE9Hzv/s2a18Ll7KEwob4IU gwW+h/FkTMFFupuXNJ6S63ydyeB8Jzeg/TfiCNYfPnY+Q9rHsKZKfJjSslDvEkS1GF2z yutQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FcyWY31+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s22-20020a056402521600b00568cf3d37efsi526680edd.400.2024.03.28.01.13.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 01:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FcyWY31+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122548-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6027A1F2BAA8 for ; Thu, 28 Mar 2024 07:55:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 264A054745; Thu, 28 Mar 2024 07:55:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FcyWY31+" 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 4B93754729; Thu, 28 Mar 2024 07:55:36 +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=1711612536; cv=none; b=pvmxOqC33ev1wOey1NGg8PnkqilaZSEWC/MvUugJ3usrWu9ei3C5SMuzNnPngOEEyuK6P8KXQZzg3ptzCd80IGFovBGR6wLnZ3v7Qe8KJID1WEVk+kdAHKHed9v2GwwAUhlF6lcsFwIZMukDqKjDGDh3ZDZjIfQN/cuEMUsMQFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612536; c=relaxed/simple; bh=qtwxnMr7h0StCKaCcZw5U9g1eJHIlZTOcNS8LKETAP8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MTxCHgPb/AIUDLMtsf45Fo+rS7MRWNUhDlv8sVDemf5gHFtal3Pc5FTcFLVqqTM15nqZJn4RNo2hQH3USndKWEkiob5svCWu3TCOS4pm8ckoRKygmUQUZ1nP8HSF+FZRdbDGt7lfdyQR2ABYlhlMRCHZ84ldUEhQngvUQNeI/3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FcyWY31+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7FFFC433F1; Thu, 28 Mar 2024 07:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711612535; bh=qtwxnMr7h0StCKaCcZw5U9g1eJHIlZTOcNS8LKETAP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FcyWY31+GrMBvGrVGqFz8Ek4ORULThUO5C0m5XvK6nOk3tPcEftwNr+Go5N5dCZ77 r103gqrmxD47TN4mLoy3jakKXJPW5q8btiMw/kcwGKm0wgx+gcclnqbWMe+465fSA4 oX8spooTokgRDeAl5q3n0HEn+1V73J8ZuDMTt5WGcFkQft19pUybu2xZhqvxxrXcbc CJB7EvfYYJOfBsyUsBv6x2OH85xk2+v5WMa8GjRK6bEqDMuHm0nVG+Yvrh72bSNdrm P01TzUajNFKfAA1hmACtGGfSbetkZ6XDllz2ox7ZEhot/htS0CtpH/YIwvqsfD+BpJ FOYgkEtJw2KMg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rpkbw-000000002Ez-23ac; Thu, 28 Mar 2024 08:55:45 +0100 Date: Thu, 28 Mar 2024 08:55:44 +0100 From: Johan Hovold To: Konrad Dybcio Cc: Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Marijn Suijten , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: Re: [PATCH v2] PCI: dwc: Use the correct sleep function in wait_for_link Message-ID: References: <20240215-topic-pci_sleep-v2-1-79334884546b@linaro.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240215-topic-pci_sleep-v2-1-79334884546b@linaro.org> On Wed, Mar 27, 2024 at 07:24:49PM +0100, Konrad Dybcio wrote: > According to [1], msleep should be used for large sleeps, such as the > 100-ish ms one in this function. Comply with the guide and use it. > > [1] https://www.kernel.org/doc/Documentation/timers/timers-howto.txt > > Signed-off-by: Konrad Dybcio > --- > Tested on Qualcomm SC8280XP CRD > --- > Changes in v2: > - Rename the define > - Sleep for 90ms (the lower boundary) instead of 100 > - Link to v1: https://lore.kernel.org/r/20240215-topic-pci_sleep-v1-1-7ac79ac9739a@linaro.org Reviewed-by: Johan Hovold