lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAG_R4_UdQay0xh11Snt7G+uS+1E7E0NQf1rE-JpA0fge9jeLRQ@mail.gmail.com>
Date:   Thu, 14 Jan 2021 21:30:39 +0800
From:   Hongtao Wu <wuht06@...il.com>
To:     Leon Romanovsky <leon@...nel.org>
Cc:     Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
        Rob Herring <robh+dt@...nel.org>,
        Orson Zhai <orsonzhai@...il.com>,
        Baolin Wang <baolin.wang7@...il.com>,
        Chunyan Zhang <zhang.lyra@...il.com>,
        linux-pci@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, Hongtao Wu <billows.wu@...soc.com>
Subject: Re: [RESEND PATCH v5 2/2] PCI: sprd: Add support for Unisoc SoCs'
 PCIe controller

On Thu, Jan 14, 2021 at 9:06 PM Leon Romanovsky <leon@...nel.org> 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 <leon@...nel.org> wrote:
> > >
> > > On Thu, Jan 14, 2021 at 04:29:28PM +0800, Hongtao Wu wrote:
> > > > From: Hongtao Wu <billows.wu@...soc.com>
> > > >
> > > > This series adds PCIe controller driver for Unisoc SoCs.
> > > > This controller is based on DesignWare PCIe IP.
> > > >
> > > > Signed-off-by: Hongtao Wu <billows.wu@...soc.com>
> > > > ---
> > > >  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 = {
> > > > +     .probe = sprd_pcie_probe,
> > > > +     .remove = __exit_p(sprd_pcie_remove),
> > >                    ^^^^^^ why is that?
> > >
> >
> > Thanks for the review.
> >
> > I think that if 'MODULE' is defined, '.remove = sprd_pcie_remove',
> > else '.remove = NULL'.
> > I would appreciate hearing your opinion about this.
>
> If module not defined, these .probe and .remove won't be called.
>
> >
> > > > +     .driver = {
> > > > +             .name = "sprd-pcie",
> > > > +             .of_match_table = 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 ‘GPL’ is needed here?
>
> Because GPL already means v2, see Documentation/process/license-rules.rst
>
>   447
>   448     "GPL v2"                      Same as "GPL". It exists for historic
>   449                                   reasons.
>

Thanks for the explanation!
I'll update “GPL” and ".remove" in the next version.

>
> >
> > > Thanks
> > >
> > > > --
> > > > 2.7.4
> > > >

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ