From patchwork Wed May 31 09:21:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 687509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A5A6C77B7C for ; Wed, 31 May 2023 09:43:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232884AbjEaJn1 (ORCPT ); Wed, 31 May 2023 05:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235336AbjEaJnZ (ORCPT ); Wed, 31 May 2023 05:43:25 -0400 Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 049F2A0 for ; Wed, 31 May 2023 02:43:23 -0700 (PDT) Received: from [167.98.27.226] (helo=rainbowdash) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1q4I1C-0086KL-Jl; Wed, 31 May 2023 10:21:23 +0100 Received: from ben by rainbowdash with local (Exim 4.96) (envelope-from ) id 1q4I1C-001DuC-25; Wed, 31 May 2023 10:21:22 +0100 From: Ben Dooks To: devicetree@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com Cc: Conor Dooley , Rob Herring , Sudip Mukherjee , Jude Onyenegecha , Greentime Hu , Jeegar Lakhani , Ben Dooks , Ben Dooks Subject: [PATCH 1/2] PCI: of: update max-link-speed for gen5 links Date: Wed, 31 May 2023 10:21:20 +0100 Message-Id: <20230531092121.291770-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ben Dooks Update max-link-speed to be up to 6, for newer systems that could have up to gen6 pci describe in device-tree. Signed-off-by: Ben Dooks Signed-off-by: Ben Dooks --- drivers/pci/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/of.c b/drivers/pci/of.c index 2c25f4fa0225..da0cc01e923e 100644 --- a/drivers/pci/of.c +++ b/drivers/pci/of.c @@ -639,7 +639,7 @@ int of_pci_get_max_link_speed(struct device_node *node) u32 max_link_speed; if (of_property_read_u32(node, "max-link-speed", &max_link_speed) || - max_link_speed == 0 || max_link_speed > 4) + max_link_speed == 0 || max_link_speed > 6) return -EINVAL; return max_link_speed;