From patchwork Tue Feb 28 16:47:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126217wrd; Tue, 28 Feb 2023 08:49:44 -0800 (PST) X-Google-Smtp-Source: AK7set/3J8mJDByPiXEZ/+q+c0rcYFSpBVVPBAa78H/B5hIsUs+DI6KXoU5x4Dv18CAGb0u/14RO X-Received: by 2002:a17:902:e806:b0:19a:9897:461 with SMTP id u6-20020a170902e80600b0019a98970461mr4011402plg.52.1677602984273; Tue, 28 Feb 2023 08:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602984; cv=none; d=google.com; s=arc-20160816; b=VTCsAW0PloMU1aE1nW3BLKvFWnqVib4CXT1tXxvBN9mDWPyfC94fYDJJLt2BP/9PWK AwEOAg6X3FIq5vDTPeiup+OxjgNCq7Ps5XgaD1BwDitBJDJAuhBD7+3Jc55hhujWEumF bhTX52gwM92AeOSkr6hZn7MVLx0o/76DiULgP2ozIFi+ZJLQHVLn3Ww2T9FPYRib6HM1 9YT4ked2+Mzutu16pkClaNtv0FlKS1AXC9VrGZ9P57yEY1x8fx1p/5R2GKUb3uVzAfPr 4T7brT7p+kzGCvnGfYbQy4ToOfvYYRGZuh3DF5GGcJK8VS/lGeKt+NEGKzAnCn7D2+sz eOuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=TFJJuxo8grX5k3VBGyxhJuUKcP/iHAEklQWAs7+JbGzoSHK7/JBK1fmdRhSOFgiafc VYcVmAUEBXcXkg/enQ8lwaod7/wpGI0+5yBDEszhG9CABqMlzMlvsjmI8SVupUloqz2I kCb5rn9gTvsSwQgwga+QlEdEZi2GTIHbZny9wXNvWK8vgGqthPKpqI5vxFCVBe1RVow5 U9maxkpsf6r177oBGje6VujAhXWSKk+a2H/PQxcI9cTep3+Bd+/kq9YYcfAsgZAs4QsM hxVoicXPYEilsSvnpBqma0pWHF4wZibr+6/9fGYv2+4aifmKnH6l3q/8GJnnBQB6ZLm0 Nxjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mj566OPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a170902ceca00b0019ab692fc8fsi10496564plg.612.2023.02.28.08.49.31; Tue, 28 Feb 2023 08:49:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mj566OPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjB1QtJ (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjB1Qs6 (ORCPT ); Tue, 28 Feb 2023 11:48:58 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDC919F2C for ; Tue, 28 Feb 2023 08:48:26 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so10223923pjz.1 for ; Tue, 28 Feb 2023 08:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=mj566OPk7ImfN/AU68UwLwS5qA/crpftIJk2+zaV8GZTqW8IFG//ePMocyMW9k8GnS XfLU8xG6R2UAhEX6/L6N1ykaHb2sYKFYIF/e5BnXnaU+YTcJ8Qazzcx6MIvvbcbAYD6G xR3mSPoN8H1kKpOqTlZOhkyPw1KXMSH+Hwwsp9iKwwHgeXb1wX7HIUuCY6dCuQWYHUUU tv7fvJelkiCfhP35GeDxuacaUIaaiQDkNe3i1MvaOgjpwc1VwHHTeDaK3Ckcjq1BCdOn cWuVaLdJUXsvRaT8AWqlKKUkF60U102BruutjXO0rMDs2fUJ6M0QA0XioDi30hBuGdsM N9kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=MhfUV9CtGoU9Sy3yDMChpU3tinTRFpX5Y8LxIAozoB3t/ymXZ3cCpuep97TqGV/IbL Z7wdz1+YSq0yeOHAbohfRa3Vhtw7wQg3qKVm/NbU7wU838Y8AbSug5738WbME8lNMQ8L xncQhSFDcR7GD3SzlYJ/x1Ev/rqJIEt3w2zixtZ9aVRpMNMrovBbMwG+RgeFLyD1pkcR 2ymu9qef/8/HWulo6I6TLIgWq72pb1Tk0Q9YGIy/YI4ifuOq8viv7q9s1WpPgEST6lxG RxJ+kNqhJgZ0BAXAZNka/SoSWzdeoI1rYPqcIeVXNfOD8/7HikPls77e1upC110LI3EE L6RA== X-Gm-Message-State: AO0yUKVG77CQ+asCI4+2/qIA56gPUDP1PuR90e+Z7m2M0p67z2+EAQrn jNlOFKUmijOVvcSvWDH4Hx43pqNLRgVE1KI= X-Received: by 2002:a05:6a20:a021:b0:cc:32a8:323f with SMTP id p33-20020a056a20a02100b000cc32a8323fmr4660667pzj.38.1677602906022; Tue, 28 Feb 2023 08:48:26 -0800 (PST) Received: from localhost.localdomain ([103.197.115.185]) by smtp.gmail.com with ESMTPSA id z11-20020a6552cb000000b00476dc914262sm5908792pgp.1.2023.02.28.08.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:25 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, Manivannan Sadhasivam Subject: [PATCH 05/16] arm64: dts: qcom: ipq8074: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:41 +0530 Message-Id: <20230228164752.55682-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230228164752.55682-1-manivannan.sadhasivam@linaro.org> References: <20230228164752.55682-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759094226564024536?= X-GMAIL-MSGID: =?utf-8?q?1759094226564024536?= For 64KiB of the I/O region, the I/O ports of the legacy PCI devices are located in the range of 0x0 to 0x10000. Hence, fix the bogus PCI addresses (0x10200000, 0x20200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses and align them in a single line. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") Reported-by: Arnd Bergmann Link: https://lore.kernel.org/linux-arm-msm/7c5dfa87-41df-4ba7-b0e4-72c8386402a8@app.fastmail.com/ Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 62d05d740646..e8dad3ff4fcc 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -780,10 +780,8 @@ pcie1: pci@10000000 { phys = <&pcie_phy1>; phy-names = "pciephy"; - ranges = <0x81000000 0 0x10200000 0x10200000 - 0 0x10000>, /* downstream I/O */ - <0x82000000 0 0x10220000 0x10220000 - 0 0xfde0000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x10200000 0x0 0x10000>, /* I/O */ + <0x82000000 0x0 0x10220000 0x10220000 0x0 0xfde0000>; /* MEM */ interrupts = ; interrupt-names = "msi"; @@ -844,10 +842,8 @@ pcie0: pci@20000000 { phys = <&pcie_phy0>; phy-names = "pciephy"; - ranges = <0x81000000 0 0x20200000 0x20200000 - 0 0x10000>, /* downstream I/O */ - <0x82000000 0 0x20220000 0x20220000 - 0 0xfde0000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x20200000 0x0 0x10000>, /* I/O */ + <0x82000000 0x0 0x20220000 0x20220000 0x0 0xfde0000>; /* MEM */ interrupts = ; interrupt-names = "msi";