Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp473024pxv; Thu, 22 Jul 2021 04:55:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf3EWFOFpH3AGkBsdZ3Uj4AqePvheWVpcFJuInK1EO8scXk9SKVn3vQHsR/dE0jH2kJd44 X-Received: by 2002:a5d:8511:: with SMTP id q17mr31353472ion.98.1626954927499; Thu, 22 Jul 2021 04:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626954927; cv=none; d=google.com; s=arc-20160816; b=N0ovEkbuXW6cy21Vb0auLuoh8qfojH8Pp1bjgLDTXPLICpPVE99396cm2Lp+RLS5tC KzU5od0cKkJxLGMwZVpk/cVwsDU/U/tPwMC9mP29/blnxdYeko5hsioo8tSD024YuP2n 79YsczC0GnF+C1UU8zsjjaoN4uklXLJyPANDOu693Dtzm9wDphOVYijE0N0LK2AbCmP/ J2cYE0/R6y9HB2xFc13dX4IHd6MHByWepU59BTisOWVANjSmoYG98c6VrLr7BpBKpsRr 7EUsko2pswoAo8cMDlYfhYWpXH6FW4GBUZhsyguZ1O86y+OYKmHrhDFftX/KeVefK3U7 eyRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eJHo32pmDSargBeSSjTxPOgwesXxsmvoHQ7CTrEtPwQ=; b=zj5pt5R/yxpF3Y5GO+H+V1NEvHjxsX1LjdR+Djo9KJWJtOM1doMd/oBPIXxATSGGnd ATy353FUuMMUF04rN885EwYSr4tNCrtFMOnHPs+bgeh4/o9oM/JvkvwAkjkCfmkLY4PL 9bUwRn2fM4D1YZyUgWhGfUJnZhM5F7wWxv+irNAPr+FNhf8r+x/ZoL3+szP1ETl6YvTh VxLuRZ2cQHrz9X9UDr6ihrgjnAyY3geIguZSF9wLbbxLGppfoWOFxH+PoLmxKCItB/ym 3/sNa4fURJS+MxrqiSYpGhnJyYch1VeluCTFd2WxhD+enq/akcjeIb3Jop+1/lii5GPn yBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g1OrwVOQ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si3077811iog.8.2021.07.22.04.55.16; Thu, 22 Jul 2021 04:55:27 -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=@linaro.org header.s=google header.b=g1OrwVOQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231714AbhGVLNh (ORCPT + 99 others); Thu, 22 Jul 2021 07:13:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231712AbhGVLNh (ORCPT ); Thu, 22 Jul 2021 07:13:37 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6EA7C0613C1 for ; Thu, 22 Jul 2021 04:54:11 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id p17so4141027plf.12 for ; Thu, 22 Jul 2021 04:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eJHo32pmDSargBeSSjTxPOgwesXxsmvoHQ7CTrEtPwQ=; b=g1OrwVOQT67xVprJPUIau4/8feqm+5lfQ7RHjj4psjNU7ncaYpfy0GfTkd2RS+cbN2 AApWrJCWAsfpv2O/d5QWEiAmlF4CEXwaKRbBcPBUxuspL18X5G/VZMUThAGZ1XnnrKP/ i+5byw6QckfZJHxyf+rBdntW22mpTNrAtuCLfBKlbrJs7bxh76LlsVhOtT+38x+LKCXI XV93zT246zEHn3Ip/Iu7L8RrwR8tOPxTnNTNDVCd5xFDx57aKOkTXGqjiBg++U11lGJY i1VpdFUpFQkvF+yE9rCv5mX2ey0gHTADK6wEvrWSpY7sz+4qlIn7Ls9EtrtOiFmEjJZn aYxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=eJHo32pmDSargBeSSjTxPOgwesXxsmvoHQ7CTrEtPwQ=; b=OvqPu9GWcaFEAKT8bu9n+nBAg/jgFf3KgGvw5mtimjKW7buVuBgEHre/iM1eLuu6+i Ox+ZsjkqJ9FZcDFFxrpZnrI6HTTQ0NEOYItAsWqT3M/FpWw6DyV3lAVb5PvuTcCAAUFs W1Ro0POQ0NYum8UK0uHfpZyqGGrlYsshGp0X+gOY2+jWrbZc3NPSQhgKO4DyEkvB81es ttyxtHMH4JrFqKgS3EkOdfnzPTydTICrULT5bxkpg4Fcdz4b4Zk8nmwisOoJ6rYaIVXl zdWMnN0ef9gRAtvRDC3Q2+jQ+/BJuZvZysCHtKgK8sRJBeGV8EMRDVB9GyNRTMzDYmy4 fynw== X-Gm-Message-State: AOAM530kKLhRGItuScDg1H+4J/6nV9A8/GP2RDsvbIP/a/Ao3U7/aLXK QpWuqD5dgDsW90v2tbhcdYC0 X-Received: by 2002:a17:90a:1941:: with SMTP id 1mr8646747pjh.217.1626954850999; Thu, 22 Jul 2021 04:54:10 -0700 (PDT) Received: from workstation ([120.138.13.30]) by smtp.gmail.com with ESMTPSA id i8sm32579542pfk.18.2021.07.22.04.54.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Jul 2021 04:54:09 -0700 (PDT) Date: Thu, 22 Jul 2021 17:24:04 +0530 From: Manivannan Sadhasivam To: Bjorn Helgaas Cc: kishon@ti.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, robh@kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, smohanad@codeaurora.org, bjorn.andersson@linaro.org, sallenki@codeaurora.org, skananth@codeaurora.org, vpernami@codeaurora.org, vbadigan@codeaurora.org Subject: Re: [PATCH v6 2/3] PCI: dwc: Add Qualcomm PCIe Endpoint controller driver Message-ID: <20210722115404.GB4446@workstation> References: <20210714083316.7835-3-manivannan.sadhasivam@linaro.org> <20210714191509.GA1864706@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210714191509.GA1864706@bjorn-Precision-5520> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 02:15:09PM -0500, Bjorn Helgaas wrote: > Can you use the driver name for *this* driver in the subject instead > of "dwc"? Then we'll be able to identify changes related to this > driver easily in the "git log --oneline" output. > Okay sure. I usually do that for the drivers that got merged but don't have any issues with driver prefix while under review. > I'm not sure what that name should be -- you have the PCIE_QCOM_EP > config symbol and "qcom-pcie-ep" as the driver.name. Both seem > possibly a little too generic. We already have a "qcom" driver > (drivers/pci/controller/dwc/pcie-qcom.c). Is this for the same > hardware in endpoint mode? > Yes > Will this driver support every endpoint device from Qualcomm, even > future ones? People often use a model or codename here (xgene, > aardvark, armada, tegra, etc). But I guess you can always use > something more specific for future drivers if/when Qualcomm produces > something that requires a different driver. > Since pcie-qcom.c supports most of the RC IPs in recent SoCs, I can assure that this driver can handle all EPs. > On Wed, Jul 14, 2021 at 02:03:15PM +0530, Manivannan Sadhasivam wrote: > > Add driver support for Qualcomm PCIe Endpoint controller driver based on > > the Designware core with added Qualcomm specific wrapper around the > > core. The driver support is very basic such that it supports only > > enumeration, PCIe read/write, and MSI. There is no ASPM and PM support > > for now but these will be added later. > > > > The driver is capable of using the PERST# and WAKE# side-band GPIOs for > > operation and written on top of the DWC PCI framework. > > [...] > > +static int qcom_pcie_establish_link(struct dw_pcie *pci) > > +{ > > This is much more complicated than existing *_pcie_establish_link() > functions. Are other drivers doing work like this in different > functions? > > Please try to copy the same structure and function name conventions as > other drivers. This applies to all the functions here. It makes > maintenance much easier if code doing similar things looks similar. > Sure thing. I can use the patterns for the callback functions as they are the ones shared between all drivers. Thanks, Mani