Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2694320rdb; Mon, 12 Feb 2024 13:17:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVYII8uHRgKgYg63byydl65akyo8unbUhATpbnzjMOWwHvIxLindvIjOquTOviyHQtXhCPXqTT5pBj8T/UxceOqLbmIwooa6r8iTRVLbQ== X-Google-Smtp-Source: AGHT+IGB/e8gyVEzSEF0cfPvF/zV7ic6qPYniaCbVZpgKssNsnbq8yYsALJK9YTFl3E3gV+B7kUz X-Received: by 2002:a05:6512:2092:b0:511:4db5:99f1 with SMTP id t18-20020a056512209200b005114db599f1mr5805114lfr.47.1707772657876; Mon, 12 Feb 2024 13:17:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707772657; cv=pass; d=google.com; s=arc-20160816; b=zjUQBAur3A2ORIv41FLSvWS3bTvoD/6j6sRMHFNna4x9xbjvVVJvi1nQi65d/BHyDo oR3qJ5YclPvbL2iAC4cA/UL9/K0FAgJ+cRNrQ0TLkQuDlJStXWn3JYTdclipdSRJIdSr 4WHy7EIOr05wYxAJ6trc9THSWp3WG8YG8O0Y6bkIzS2jWxDIb7J2145jj2G14alUIPhR oQOuPJOY+hLFQBMBkRnbqDG4nG348FxgV3asOfdSvjL28Pqc4SyUx+ZKmNyDE9e7yE3+ iUUhISxIgLuHw7Eu6ihBND+oe3nUkDWOwA0cmqaz+rWQmC2lpzyUEREGo9KyJ3G84toO S+mA== 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:message-id:subject:cc:to:from :date:dkim-signature; bh=vn8wh/2zp9lBitb9pzv0jwO/sLGlYkZwdSk+k7HGS58=; fh=jqle+DVcd2lkPO1lfldTNEpANnXDlX4MjSU7A2Wf3x4=; b=vQZrRTTPAJQhPvJWYwYlo7eVsyyh/hfL8v37WGtR4AoGhz486/r3PDzZfBTl2i1rMs 4svXWKV9qMSANBI290fsWbap0LMVO5Ck6myacbmQ4SBBZAg58NXph5twd6S0SUgMH477 ZC+0/4c3s8E+BtbrZmP1ad4HnvsRKbwJaCB54XxMe+51Z7cCXKH9p8XgtOVsoWUEgPmI UoWy12xhBrgLKxSqzeTt2vSrQTUSUJYbXdgaS7VYkcQN+M4cqjgLoPhDnlR87wagZZnx zmWMHEUIatt4CwMuvkhqozgTGVRI5MZXlzZw2sLyE1pbZaBQtnAO7ODjlfW/IXtBRJfQ XN2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tN459PGd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVIyUWvGfWdLrVQjU3v5czW7LMfD4/3L/m1hrQeT+tMBxksEMfAMEPeS2GcsaxSZv0DWmn8sLViuWMbH8Hn/dBCNkB8mekDUTGx6o6Tnw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i13-20020a1709061ccd00b00a3c9a2163e8si505977ejh.922.2024.02.12.13.17.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 13:17:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62376-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=tN459PGd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62376-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 987241F230E8 for ; Mon, 12 Feb 2024 21:17:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38F144D599; Mon, 12 Feb 2024 21:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tN459PGd" 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 506C14CE17; Mon, 12 Feb 2024 21:17:05 +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=1707772625; cv=none; b=GSasimkF3W4jlNi7iemDZcummP9C0S7iua2k3rCahxdZ1DaYpMfOkEkVcj8XTojqyqU8JfdNABn2ElroI3aFklKcrHXMJwGsZU0Vlt7gmLucEYsyDgd86rrd8NH22x5//SkWXQXwHtjgKcTkd7Z0Vl+EMau2TyA9F9m2BXgLpaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707772625; c=relaxed/simple; bh=WJTZLg7P31UOHkGMFRbZcg8HMo6a14geuMHlP7wmsvY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=OjKUlqpJB2a5iuePw5nqENwVdJESV9ElbmtXsIsEnt8SVgofgMDyHNZp6eO5VarLoqBso8CLv28BcTZuRiOWv+JplOvUaWxipHq8IntLi53xqwduwpVH93BBxmTk58wIeOeZsGmt9fav+rFk5TC1ABRXbg/MpTxgtPSUa/HH/K8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tN459PGd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DF61C433C7; Mon, 12 Feb 2024 21:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707772624; bh=WJTZLg7P31UOHkGMFRbZcg8HMo6a14geuMHlP7wmsvY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=tN459PGdNiP+K+FQS2ePZMWvSN1MacojwojTa2FtvHGf+BF0ypfy8deCji0pmyel5 T6Rx/NHP+OLpMrzrqj5vcRYlgOA8WXh4Otweqor/ljRzbS2gaz8K1ye8sTq5fWkn0D 009W4+da/usr1mTSBKNa8/kowX4/rvZd3P8+SljbI5pkkaEUO+sqy7LmDaK9aTkLpK e4OaYB7rjkQGbZZK/c674VcapdxCaj4xIQn35XqdtMlj+6uG4vgd7zkxf7UUdLQCjo IrF8X6PmgDB+NsV4Id64mN2dJwH/S/oGg5BCVWJLBRuXBfj5bBVbGd2oVaAifqLvGi vTuplK4Qe7RvA== Date: Mon, 12 Feb 2024 15:17:03 -0600 From: Bjorn Helgaas To: Konrad Dybcio Cc: Bjorn Andersson , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: Re: [PATCH v2 2/3] PCI: qcom: Read back PARF_LTSSM register Message-ID: <20240212211703.GA1145714@bhelgaas> 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: <20240210-topic-8280_pcie-v2-2-1cef4b606883@linaro.org> Maybe include the reason in the subject? "Read back" is literally what the diff says. On Sat, Feb 10, 2024 at 06:10:06PM +0100, Konrad Dybcio wrote: > To ensure write completion, read the PARF_LTSSM register after setting > the LTSSM enable bit before polling for "link up". The write will obviously complete *some* time; I assume the point is that it's important for it to complete before some other event, and it would be nice to know why that's important. > Reviewed-by: Manivannan Sadhasivam > Signed-off-by: Konrad Dybcio > --- > drivers/pci/controller/dwc/pcie-qcom.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > index cbde9effa352..6a469ed213ce 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom.c > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > @@ -539,6 +539,7 @@ static void qcom_pcie_2_3_2_ltssm_enable(struct qcom_pcie *pcie) > val = readl(pcie->parf + PARF_LTSSM); > val |= LTSSM_EN; > writel(val, pcie->parf + PARF_LTSSM); > + readl(pcie->parf + PARF_LTSSM); > } > > static int qcom_pcie_get_resources_2_3_2(struct qcom_pcie *pcie) > > -- > 2.40.1 >