Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp1281279rba; Fri, 22 Mar 2024 09:13:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVhAAJV6P8AWp26lmjROQsu5jHKFzBQvEi8lmN3ykwBZOAq+U2ojLbxnoc18ibP9QOgtdvGzcQvLVXXGUB4tnv/6Wew736o2Cv9diDLg== X-Google-Smtp-Source: AGHT+IGgUK9u7TAOysfcizRfEiGHAKGujnxmZ5R7nzgX0O5zOpdsXxr2pUpO1OnhJJJAhcPyoiTx X-Received: by 2002:a05:6a00:398f:b0:6e6:767f:f807 with SMTP id fi15-20020a056a00398f00b006e6767ff807mr253872pfb.10.1711123982785; Fri, 22 Mar 2024 09:13:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711123982; cv=pass; d=google.com; s=arc-20160816; b=sgYZP+G8Fw62z0JNTdv+YBEkd+5EU/ZuKh/DgfuEsGapjeN39st7nrvn9XQZCekko+ wbNdegvRd5l1dH+pVxD+Olf/R+kKS9UadRuo3TDjFdcBt9Uqgb8vseqoc7vn04uAAKYi n9bWL2n1oZq29tudKuav1M+YLBCNWmvWGV2T6JzWwClDlQ13J0mBbaNe3yHMDFIr4Rkj q86n1lm/tE/wjVv716b7IxwPpca8k8JCeVVcaaJT4Uf7jHCA1rzTX/Aeog2eg5T37/11 xzXpzp+QrXC/LSXc9SVjIBHm86U0bkRUcozX99ycWZxn/TzBbudcw1GFyG/max/rxM9e J9Bg== 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=Clxu8CNET7kFYltBjp27sfFMn66/BzUMN2gZC2nExNk=; fh=hFSP9/+/vW384/rZJ/RijyAn+Ll4LOAI9yTNR/gDL8A=; b=NK9ohwCeguiyKdcIS8XLrJFizig/WASTXZ/eNasLuKcFLJhXASBNbVFWszCNkc28yy uwORp8vNU10b1bRmG2N63Gesu7Qtvtw475WxTkccbCZDC9xfzNaQQNFgUBD62JpcFRe/ pk1pdtPtrYSRBjdydvJQuhKJBAYOUgrAiOiH3pozDr8WYIDipapJImtTmlaBB50BavGw UKSNJPg3KPUWK3YsrX2QtikPobz1oevIGH5STllrgoZvnIcBgCRgxRaW6cGDNmjhz2NM ALSAL3O6m9UduQDLvmdWUH3V57cTknJFlyTOE3kDqLWlwbdF7F3sXP0OkgB3kC5GYWUF NR7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fs7KWuJ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k9-20020aa792c9000000b006e8f7f4dd60si2150697pfa.253.2024.03.22.09.13.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 09:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fs7KWuJ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111763-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 72709B22E8A for ; Fri, 22 Mar 2024 16:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99C7359B43; Fri, 22 Mar 2024 16:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fs7KWuJ4" 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 93FBF5FB8A; Fri, 22 Mar 2024 16:11:11 +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=1711123871; cv=none; b=BCFI8LA2Eds+0EOT7RG9q0JUdoUfcoUc15z8WnSVHS7BD3HimOUx7VvZYb0kGWsVUu1FFrfsGkFsg+34NhVfRQPrGqhcsxMeYq/48a+YBj0iaGVxJFFSji7d26nr4zQqrl2ByBZugrOZ82l3GLIHy2cpiadq2MndKRdl6hZAric= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711123871; c=relaxed/simple; bh=cbEyAWa2LSK/qrGis7CoFgde+V3pHY0E7i1PDMGEg3U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=maPPts3v4YTSXSS+ZiDtAsGy6G2gzfDR+IoEXX4ZzmRREigTz0noY1u6XHDPcmqIWzvXrfDouAIRFhT4znIc7Pjm2Js2tXSsoeBl2Norzs9D9Voor+PpmBSOOKwBYzQ/DOh3H5oHyX15Z/NPtZ7vtMe461LZwhD5YcvT3Et9YJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fs7KWuJ4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C06E0C43390; Fri, 22 Mar 2024 16:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711123871; bh=cbEyAWa2LSK/qrGis7CoFgde+V3pHY0E7i1PDMGEg3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fs7KWuJ474sfmjEGkj5Ota4cPC0ClsdDEMFZghHDSxOHYY7kfwD8zcHuwy5lRYO/X dPYlMicPkeKNmTAbQdkDW3OrPniLjTGZw95jZCYjz4Jk4fRXfH482TtTskCB8lkuE3 pYd1pYwsdsnrtJ6O7PhqnuWSxlRdg0AuZIgR0ng2j5ll55Gy3mG3UEhVQfoJ7klwu3 cGHE8blhmHWBKJ9JdVoVLlngKFWQC8WYdIy1+t/JvatnkCe7yC9MPeThUxDdgbpOcd z0RCMXnDCglGvr5N4UE7DljNSRjV4AavXerplkxOLhov6JrEEdk1WO55iAD5BRoezm 2zA+G1z+/ka6Q== Date: Fri, 22 Mar 2024 17:11:05 +0100 From: Niklas Cassel To: Manivannan Sadhasivam Cc: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I , Thierry Reding , Jonathan Hunter , Jingoo Han , Gustavo Pimentel , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-tegra@vger.kernel.org, Vidya Sagar Subject: Re: [PATCH 11/11] PCI: tegra194: Rework {start/stop}_link() callbacks implementation Message-ID: References: <20240314-pci-epf-rework-v1-0-6134e6c1d491@linaro.org> <20240314-pci-epf-rework-v1-11-6134e6c1d491@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: <20240314-pci-epf-rework-v1-11-6134e6c1d491@linaro.org> On Thu, Mar 14, 2024 at 08:53:50PM +0530, Manivannan Sadhasivam wrote: > DWC specific start_link() and stop_link() callbacks are supposed to start > and stop the link training of the PCIe bus. But the current endpoint > implementation of this driver enables/disables the PERST# IRQ. > > Even though this is not causing any issues, this creates inconsistency > among the EP controller drivers. So for the sake of consistency, let's just > start/stop the link training in these callbacks. > > Also, PERST# IRQ is now enabled from the start itself, thus allowing the > controller driver to initialize the registers when PERST# gets deasserted > without waiting for the user intervention though configfs. > > Cc: Vidya Sagar > Signed-off-by: Manivannan Sadhasivam > --- Reviewed-by: Niklas Cassel