Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp266633pxb; Thu, 14 Jan 2021 05:35:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDI32EHZEkj1snyQdXVYX2u6irsTd9tj5omd9h3ohLCh4skXsGJtyMyyJ46iKSHjhmgt4q X-Received: by 2002:a50:d4d9:: with SMTP id e25mr5828681edj.243.1610631302915; Thu, 14 Jan 2021 05:35:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610631302; cv=none; d=google.com; s=arc-20160816; b=cs3OIWFeh50b9HLhqo2XjRXoltALvFXUY8XZ9ZxZf81QVxRDH2GDQvvhxo+DDYGJIV j2QaCZPSg133Q1yEhHrLcja0lz3xxyBSXSodBEJzGuXGS+ZNE6vV5H4IuAMSCLkq0YWi Yr8vJlnSgQ2SxmauNtrIyKU/DZ6Xo+IxN5Ua4Qz3bXtqpsVstpkKEsuQaPIChmpp5jI3 Sw+YtgO76b9icD+5AByJcSnLj5/mbKlqLmtyoJ0nzHSvbaTmcdw93uQabh+5TE22dmUy Q5J950Q6qtjzY7XfqB61SKt5zECTJlDz1gHyfxQAlVLaAwP8XWpifpQXR8yhMwHNRDne gsWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5gtQnymxrJU4U/yydHBIyEMWxn2DtKpp2p8TKsUkvAE=; b=l4gNIOKT40xrtjkf20m96DFT+QT1JIeOP6dYxYiafGZ556dYknfAu4Et7omUSYDgqx YFJEo5iq3/dWVC6ICCE6c0go+tJvyoe/Zc/EqIkD7Xe/hRpxANcLO2K08TTGHFDraipo kJBv/GWn97XS62A6w2NZlI3lHuhRvKwsHQuPJH9f0W1H/m24tF5J/KkEDOWU/u2UdtgJ 5k3tgu6tID9BaZTHXoKitN5FjUaJOeAJUl6IEhJDU6qxaIxm/gjNxj3uXZqPkN24nmmD HqXamrdPPL2JWvkIyspg8sXKFimMAaKCEVy7yRsUZaEOtiRZfdHAimTOVVXPyI4I8lTg FSjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t9ScDnhL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si2764775eja.488.2021.01.14.05.34.38; Thu, 14 Jan 2021 05:35:02 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=t9ScDnhL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbhANNbd (ORCPT + 99 others); Thu, 14 Jan 2021 08:31:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbhANNbc (ORCPT ); Thu, 14 Jan 2021 08:31:32 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22D4EC061574; Thu, 14 Jan 2021 05:30:52 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id g25so5531068wmh.1; Thu, 14 Jan 2021 05:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5gtQnymxrJU4U/yydHBIyEMWxn2DtKpp2p8TKsUkvAE=; b=t9ScDnhL0kdFbaMBnwSr9ldDMzRrCHF9JPG0ADBs9MXR22YBlAMfQN/Ueh2rMCnm7u eQQPj3w2VkmPEUPXyDFOrbA5FOBygYyxBIEYkPhjhic+YsFagMhrLUzqJ+zFqAJyh/o2 jyf1eu4HMnvxZaS2LHmHjEFqh1quRV0GENmo8k/ALq5UMMJITIP5/d0YRSSlibxwzNjp VnE7wLD1hU+K89DfF6+SGvWBBWCNWgVM/f8Lohc61CBNp8rU2cSBcjN6tAZsZ7lYrUOU 0td8b1yKdmLe/YoBsMyRBO96kwXwZmiEJSs0zmATSe6x/H4UCOAFGeA+XAJVrarwhDcd 40OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5gtQnymxrJU4U/yydHBIyEMWxn2DtKpp2p8TKsUkvAE=; b=CM0rc8YvO8lDDwElEkakzfio4tJjGVdqohYukRNlX10vDx/xFVefI1x1+5txauTOgD yP2TmyLDNW4cRPEhR6Tpvi7VG6n4wA4eXK9uKE9vRoPFaidAKAnLVFHwfExrXx7CfpLn XKTT6Fo2wiBJgwnwjg6p1BgpIF2CEmIjT1DvAh41XnknC1JLnnU+bw8jOyswYKfV1ECv 0YquADyFkwn2i3K7cCs3jkZbGi1Tqks9uBISb6LIcSxV+lQDPi9arX0JWBUFIWmpQlsR dB10E9okP52XYCiwb4rD8JxDGa17PZ1OV05g/K4H4DSz2Pwkf0YubcJtS8rScj8feFl2 DCVA== X-Gm-Message-State: AOAM530mMbCDdiU1P7yJG7slE3YrUoZNJXctx9KvNURLje12tuxCcXfk 7GNJowyp0Wb/rhhTc7ZEkV4YKHYdtXjuxvletlw= X-Received: by 2002:a05:600c:3549:: with SMTP id i9mr3814488wmq.89.1610631050890; Thu, 14 Jan 2021 05:30:50 -0800 (PST) MIME-Version: 1.0 References: <1610612968-26612-1-git-send-email-wuht06@gmail.com> <1610612968-26612-3-git-send-email-wuht06@gmail.com> <20210114085233.GO4678@unreal> <20210114130624.GR4678@unreal> In-Reply-To: <20210114130624.GR4678@unreal> From: Hongtao Wu Date: Thu, 14 Jan 2021 21:30:39 +0800 Message-ID: Subject: Re: [RESEND PATCH v5 2/2] PCI: sprd: Add support for Unisoc SoCs' PCIe controller To: Leon Romanovsky Cc: Lorenzo Pieralisi , Rob Herring , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Hongtao Wu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 9:06 PM Leon Romanovsky wrote: > > On Thu, Jan 14, 2021 at 08:00:50PM +0800, Hongtao Wu wrote: > > On Thu, Jan 14, 2021 at 4:52 PM Leon Romanovsky wrote= : > > > > > > On Thu, Jan 14, 2021 at 04:29:28PM +0800, Hongtao Wu wrote: > > > > From: Hongtao Wu > > > > > > > > This series adds PCIe controller driver for Unisoc SoCs. > > > > This controller is based on DesignWare PCIe IP. > > > > > > > > Signed-off-by: Hongtao Wu > > > > --- > > > > drivers/pci/controller/dwc/Kconfig | 12 ++ > > > > drivers/pci/controller/dwc/Makefile | 1 + > > > > drivers/pci/controller/dwc/pcie-sprd.c | 293 +++++++++++++++++++++= ++++++++++++ > > > > 3 files changed, 306 insertions(+) > > > > create mode 100644 drivers/pci/controller/dwc/pcie-sprd.c > > > > > > <...> > > > > > > > +static struct platform_driver sprd_pcie_driver =3D { > > > > + .probe =3D sprd_pcie_probe, > > > > + .remove =3D __exit_p(sprd_pcie_remove), > > > ^^^^^^ why is that? > > > > > > > Thanks for the review. > > > > I think that if 'MODULE' is defined, '.remove =3D sprd_pcie_remove', > > else '.remove =3D NULL'. > > I would appreciate hearing your opinion about this. > > If module not defined, these .probe and .remove won't be called. > > > > > > > + .driver =3D { > > > > + .name =3D "sprd-pcie", > > > > + .of_match_table =3D sprd_pcie_of_match, > > > > + }, > > > > +}; > > > > + > > > > +module_platform_driver(sprd_pcie_driver); > > > > + > > > > +MODULE_DESCRIPTION("Unisoc PCIe host controller driver"); > > > > +MODULE_LICENSE("GPL v2"); > > > > > > I think that it needs to be "GPL" and not "GPL v2". > > > > > > > Many platform drivers use 'GPL v2', but others use 'GPL'. > > I am not sure whether to use 'GPL' or 'GPL v2'. > > Could you tell me why =E2=80=98GPL=E2=80=99 is needed here? > > Because GPL already means v2, see Documentation/process/license-rules.rst > > 447 > 448 "GPL v2" Same as "GPL". It exists for hist= oric > 449 reasons. > Thanks for the explanation! I'll update =E2=80=9CGPL=E2=80=9D and ".remove" in the next version. > > > > > > Thanks > > > > > > > -- > > > > 2.7.4 > > > >