Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp330058pxa; Fri, 21 Aug 2020 08:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbIULGZ+QDr6MU/u97nDs1TRgPVOW3uy3AttnpIR0FQX+Hmv//Z1cVO33J7t+X008/zA7S X-Received: by 2002:a50:fb94:: with SMTP id e20mr3350636edq.103.1598023172401; Fri, 21 Aug 2020 08:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598023172; cv=none; d=google.com; s=arc-20160816; b=k5xZyx2K0ody14VwmZahUs7uJRH3q2HnDS+buDP83rxgS8kSDJOb362jG1h8rupr6c VP+FV0C5THpRiXX2ylSEue+jRIi5ahGZKugbo/3vr3raHvwv4uAjw8OSG5KqxiNY0zfn Lljb3ANqdr/W6HZn2rI7ryvbV7KYLnz3CAea5Fi1zzuKenon9J2XsMGUSmfc21I/vDeD wtRtn8EBEoI9kDwOQq2va3gmf3IgQg14bL4AFbym1agIVqO0nl01a85Bm/xaLi4zJ229 E+Am1WtEB0mYCMMIcz/CsIYGk/FR2XP1BbcDOCivH4z8Lg8gAeGSrUf+utcs8NSh3QuV YPfQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ahg5nela1JUC9KKhjqVH9llbBwk/SBHjRly3x+0Iphs=; b=j/CUtbPWcceGfkSr9DilxTKM/DNEmlLIuh8MXEJ9XpWSOEXCw7YoQ72L+0GEFMseTA /CgLBgg+87avnnfoJvOMTtUufrhtXoix5xcsStF7UXEAf0TuUHeD6H3a7dwrO1SdEJ9M n6K8N7/X4dWUtehPgrkWNwXy9rT2K3+cAkA+oTSLDMjyLsNzuF+ol3KzMmzz4AW8N56R RN43vc7i/5DoRowXZfd6oQZyXPFx0NjDF+kCLrB68goKRPJC0Z1ZoiDseO3CHwUoeAiw emRceTXyXo1tNirAkqzCs/LuZJ4ocQhpinspZRrupwTt1aLoDBik80p55O+/3VAAMqQh jf5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ExF9oePk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 96si1398307edq.405.2020.08.21.08.19.08; Fri, 21 Aug 2020 08:19:32 -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=@infradead.org header.s=casper.20170209 header.b=ExF9oePk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbgHUPPp (ORCPT + 99 others); Fri, 21 Aug 2020 11:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbgHUPPk (ORCPT ); Fri, 21 Aug 2020 11:15:40 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0A5C061573; Fri, 21 Aug 2020 08:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=Ahg5nela1JUC9KKhjqVH9llbBwk/SBHjRly3x+0Iphs=; b=ExF9oePk725V3Fkj0cDJnMOL29 fRGLS/wZGNIy8iKl6MYajnMRsjNpX14e78K4xXUyBRfLvSm22SPfN9WA0jxJ3W+GXb3CXb1xps5ME MRreSSGlboy+cQ3W9cryCB49lfytJEK/O568Hc+KXtvEgmmtBMSzj5j+BHXPRLV/ZwqzOaX3p9jci njbH6fgXL8Z3IjBIo6h98RVM5elwbjZP5n4pjj/TL1bwAzd7xatpSLHUa6MhKp4oZ2YNhNhIYle4l XM8c7RmwQp9Dk2+wOi4qbBhh+pcTkDtZl2qIBqDhJKea8RlVQIlPxVbZfGa7QijyV/AeN/SCpLjdh cgPg0tAw==; Received: from [2601:1c0:6280:3f0::19c2] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k98lK-0003zK-K7; Fri, 21 Aug 2020 15:15:26 +0000 Subject: Re: [PATCH 2/2] PCI: sprd: Add support for Unisoc SoCs' PCIe controller To: Hongtao Wu , Lorenzo Pieralisi , Rob Herring Cc: Orson Zhai , Baolin Wang , Chunyan Zhang , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Billows Wu References: <1598003509-27896-1-git-send-email-wuht06@gmail.com> <1598003509-27896-3-git-send-email-wuht06@gmail.com> From: Randy Dunlap Message-ID: Date: Fri, 21 Aug 2020 08:15:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1598003509-27896-3-git-send-email-wuht06@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/20 2:51 AM, Hongtao Wu wrote: > From: Billows Wu > > This series adds PCIe controller driver for Unisoc SoCs. > This controller is based on DesignWare PCIe IP. > > Signed-off-by: Billows Wu > --- > drivers/pci/controller/dwc/Kconfig | 12 ++ > drivers/pci/controller/dwc/Makefile | 1 + > drivers/pci/controller/dwc/pcie-sprd.c | 256 +++++++++++++++++++++++++++++++++ > 3 files changed, 269 insertions(+) > create mode 100644 drivers/pci/controller/dwc/pcie-sprd.c Hi, > diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig > index 044a376..d26ce94 100644 > --- a/drivers/pci/controller/dwc/Kconfig > +++ b/drivers/pci/controller/dwc/Kconfig > @@ -311,4 +311,16 @@ config PCIE_AL > required only for DT-based platforms. ACPI platforms with the > Annapurna Labs PCIe controller don't need to enable this. > > +config PCIE_SPRD > + tristate "Unisoc PCIe controller - RC mode" > + depends on ARCH_SPRD > + depends on PCI_MSI_IRQ_DOMAIN > + select PCIE_DW_HOST > + help > + Some Uisoc SoCs contain two PCIe controllers as RC: One is gen2, Unisoc > + and the other is gen3. While other Unisoc SoCs may have only one > + PCIe controller which can be configured as an Endpoint(EP) or a Root > + complex(RC). In order to enable host-specific features PCIE_SPRD must complex (RC). > + be selected, which uses the Designware core. > + > endmenu Also, please follow Documentation/process/coding-style.rst for Kconfig entries: For all of the Kconfig* configuration files throughout the source tree, the indentation is somewhat different. Lines under a ``config`` definition are indented with one tab, while help text is indented an additional two spaces. -- ~Randy