From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basealt.ru; s=dkim; t=1772188380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VuW/cCMSVuDQYBMWvD4gqKWgUcy5LVVavoR7iOZwo04=; b=xXDMaCvRl6yuI9WCaeuIWkUOk8FxmXlEYgbAmnOTGCWMZNE9vdNA18y2kf2kcbfewZORfB GMMmQIJT4TIUkFBLhfJqOE8nC9maMfNZyD3TKhUcJkTN8aBLofdY/trUF9G+zfgH2nmzgY zeAtzyWX7xQy2HPOmxzVR/Y/ORhfcHlDBiuVpTrmT4K+rS/R9k+LEz0CQdFj/Hu/bvD0sO PiWVN2HGQpBmjzvCm3quYFSkq9xctsDHFVmEh3IbAvDFz28H1O1ZURCckF1KjenboESJtC vPOhcL1ar0F7P6z+ZDq3JZxYXqb9PADS1JoXxi82PlrROWZxHpPaXStCEGiF+Q== From: Daniil Gnusarev To: gnusarevda@basealt.ru, devel-kernel@lists.altlinux.org Date: Fri, 27 Feb 2026 14:32:35 +0400 Message-ID: <20260227103236.785736-35-gnusarevda@basealt.ru> X-Mailer: git-send-email 2.42.2 In-Reply-To: <20260227103236.785736-1-gnusarevda@basealt.ru> References: <20260227103236.785736-1-gnusarevda@basealt.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [d-kernel] [PATCH 34/35] dw-pcie: refuse to load on Baikal-M with recent firmware X-BeenThere: devel-kernel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2026 10:33:39 -0000 Archived-At: List-Archive: List-Post: From: Alexey Sheplyakov Firmware from SDK-M 5.4 is incompatible with dw-pcie driver. Yet the DTB (passed to kernel by the firmware) claims otherwise. Hence refuse to load if device node is compatilbe with `baikal,bm1000-pcie` (earlier versions of Baikal-M firmware used a different compatible string). Signed-off-by: Alexey Sheplyakov X-feature-Baikal-M X-DONTUPSTREAM --- drivers/pci/controller/dwc/pcie-designware-plat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index 12f41886c65d1e..dbd7b9375b01cc 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -110,6 +110,11 @@ static int dw_plat_pcie_probe(struct platform_device *pdev) const struct dw_plat_pcie_of_data *data; enum dw_pcie_device_mode mode; + if (of_device_is_compatible(dev->of_node, "baikal,bm1000-pcie")) { + dev_err(dev, "refusing to load on Baikal-M with SDK-M 5.{4,5}\n"); + return -ENODEV; + } + data = of_device_get_match_data(dev); if (!data) return -EINVAL; -- 2.42.2