From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEE60190497 for ; Thu, 27 Feb 2025 03:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740628775; cv=none; b=o7pqPy8NKWAqy4qqvdqNUY9vFteofaRMdpR6JBwpWQcbjTfvqFDwyu8RnrqVqyfcMxyml/H6yDK4bC/Dmdn92ua04Pl3PY0TFKLPcDisr0Gn3jJ7Xx901Pl4oXvV4ywBpCVIlXTqbVpcK1DqeT5H4QjDKMD1G4h8itGVvuMrDpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740628775; c=relaxed/simple; bh=t1IbMHTQwzGZn8E5kdDVLr0B+r1xWesTbCZE3Ff1qig=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jJ7UGYaA2bgQwROA1uP/BKr01MLVdKHkgcnxJCX4+NZX7y255R0jUAhKuI/OMkdjBt4/gXHWyV6Q72v7yvMEt5Fx43yEUoiUZkWYRtlGW0FDyTCBTyAbgRhnUcaY2IhV+t/Gim+xvE9FN1gU/17SyjqQdg1ZCGeckXYHBEgyO1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=i/IqQmbT; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i/IqQmbT" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-220c8f38febso7693315ad.2 for ; Wed, 26 Feb 2025 19:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740628773; x=1741233573; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=I3NGSTdG4pFVTBV4j6oj6tnlVJzj8q9uH1GkI67SifI=; b=i/IqQmbTBA6/HkvSyWmcDXDDsJUV0hV/bF5h/6CRtBl4wFMyGbpWu/vSdXmseHcxio 2i3lRXVFnGge0UzZC7kN3emkaaQtkvV8TZYVCQiOt7p62q6VoSKbZZQJhCOHiJPOL0a4 gkN48Ju6TL1jbfbkP1ocuZRvst5rDt1zMCNWiWtIElCVRxIx/lzF4UYp9eES0oI/g67T pD7bwgSxTmYj8kbKpIM4/tubQ2wenXVGlhGZMxksb5zMGD+GkJL0dkfXJWVJJo7RWuHC /1jgbvz+B174sIrda6TkK3cvekp3UMf+zrD158Wj2P/W6S2XaGCBG8oveG5iyc5S7s4Q 3Pqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740628773; x=1741233573; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I3NGSTdG4pFVTBV4j6oj6tnlVJzj8q9uH1GkI67SifI=; b=nsUjkEcB6SsdgIETcsYcvZUrX65c5hIrKWVMiPVJJt6iuxUCY2MFht0TCLtfNHkFHP PGMx4/PlJCnXWT2qctIY0eg6nr4B8Wz3sM71/JFqqmBlZvhAgoLb3A8bcoIE87MMbokp xp9Rdi5Ma7626ravJ8asvqddn8l/T2WtYZGgZ9oCRhccn+xppWJOBW4fsj1edB7Ayu8C f73phwqSCbvyBIxfhMiKgsPEuVFYvZJGuzVawWmsadqjNhqJGJtzTumlNzK4Mzk899RB thDcfeSoRBX2slQ2xuiyxrBxKHvHNRghil8EN1uhTDvS3KTDWCm8viHYo6e36QEYPfyB tFDw== X-Forwarded-Encrypted: i=1; AJvYcCXypvfqn2NQenKhMxPGRyoD7oQJiW2V9g+dc4guIKcEgnClQbeB/8LdnmjBN+nFO2Gk59tI1WuTgpk=@vger.kernel.org X-Gm-Message-State: AOJu0YwxBH4s1FWcjKgdTuSBJQXUmDMiTDKriwuwFDxFZqRk1HCcmVXT 5HvwDJ6LiwYPFrLEClqylaDXObWMH1eWn63jvNp3j9U3udTiFYohTKwI+b2uRw== X-Gm-Gg: ASbGncvy8SuJTkbDVMDw0pN1jYH8ESHh6hnXmnruoqJ92gOIYL7N3PVYmTffC1NNj+0 BVUxNOn03IlFpaduHuHuuhgWNJR8L1Erufzaz32jEjnl4d3Mlow1Gp26mo3+V4w5D/p43xbm7oj A2j0HJPVC1ycrXrFhrPFWralsy4/AQW2w2yW5Dhh6kWlZvtpfqf4RavBk8cSoseG25IKeiNYp2t ib8RTuxShwiMkPSP8SfYzaRCNNGRIGxFOJfoyDZo2ALnHkIvwt7A9LOHhClDW6ZxqV1kxj8ns8h O1ocA0NQ2r/09DqibkID0bxwiDXVDUU15e9Z X-Google-Smtp-Source: AGHT+IElQv9n7DcYHKKDz2CPpdLIF+QJaSa6MoLIk6Yn6zGzcgfx3cwXpeTVagFx1GUvBCafoZd6+w== X-Received: by 2002:a17:902:f60b:b0:216:725c:a137 with SMTP id d9443c01a7336-2219ffb8b58mr429858815ad.28.1740628773009; Wed, 26 Feb 2025 19:59:33 -0800 (PST) Received: from thinkpad ([120.60.51.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-223501d29d6sm4627845ad.24.2025.02.26.19.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 19:59:32 -0800 (PST) Date: Thu, 27 Feb 2025 09:29:24 +0530 From: Manivannan Sadhasivam To: Krishna Chaitanya Chundru Cc: Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , chaitanya chundru , Bjorn Andersson , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Jingoo Han , Bartosz Golaszewski , quic_vbadigan@quicnic.com, amitk@kernel.org, dmitry.baryshkov@linaro.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, jorge.ramirez@oss.qualcomm.com, Bartosz Golaszewski Subject: Re: [PATCH v4 00/10] PCI: Enable Power and configure the TC956x PCIe switch Message-ID: <20250227035924.p43tpbtjmqszdww6@thinkpad> References: <20250225-qps615_v4_1-v4-0-e08633a7bdf8@oss.qualcomm.com> <20250227035737.q7qlexdcieubbphx@thinkpad> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250227035737.q7qlexdcieubbphx@thinkpad> On Thu, Feb 27, 2025 at 09:27:47AM +0530, Manivannan Sadhasivam wrote: > On Tue, Feb 25, 2025 at 03:03:57PM +0530, Krishna Chaitanya Chundru wrote: > > TC956x is the PCIe switch which has one upstream and three downstream > > ports. To one of the downstream ports ethernet MAC is connected as endpoint > > device. Other two downstream ports are supposed to connect to external > > device. One Host can connect to TC956x by upstream port. > > > > TC956x switch power is controlled by the GPIO's. After powering on > > the switch will immediately participate in the link training. if the > > host is also ready by that time PCIe link will established. > > > > The TC956x needs to configured certain parameters like de-emphasis, > > disable unused port etc before link is established. > > > > As the controller starts link training before the probe of pwrctl driver, > > the PCIe link may come up as soon as we power on the switch. Due to this > > configuring the switch itself through i2c will not have any effect as > > this configuration needs to done before link training. To avoid this > > introduce two functions in pci_ops to start_link() & stop_link() which > > will disable the link training if the PCIe link is not up yet. > > > > Enable global IRQ for PCIe controller so that recan can happen when > > link was up through global IRQ. > > > > Move these patches to a separate series. > Or you can just drop them. I have a series that adds global IRQ to most of the SoCs and sc7280 is one of them. - Mani -- மணிவண்ணன் சதாசிவம்