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 ED9161C6BE; Wed, 5 Feb 2025 15:04:33 +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=1738767874; cv=none; b=RQHKWxKN+5fGvhMGRRt1Zw16O0d5vsjY4qBlWRsVeiu6ud4qb1m6gtQ5wbG64viQ8N8DzTfLSxOL1+J+C0XcA3NtaAJkPZwvZVxJ8h3Qnmh5tFzFP+jHpah3QRfwpnwPhoRYsBAKjeREdGbQ8qFMRkoTuVLQEiliwA+DH+2i6Yw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738767874; c=relaxed/simple; bh=xfdMLt0r5qK5tPSpHDbU/8mKOAPq/gJR0eCtKR3lh3Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EURjrkeKztKAII/vwWRaK9Ug0hZCJVpADsoCrm+zIFbCbvTKUGqFTmUolnYu2k4ui5Qhl8Y+65ta9LeoQc5rpIFl8PfxQi/4+CZfQIi+F4fmEW3OPbGa9WYukIk7cnujUBj1jHoHl+1COLAqYKZYVPnuDjejechPFN5SjOpnWyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q58J+pRj; 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="q58J+pRj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A830C4CED1; Wed, 5 Feb 2025 15:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738767873; bh=xfdMLt0r5qK5tPSpHDbU/8mKOAPq/gJR0eCtKR3lh3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q58J+pRjGDn8IjCr+IrFmM+o8/2vBYMlH64gzJKGZxqPHLiJ56q89QaL3c48W2emA frH37Wcqgo8sAPRpKYlIlZDhf9cbslGfSRjRb0h4Pg7l0NNl4W5Yc2FDgDYXPGYGFj d8Z9r/bs4oMmYf5R0KZnsMy3pqUmBQn70Bl9uXQI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Richard Zhu , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Manivannan Sadhasivam , Frank Li , Sasha Levin Subject: [PATCH 6.13 465/623] PCI: imx6: Skip controller_id generation logic for i.MX7D Date: Wed, 5 Feb 2025 14:43:27 +0100 Message-ID: <20250205134514.007892391@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134456.221272033@linuxfoundation.org> References: <20250205134456.221272033@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore 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 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Zhu [ Upstream commit f068ffdd034c93f0c768acdc87d4d2d7023c1379 ] The i.MX7D only has one PCIe controller, so controller_id should always be 0. The previous code is incorrect although yielding the correct result. Fix by removing "IMX7D" from the switch case branch. Fixes: 2d8ed461dbc9 ("PCI: imx6: Add support for i.MX8MQ") Link: https://lore.kernel.org/r/20241126075702.4099164-5-hongxing.zhu@nxp.com Signed-off-by: Richard Zhu Signed-off-by: Krzysztof WilczyƄski Signed-off-by: Bjorn Helgaas Reviewed-by: Manivannan Sadhasivam Reviewed-by: Frank Li Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pci-imx6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 9d61e7c472082..22bf21846b79d 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -1393,7 +1393,6 @@ static int imx_pcie_probe(struct platform_device *pdev) switch (imx_pcie->drvdata->variant) { case IMX8MQ: case IMX8MQ_EP: - case IMX7D: if (dbi_base->start == IMX8MQ_PCIE2_BASE_ADDR) imx_pcie->controller_id = 1; break; -- 2.39.5