Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp748598pxv; Thu, 1 Jul 2021 08:26:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWRAjkLGaxxCmy7kBvkcR+Gd8P+P/sB4pxMwM5a66zruQTa5onRoB0UJw2hxHr1s5KgP9q X-Received: by 2002:a6b:5b17:: with SMTP id v23mr12746198ioh.23.1625153185866; Thu, 01 Jul 2021 08:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625153185; cv=none; d=google.com; s=arc-20160816; b=EINw6g5W+ocKX5ixnOGFmTdjmOfYXrk0a00Tefb6wleW0Qc5NvXOTkravzDANYZxS9 NkxMO+yPMZkaqC/RU02JeXuvd+5d+P8dY5opdOhyAqJWr2rOMzHhvm7L+N10pEsgF7nd ThfiY9oEZLFq2n2c4dm8gS8uU2FS4uVWSZYqVszbjR9j3te0mMJV5P8ATY6rN+oPMb9S b0eRaDwfdA083bJROjtZthcPlJ4CWMrKH2PbMObqoVrMRj+fgvjKJZoh2kxTZcJcQ+ug 8qcZu6fJ6Am1GM0dYpX7kYfiRgpCEiiGwJyM8wrT4AktIJma1jcqU2f0DVQgD2vx0rAc bLEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PD2SUrDcYLe2+5DK3EmwgrtKLxVm1xIJdDlnHgoJRGA=; b=iQBT4+FupKXmoe2rK1Gsns5Y25mJeSS8kGFdF7RrID7+vQALm762WZ18UTMxyWUo1f Q19mbBkp024qzoe6ujQPDl7mWRj4NZ+GbUzz2eqsNuY9jOZqhtajFLMhSx2jLj2BKjRd tP3KBCfUptRwPCzYDFDzptHaiDq4yswYzlVr37N4GugaYJFoydAGBmADAER8ceZ+XnU3 KLzOoA29slikYGbgVP+tiEtZKYxiBgsuTjzivbAo4SHC9ueCItfP5zy/M8GX5/UjXRAU 0Rywtz8+fVrdu/eYBuh6cW8MUIbS4LXd0TJJPCxA6DWTPaMj1ZL0wV40IX3ARnf9rKsG uH7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YE1gmcnG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si76987ilk.157.2021.07.01.08.26.13; Thu, 01 Jul 2021 08:26:25 -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=pass header.i=@kernel.org header.s=k20201202 header.b=YE1gmcnG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233500AbhGAP1q (ORCPT + 99 others); Thu, 1 Jul 2021 11:27:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:46892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbhGAP1p (ORCPT ); Thu, 1 Jul 2021 11:27:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E12A96140A; Thu, 1 Jul 2021 15:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625153114; bh=+xwpidjwxHnbYP8ChZRNxTaoNpy++W26pPBlNiZG1Es=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YE1gmcnGC9g80E48RRI74yVfqEgwwBB2bKAeTy4DSkuQhlA9/8EOdAK+quQe0R/fZ QZGdA60OQIAmf8X54geE76/5GIhw2kc8aPAkegkan+nwD+yYdnrOEtLGHngCzXszMi z/8iYsXxwzLtyuUWHEHaNgvnIaIqwYcbmg3uLh+9ukbLGgk8D9/d+WsfqdzShslDRC 4E8DyJ+UVGFQSXByxm0ESUjpqZIfzPhXLbe5XTP4BzMppZXitZ5m/4k6rLQCPs31zX 8eOwQWjYoLw2uXyx+edD60Yd9zlQEUdA8T2OksazGEWz2WvimcIHL1CKGuKlMRx0Y2 h9ro5wQDaYH3g== Received: by mail-ej1-f45.google.com with SMTP id bg14so11020110ejb.9; Thu, 01 Jul 2021 08:25:14 -0700 (PDT) X-Gm-Message-State: AOAM5321ZNxX9mQ30BQBya0tz6yj0neSExHS0EUuFz0/u+toUPQdhbk4 dogHXhxWwkmCMCoVLYOAOrViU96aaOxzBkEY8w== X-Received: by 2002:a17:907:3e8a:: with SMTP id hs10mr372288ejc.359.1625153113214; Thu, 01 Jul 2021 08:25:13 -0700 (PDT) MIME-Version: 1.0 References: <20210630034653.10260-1-manivannan.sadhasivam@linaro.org> In-Reply-To: <20210630034653.10260-1-manivannan.sadhasivam@linaro.org> From: Rob Herring Date: Thu, 1 Jul 2021 09:25:01 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 0/3] Add Qualcomm PCIe Endpoint driver support To: Manivannan Sadhasivam Cc: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , devicetree@vger.kernel.org, PCI , "linux-kernel@vger.kernel.org" , linux-arm-msm , hemantk@codeaurora.org, Siddartha Mohanadoss , Bjorn Andersson , Sriharsha Allenki , skananth@codeaurora.org, vpernami@codeaurora.org, Veerabhadrarao Badiganti Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 29, 2021 at 9:47 PM Manivannan Sadhasivam wrote: > > Hello, > > This series adds support for Qualcomm PCIe Endpoint controller found > in platforms like SDX55. The Endpoint controller is based on the designware > core with additional Qualcomm wrappers around the core. > > The driver is added separately unlike other Designware based drivers that > combine RC and EP in a single driver. This is done to avoid complexity and > to maintain this driver autonomously. > > The driver has been validated with an out of tree MHI function driver on > SDX55 based Telit FN980 EVB connected to x86 host machine over PCIe. > > Thanks, > Mani > > Changes in v5: > > * Removed the DBI register settings that are not needed > * Used the standard definitions available in pci_regs.h > * Added defines for all the register fields > * Removed the left over code from previous iteration > > Changes in v4: > > * Removed the active_config settings needed for IPA integration > * Switched to writel for couple of relaxed versions that sneaked in I thought we resolved this discussion. Use _relaxed variants unless you need the stronger ones. Rob > > Changes in v3: > > * Lot of minor cleanups to the driver patch based on review from Bjorn and Stan. > * Noticeable changes are: > - Got rid of _relaxed calls and used readl/writel > - Got rid of separate TCSR memory region and used syscon for getting the > register offsets for Perst registers > - Changed the wake gpio handling logic > - Added remove() callback and removed "suppress_bind_attrs" > - stop_link() callback now just disables PERST IRQ > * Added MMIO region and doorbell interrupt to the binding > * Added logic to write MMIO physicall address to MHI base address as it is > for the function driver to work > > Changes in v2: > > * Addressed the comments from Rob on bindings patch > * Modified the driver as per binding change > * Fixed the warnings reported by Kbuild bot > * Removed the PERST# "enable_irq" call from probe() > > Manivannan Sadhasivam (3): > dt-bindings: pci: Add devicetree binding for Qualcomm PCIe EP > controller > PCI: dwc: Add Qualcomm PCIe Endpoint controller driver > MAINTAINERS: Add entry for Qualcomm PCIe Endpoint driver and binding > > .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 160 ++++ > MAINTAINERS | 10 +- > drivers/pci/controller/dwc/Kconfig | 10 + > drivers/pci/controller/dwc/Makefile | 1 + > drivers/pci/controller/dwc/pcie-qcom-ep.c | 742 ++++++++++++++++++ > 5 files changed, 922 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml > create mode 100644 drivers/pci/controller/dwc/pcie-qcom-ep.c > > -- > 2.25.1 >