Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2582348ybz; Sun, 26 Apr 2020 23:48:49 -0700 (PDT) X-Google-Smtp-Source: APiQypK4O8hEdxoHS9bYcD732HI7irggE8hHzIKCNt+jUHfFaz0zeXxFRdw1UrTpq1bdPjG9e61C X-Received: by 2002:aa7:daca:: with SMTP id x10mr16489439eds.59.1587970129044; Sun, 26 Apr 2020 23:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587970129; cv=none; d=google.com; s=arc-20160816; b=C52JBGmfslPTy+XlwXHUZafpRPOHMiaF5T4aMrWne3W36w8beaMHQX6i+PI50DU0HP zHAjtsj4X9+28Nb4nm4Hf/vxiZCQbQLSeMsLf3o03e6kmCRKO1wK1t1IAxxf+Xul2ik1 g8bVECbuhSqpUf5oZMSpRJzeRkfJXfYAw/FTgEZB+l9Q9uXEp0gjd/cfMcVNVrZQViGE IQgT3aeghNQmlsKGHeyLev8WfShPOMeEOfQSDgf9tkfLecNck5rMIcWKhLoLdAXk7GjP i89HTZfdLAYSmx5OJX+0YfiTWSTuFL2r09k6eM+RG4vT1xSOo9UjGPYCISO8aN+U7MTW 4sLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=POx1MoMCpqotryMWpHmF1XFMD9Uzbs0Oa6Xq9l1+m5k=; b=b06Uqxx9mI2qKVgaAzEwY9CId/IdCSVJSZ3KBDZc56kEb0WQ0X160NW+yusuVrprA5 8PpUtbST7fw7m5A+B9iMitm48nzJ8doFf24YF3XLWetusV3PxT3gJ15v5+1m5jXgydga 0FaWpHSPHau5U8z/Ppv9WBjdvEe0AFUyEaqeQLqH4OAhDRbIcHCTwP3LlV7zO5M0Wt+d mRrBjYO+3y8OZ705RdC39WRZPBwIFMAs0jpZmAzgx1OWkIjJT69AV19i4dZw1dZiK7mo U7ouTv4fJrCuh4nW70759oH/bwmMCbUyPvHJ6TBhwD7b8q9Sys9ce+xvvGL7dzZSj3Nu 0piw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=ipmZLB70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i35si7720114edc.308.2020.04.26.23.48.25; Sun, 26 Apr 2020 23:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=ipmZLB70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726637AbgD0Gqh (ORCPT + 99 others); Mon, 27 Apr 2020 02:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbgD0Gqh (ORCPT ); Mon, 27 Apr 2020 02:46:37 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4CAC061A0F; Sun, 26 Apr 2020 23:46:37 -0700 (PDT) Received: from flygoat-x1e (unknown [IPv6:240e:390:491:f2b0::d68]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 491202049F; Mon, 27 Apr 2020 06:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587969996; bh=87cY8c65SZbqmYxYzk6T3jS7ROhx/jS7jol+umwWuSU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ipmZLB70pSVEu9CTWQUAPnv8VwbpFKilRfFvtvs2qQqppq+N6gnGsLm272ScTwsAT pQOSD3mKgw1ZTRqT7P7EKI1Lgm7jEDUPAYpZJRW3emSSkbETQupWpVcLckr+fRsdS1 WIGijRv/PVDI/Uqt82jPlUetvVCk4jW4a4UF2H0v3dU8a5drnVxoPFYx0eGXc3vO49 INyafcEamxMEuTGOXCwS5H2uRvboiBRjuOte/zrPwWWini+IkfBdXRgdHFNucyPbTZ CLUVS2jO7mdz1TeqKEsmLmAEFGammRDOnWMziS23ni9A8OKCcnY42fU+nJ1LJA2Yrj eBUmFNS0uCXIg== Date: Mon, 27 Apr 2020 14:46:18 +0800 From: Jiaxun Yang To: Huacai Chen Cc: "open list:MIPS" , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Lorenzo Pieralisi , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, LKML Subject: Re: [PATCH v6 2/5] PCI: Add Loongson PCI Controller support Message-ID: <20200427144618.1e7a642a@flygoat-x1e> In-Reply-To: References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200427060551.1372591-3-jiaxun.yang@flygoat.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Apr 2020 14:29:34 +0800 Huacai Chen wrote: > Hi, Jiaxun, > > On Mon, Apr 27, 2020 at 2:06 PM Jiaxun Yang > wrote: > > > > This controller can be found on Loongson-2K SoC, Loongson-3 > > systems with RS780E/LS7A PCH. > > > > The RS780E part of code was previously located at > > arch/mips/pci/ops-loongson3.c and now it can use generic PCI > > driver implementation. > > > > Signed-off-by: Jiaxun Yang > > > > -- > > v2: > > - Clean up according to rob's suggestions > > - Claim that it can't work as a module > > v3: > > - Fix a typo > > v4: > > - More clean-ups: Drop flag check, use devfn > > --- > > drivers/pci/controller/Kconfig | 10 + > > drivers/pci/controller/Makefile | 1 + > > drivers/pci/controller/pci-loongson.c | 251 [...] > > +static const struct of_device_id loongson_pci_of_match[] = { > > + { .compatible = "loongson,rs780e-pci", > > + .data = (void *)(FLAG_CFG0), }, > > + { .compatible = "loongson,ls2k-pci", > > + .data = (void *)(FLAG_CFG0 | FLAG_CFG1 | > > FLAG_DEV_FIX), }, > > + { .compatible = "loongson,ls7a-pci", > > + .data = (void *)(FLAG_CFG0 | FLAG_CFG1 | > > FLAG_DEV_FIX), }, > I suggest to use alpha-betical order here: ls2k, ls7a and rs780 at > last. Thanks for pointing out this minor issue. I put rs780e at first at it appears to be the first system using this driver. If there is no more review suggestion I'll send out next revision very soon. [...] -- Jiaxun Yang