From mboxrd@z Thu Jan 1 00:00:00 1970 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 4AA4E1E1A05 for ; Fri, 6 Dec 2024 12:21:30 +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=1733487691; cv=none; b=Z0TURETcqXP1g71vQEMMoGXFhpJ/c0X0K/WVvvdqApvutIXru+eqfKq5U4/Mjh9IRfCTPm66radwwqGbFX4zZdr/S7VZmXwZ70sc1w4OSwlv9042XhPZIKbXRmndxpBdZ13vOa0xyAku8p5eC/u1K5hlhZW3IN0n5wozE1NN7ts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733487691; c=relaxed/simple; bh=8MSIJZSBL3tjb5PFG8Uf0Cy3rgZrf0u7MdtTQDxu8wQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=MAYZ9AwqhnfDaTkv6XVGHob4/uIJGGMqe5qZ1jz28DiGzlIKGOvvisV8rJdQNRqpUDrQLl08KKZVgigGs0aL/H6qAeqXkO7FSoAuI+0aAFpUetl7SzOHVaF2JXNci40fyZBEKMjkkqJGuw9D4Eu1hB77gmJih/NnBLx24hWfE7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2OsbeBBI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2OsbeBBI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60F14C4CED1; Fri, 6 Dec 2024 12:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733487690; bh=8MSIJZSBL3tjb5PFG8Uf0Cy3rgZrf0u7MdtTQDxu8wQ=; h=Subject:To:Cc:From:Date:From; b=2OsbeBBIMrpm/+R6gnpLWko6xQsGbFmwnhccQrjyf87AqeGCcJHzTtBsRQNGeFi1X x9u2dPT7Nm/LNiYghvbFoFaZA2dRPVA7EifpLYv1W/66Lp+VMOMqX31QEzSJv+ln8T 7uIbzpkLzO68PxxM7sbMl4shGsIVq8ZgSiGm61JM= Subject: FAILED: patch "[PATCH] PCI: keystone: Set mode as Root Complex for" failed to apply to 5.10-stable tree To: kishon@ti.com,kwilczynski@kernel.org,s-vadapalli@ti.com Cc: From: Date: Fri, 06 Dec 2024 13:21:16 +0100 Message-ID: <2024120615-backlands-caboose-2224@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y git checkout FETCH_HEAD git cherry-pick -x 5a938ed9481b0c06cb97aec45e722a80568256fd # git commit -s git send-email --to '' --in-reply-to '2024120615-backlands-caboose-2224@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 5a938ed9481b0c06cb97aec45e722a80568256fd Mon Sep 17 00:00:00 2001 From: Kishon Vijay Abraham I Date: Fri, 24 May 2024 16:27:13 +0530 Subject: [PATCH] PCI: keystone: Set mode as Root Complex for "ti,keystone-pcie" compatible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms") introduced configuring "enum dw_pcie_device_mode" as part of device data ("struct ks_pcie_of_data"). However it failed to set the mode for "ti,keystone-pcie" compatible. Since the mode defaults to "DW_PCIE_UNKNOWN_TYPE", the following error message is displayed for the v3.65a controller: "INVALID device type 0" Despite the driver probing successfully, the controller may not be functional in the Root Complex mode of operation. So, set the mode as Root Complex for "ti,keystone-pcie" compatible to fix this. Fixes: 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms") Link: https://lore.kernel.org/r/20240524105714.191642-2-s-vadapalli@ti.com Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Siddharth Vadapalli [kwilczynski: commit log, added tag for stable releases] Signed-off-by: Krzysztof WilczyƄski Cc: stable@vger.kernel.org diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 2219b1a866fa..b99bc4071fe9 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -1093,6 +1093,7 @@ static int ks_pcie_am654_set_mode(struct device *dev, static const struct ks_pcie_of_data ks_pcie_rc_of_data = { .host_ops = &ks_pcie_host_ops, + .mode = DW_PCIE_RC_TYPE, .version = DW_PCIE_VER_365A, };