From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C265CC43461 for ; Sun, 25 Apr 2021 10:39:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B197613B3 for ; Sun, 25 Apr 2021 10:39:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbhDYKkZ (ORCPT ); Sun, 25 Apr 2021 06:40:25 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:52857 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhDYKkX (ORCPT ); Sun, 25 Apr 2021 06:40:23 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C5FC714E2; Sun, 25 Apr 2021 06:39:42 -0400 (EDT) Received: from imap1 ([10.202.2.51]) by compute6.internal (MEProxy); Sun, 25 Apr 2021 06:39:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=XoLG+aIFDcgO90G6lE25YWBzpmWK/3l +t91ve9Q4KX4=; b=ikyRl9eulf1qr1qyOGRAubwZCS5+ndJyQXTExuVp4v4VN/6 E67mYf/wMF18RZ/a527+TlQkuYFtHzoAncKWNVPL1aFIBeL8omCjjY7s2mxXNqD/ 92nQPbUnUGJmls52B4AgV+tBJ/yq1afG8hF0iAXEyx2boTWb6HSt+768LwADJQnm MxF1o/sByOU1KuU5ZoVXfw+q2UXqKrViNgUj0MVsg7Zs7CjCVhmXEzGUL/pSIAfu wpnAnIYn5vBoQ0lLp0C4zpJBygTMU4gxMtOI+sGGzEznQ40F4j9VejLFF6e29VWh Mgg18f/UuqzEhSPPY5espI15hlzANSF1Ra7bCow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XoLG+a IFDcgO90G6lE25YWBzpmWK/3l+t91ve9Q4KX4=; b=Dx9fYcxegZ32Iquv3WkUZ/ hfhXzCHAt+QYgqH+2QknmfWke7IBshyCd/1hsNJAq+s3j8zAPz3PlxR87F/IQow9 3b61dnsWex28u0iUxt9xOMrmDLGyNTEKJY8b6ALNkJrRpl6f1XVNKLHDG+/ZUP3Y fpiSMDmRHx6UGhGeKUnRnAysYYf8YeEg/nTJNphkLUQbfQRGJvcG/5QNry7OOQSM iG7bO+NALoVcv0uyH2TjIZZD2JY/usMGHKDziORPIdDlefNRm23tR84jXUtYQ4zr D3Qwk2xTf5gJdlGU/9diV7LFA9Gq+w49YdZvfiF2a1wrgzmfmwg1FcbJdEbECJUQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdduiedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdflihgr gihunhcujggrnhhgfdcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpeevtdehveetkedvvdehhfeuueeffeduffduveevudeiveeu tedvheekteeujeegueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1E246130005F; Sun, 25 Apr 2021 06:39:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-Id: <8cd60ba7-b0db-450f-8285-eb5429c4f3ec@www.fastmail.com> In-Reply-To: <20210425052817.27373-1-maoxiaochuan@loongson.cn> References: <20210425052817.27373-1-maoxiaochuan@loongson.cn> Date: Sun, 25 Apr 2021 18:39:20 +0800 From: "Jiaxun Yang" To: "xiaochuan mao" , "Rob Herring" , "Thomas Bogendoerfer" , "Qing Zhang" Cc: devicetree@vger.kernel.org, "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: =?UTF-8?Q?Re:_[PATCH]_MIPS:DTS:Correct_device_id_and_class_code_of_pcie_?= =?UTF-8?Q?for_Loongnon-2K?= Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 25, 2021, at 1:28 PM, Xiaochuan Mao wrote: > from Loongson-2K user manual know that Loongson-2K have two > pcie controller pcie0 and pcie1, pcie0 have four port named port0~port3 > and pcie1 have 2 port named port0~port1. the device id of port0 is 7a19 > in each pcie controller and others are 7a09. and their class code is 0b0300. The manual is obviously incorrect. class0604 is PCI to PCI bridge that matches. hardware. 0b03 is undefined. Thanks. > > Signed-off-by: Xiaochuan Mao > --- > .../boot/dts/loongson/loongson64-2k1000.dtsi | 40 +++++++++---------- > 1 file changed, 20 insertions(+), 20 deletions(-) > > diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > index 569e814def83..a95121359080 100644 > --- a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > +++ b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > @@ -150,8 +150,8 @@ > pci_bridge@9,0 { > compatible = "pci0014,7a19.0", > "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x4800 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > @@ -163,10 +163,10 @@ > }; > > pci_bridge@a,0 { > - compatible = "pci0014,7a19.0", > - "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + compatible = "pci0014,7a09.0", > + "pci0014,7a09", > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x5000 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > @@ -178,10 +178,10 @@ > }; > > pci_bridge@b,0 { > - compatible = "pci0014,7a19.0", > - "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + compatible = "pci0014,7a09.0", > + "pci0014,7a09", > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x5800 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > @@ -193,10 +193,10 @@ > }; > > pci_bridge@c,0 { > - compatible = "pci0014,7a19.0", > - "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + compatible = "pci0014,7a09.0", > + "pci0014,7a09", > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x6000 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > @@ -210,8 +210,8 @@ > pci_bridge@d,0 { > compatible = "pci0014,7a19.0", > "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x6800 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > @@ -223,10 +223,10 @@ > }; > > pci_bridge@e,0 { > - compatible = "pci0014,7a19.0", > - "pci0014,7a19", > - "pciclass060400", > - "pciclass0604"; > + compatible = "pci0014,7a09.0", > + "pci0014,7a09", > + "pciclass0b0300", > + "pciclass0b03"; > > reg = <0x7000 0x0 0x0 0x0 0x0>; > #interrupt-cells = <1>; > -- > 2.17.1 > > -- - Jiaxun