From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 EAB2418A6CF for ; Fri, 27 Mar 2026 14:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774620286; cv=none; b=lXfp11SXMmKFgHT345SZb/3Z+0X3tKu051Mkq5SnqJEX1z3a2z1SZBt795A1J+mXAv+ig3JcaqNIOud/gbRAm8OZudP+ekexyGkhbdkeT0xve4Yj7G7rHBNT/7S2hivsbuFsR73HAmzv2h8RZesEz3/7WOE5Xm/gQfH/6LREETk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774620286; c=relaxed/simple; bh=q9V97Tr+6k2fCh537AkmCOo0/qg1EEGC6ygs46eoSNw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oWH0bVsPQVAeWsg7ejI2Picce3RK4b+OWt9fEh1mLWcLKz20TxPiX7Epa+uh3DqKIxrEuZuXuIB3klq6dNo1JR89eBFaw1jcSjtDO5kLtLexEHrbro8WFJzzs0TrsZ5E1zgg2h8sHeL0F3pCEOXK47aFYNhyxGjsMlJFHxQ9+qc= 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=oTCSg6E1; arc=none smtp.client-ip=209.85.128.45 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="oTCSg6E1" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4853e1ce427so25747255e9.3 for ; Fri, 27 Mar 2026 07:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774620283; x=1775225083; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TnwOxiQgTrY2GQTcPVQdPC36P8UQNWjAuceWpM/pOE8=; b=oTCSg6E1R8Drfgc/vnfQmcQJJZ5t4RwdAYzyvKsj2uVb6Q8woIlTPSShPn8E1ni2J/ bwW532e3faPT1djMherB3fiU6V0SHnuTpAF1NSdl2fLyeKv1LGdG2h2BOzGj0XfPEYxZ WwbzKxXFtaovCGEQXSp/9/D3ebskF2IWVKZFwNThkRP8pi4v2kaYccrBfCe3FPMTRuRP 6EIU/zy+QI4BlCtX5Dk4fDUtaQbxgmqoO5oQP5dpUiZzPvsinCPTxeQBdbxvVA9JPgKc 6bN1tRPevSRHVWvh22pnXzthftR5j5igXSIMKm+WamfFDVFgiuCZlZDUcQ4gxt9lybma LKUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774620283; x=1775225083; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TnwOxiQgTrY2GQTcPVQdPC36P8UQNWjAuceWpM/pOE8=; b=FQ9KOlv87k6alp6zsbm4xaNuj0qGMuGgmbYdZae0P4UrL6703Lh2y6OTAtUj6oFsk8 Xsm4/96J+yvw6brb0HFJcgvda3gQqD1/FjrvY6PisaoKoQPqZTQLizLVKlvsovsOV5Bo 8e22/Eaf5eOd2F+wcjI60teKPTj+Z76iTtrNJhCnF9JVY6e6v/aFsDNwxDUw4wiUMcgd YeCqExFIYTu4O5V78b+aO79u5t22Ah3FJoLjOzSLLpKQpt6U8RkL9kBgsJU9Jh2Kvlma qkvSkDBTfUOekzM5GFfjmYXS4AHeU1eVNVTZAsnjf5TmLRC2IfVrgHBC+grBhSCjZPpJ slGg== X-Forwarded-Encrypted: i=1; AJvYcCVhrFV+P5k9O+jmP9lvmGe6SWvcEUzfXegf97GRXZD1rMcCffurYinsuYGR8+p5AcQHZ3t2rcdd+KT8zac=@vger.kernel.org X-Gm-Message-State: AOJu0YwOGzPld/tiixw9N6kzlKylTBkSwFO1WSttcptUYDbgvr+m0E+4 8Ou/dc556St7I7HYcHeSl8P6hapAdIL9MGCXESQ/TFnfUl7FPIvVwU4/hVwKi2K0G3k= X-Gm-Gg: ATEYQzwYT2xAL4SCHj5jCm6qDXkHli+L3j2ajSKqdMDUr7cC7AVbSgJBO+GjqVtuVW1 tipOwkGPIDqsZMLj+/2M6Mg9c6TMHz/3H1X2wu9xE2Qt4DJufMXFnFeFWwycFz7Ij1c3Ji3ggb5 gxZVSWp33o2B0QZpF/cK4w/af/LvG7/IQG/Z2cVoz7+0mnSVcc2l3JOn3nZk0fqHOFKZUTvupDp 259g+08OTglZ8n1iSrT3aMdWRj8nYBlCj/De6c63RCFeT2jxc7Rgua5YCYC2umxm/mrqikJSd9R dsvXKGotL2BUdmEf1x9yq2Uin6NtogSf0qYKnzVU7DSOEftPx4NJLscCDndl0hjqiAxniB9agAh AVBfzbeMOgyRW0PoOkrqowUdyvKhxYLMmhg/GKfiOdCXUyeAf2vbVIFRUrBV2sNaRJrjJTGFoyK 4uXzzPxDHf+eGxVnvYrruL2WAIQyhLC29IyeHNKCLpsPnOUqgtBs2og6J4LrZcVF4iOOfM0bmYY mVCojk4Jnk8B0mURH/IEjI= X-Received: by 2002:a05:600c:3f16:b0:486:fdba:f5db with SMTP id 5b1f17b1804b1-48727c86862mr44979375e9.0.1774620283136; Fri, 27 Mar 2026 07:04:43 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:81c2:60b3:ff00:9a5e? ([2a01:e0a:106d:1080:81c2:60b3:ff00:9a5e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48725eb5417sm27114795e9.3.2026.03.27.07.04.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2026 07:04:42 -0700 (PDT) Message-ID: <7d9675e6-3f02-49e8-b65a-9785d5b6a7c7@linaro.org> Date: Fri, 27 Mar 2026 15:04:39 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/2] PCI: dwc: Add multi-port controller support To: Sumit Kumar , Bjorn Helgaas , Jingoo Han , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Yue Wang , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Paul Walmsley , Greentime Hu , Samuel Holland , Chuanhua Lei , Marek Vasut , Yoshihiro Shimoda , Geert Uytterhoeven , Magnus Damm , Pratyush Anand , Thierry Reding , Jonathan Hunter Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-riscv@lists.infradead.org References: <20260305-dt-parser-v2-0-85836db8dc06@oss.qualcomm.com> From: Neil Armstrong Content-Language: en-GB In-Reply-To: <20260305-dt-parser-v2-0-85836db8dc06@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 05/03/2026 à 07:20, Sumit Kumar a écrit : > This series adds support for multi-port PCIe controllers in the DesignWare > driver. Currently, the driver only supports a single Root Port with > controller-level properties, which doesn't work for multi-port controllers > where each port may have different configurations. > > This series introduces a per-port structure and parsing API that allows > each Root Port to be configured independently via pcie@N child nodes in > device tree, while maintaining backward compatibility with existing > single-port bindings. > > Signed-off-by: Sumit Kumar > --- > Changes in v2: > - Fix error code preservation in dw_pcie_resume_noirq() to return actual > error from dw_pcie_wait_for_link() instead of hardcoded -ETIMEDOUT (Mani). > - Initialize ret variable to -ENOENT in dw_pcie_parse_root_ports() (Mani). > - dw_pcie_host_init(): Remove -ENOENT error skipping to make parsing > failures fatal for now, add TODO comment about making properties > optional later (Mani). > - Link to v1: https://lore.kernel.org/r/20260105-dt-parser-v1-0-b11c63cb5e2c@oss.qualcomm.com > > --- > Sumit Kumar (2): > PCI: API changes for multi-port controller support > PCI: dwc: Add multi-port controller support > > drivers/pci/controller/dwc/pci-exynos.c | 4 +- > drivers/pci/controller/dwc/pci-imx6.c | 15 +- > drivers/pci/controller/dwc/pci-meson.c | 1 - > drivers/pci/controller/dwc/pcie-designware-host.c | 175 ++++++++++++++++++---- > drivers/pci/controller/dwc/pcie-designware.c | 32 ++-- > drivers/pci/controller/dwc/pcie-designware.h | 17 ++- > drivers/pci/controller/dwc/pcie-fu740.c | 6 +- > drivers/pci/controller/dwc/pcie-intel-gw.c | 13 +- > drivers/pci/controller/dwc/pcie-qcom-common.c | 5 +- > drivers/pci/controller/dwc/pcie-qcom-ep.c | 4 +- > drivers/pci/controller/dwc/pcie-qcom.c | 4 +- > drivers/pci/controller/dwc/pcie-rcar-gen4.c | 13 +- > drivers/pci/controller/dwc/pcie-spear13xx.c | 5 +- > drivers/pci/controller/dwc/pcie-tegra194.c | 4 +- > drivers/pci/of.c | 6 +- > drivers/pci/pci.h | 2 + > 16 files changed, 232 insertions(+), 74 deletions(-) > --- > base-commit: 097a6c336d0080725c626fda118ecfec448acd0f > change-id: 20251010-dt-parser-98b50ce18fc1 > > Best regards, Tested on meson-pci (boot log https://gitlab.com/amlogic-foss/abcd-linux-test/-/jobs/13677061036) Tested-by: Neil Armstrong # On Bananapi M2S Thanks, Neil