Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406445

Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC

From Darren Hart <dvhart@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC
Date 2016-05-24 22:50 +0200
Message-ID <rCrr4-8eY-15@gated-at.bofh.it> (permalink)
References <rClvp-4mV-13@gated-at.bofh.it> <rCpIC-6Xu-19@gated-at.bofh.it> <rCqlj-7rJ-1@gated-at.bofh.it> <rCqY1-7Zt-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 24, 2016 at 11:10:56PM +0300, Andy Shevchenko wrote:
> On Tue, May 24, 2016 at 10:38 PM, Darren Hart <dvhart@infradead.org> wrote:
> > On Tue, May 24, 2016 at 09:54:36PM +0300, Andy Shevchenko wrote:

...

> >> > +static void intel_pmc_core_remove(struct pci_dev *pdev)
> >> > +{
> >> > +       pmc_core_dbgfs_unregister(&pmc);
> >> > +}
> >> > +
> >> > +static struct pci_driver intel_pmc_core_driver = {
> >> > +       .name = "intel_pmc_core",
> >> > +       .id_table = pmc_pci_ids,
> >> > +       .probe = pmc_core_probe,
> >> > +       .remove = intel_pmc_core_remove,
> >> > +};
> >> > +module_pci_driver(intel_pmc_core_driver);
> >> > +
> >> > +MODULE_AUTHOR("Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>");
> >> > +MODULE_AUTHOR("Vishwanath Somayaji <vishwanath.somayaji@intel.com>");
> >> > +MODULE_DESCRIPTION("Intel CORE SoC Power Management Controller Interface");
> >> > +MODULE_LICENSE("GPL v2");
> >>
> >> So, since you have symbol defined as boolean, most of the above lines
> >> are redundant including ->remove() and module.h inclusion.
> >>
> >> Do we need it as a module? In that case you have to set to false
> >> pmcdev->initialized variable.
> >
> > It was determined best not to build as a module given the it's primary consumer
> > was a built-in. Some of that is still being built, so we'll leave it as built-in
> > until it's in, and we can re-evaluate as needed.
> 
> Yeah, I saw several patches floating around that removes module
> support for boolean symbols. Thus my question is how we suppose to
> proceed. In case we might have module support I would rather remove
> extra stuff and apply it later when it would be needed. What do you
> think?

Agreed, if it is to be boolean, then the modular-specific code should be
removed.

-- 
Darren Hart
Intel Open Source Technology Center

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com> - 2016-05-24 16:30 +0200
  Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-05-24 21:00 +0200
    Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-05-24 21:10 +0200
      Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Darren Hart <dvhart@infradead.org> - 2016-05-24 21:50 +0200
        Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-05-24 22:20 +0200
          Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com> - 2016-05-25 20:20 +0200
    Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Darren Hart <dvhart@infradead.org> - 2016-05-24 21:40 +0200
      Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-05-24 22:20 +0200
        Re: [PATCH v5] platform:x86: Add PMC Driver for Intel Core SoC Darren Hart <dvhart@infradead.org> - 2016-05-24 22:50 +0200

csiph-web