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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18E60EB64DD for ; Tue, 25 Jul 2023 01:25:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FA4986682; Tue, 25 Jul 2023 03:25:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 42D8C86679; Tue, 25 Jul 2023 03:25:44 +0200 (CEST) Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 84BEA86679 for ; Tue, 25 Jul 2023 03:25:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ycliang@andestech.com Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 36P1Oitw064793; Tue, 25 Jul 2023 09:24:44 +0800 (+08) (envelope-from ycliang@andestech.com) Received: from ubuntu01 (10.0.12.75) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Tue, 25 Jul 2023 09:24:39 +0800 Date: Tue, 25 Jul 2023 01:24:36 +0000 From: Leo Liang To: Minda Chen CC: Heiko Schocher , Simon Glass , Stefan Roese , Andrew Scull , Pali =?utf-8?B?Um9ow6Fy?= , Mark Kettenis , Rick Chen , , Mason Huo , Leyfoon Tan , Kevin Xie Subject: Re: [PATCH v7 2/4] starfive: pci: Add StarFive JH7110 pcie driver Message-ID: References: <20230720112333.9255-1-minda.chen@starfivetech.com> <20230720112333.9255-3-minda.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230720112333.9255-3-minda.chen@starfivetech.com> User-Agent: Mutt/2.0.5 (2021-01-21) X-Originating-IP: [10.0.12.75] X-DNSRBL: X-MAIL: Atcsqr.andestech.com 36P1Oitw064793 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Thu, Jul 20, 2023 at 07:23:31PM +0800, Minda Chen wrote: > From: Mason Huo > > Add pcie driver for StarFive JH7110, Also add PLDA > PCIe controller common driver functions. > > Several devices are tested: > a) M.2 NVMe SSD > b) Realtek 8169 Ethernet adapter. > > Signed-off-by: Mason Huo > Signed-off-by: Minda Chen > Acked-by: Pali Rohár > --- > drivers/pci/Kconfig | 13 ++ > drivers/pci/Makefile | 2 + > drivers/pci/pcie_plda_common.c | 116 +++++++++++ > drivers/pci/pcie_plda_common.h | 118 +++++++++++ > drivers/pci/pcie_starfive_jh7110.c | 317 +++++++++++++++++++++++++++++ > 5 files changed, 566 insertions(+) > create mode 100644 drivers/pci/pcie_plda_common.c > create mode 100644 drivers/pci/pcie_plda_common.h > create mode 100644 drivers/pci/pcie_starfive_jh7110.c Reviewed-by: Leo Yu-Chi Liang