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


Groups > linux.kernel > #1516837

RE: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for MFD support

From Eric Hyeung Dong Jeong <eric.jeong.opensource@diasemi.com>
Newsgroups linux.kernel
Subject RE: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for MFD support
Date 2016-11-08 07:10 +0100
Message-ID <sB7LA-5AX-7@gated-at.bofh.it> (permalink)
References <swHwl-3i2-3@gated-at.bofh.it> <swHwl-3i2-1@gated-at.bofh.it> <swTHc-31G-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thursday, October 27, 2016 8:04 PM, Mark Brown wrote:

> On Thu, Oct 27, 2016 at 10:03:14AM +0900, Eric Jeong wrote:
> 
> >  config REGULATOR_PV88080
> > -	tristate "Powerventure Semiconductor PV88080 regulator"
> > -	depends on I2C
> > -	select REGMAP_I2C
> > +	bool "Powerventure Semiconductor PV88080 regulator"
> > +	depends on MFD_PV88080
> 
> Forcing the driver to be built in looks like a regression, why would we want to
> do that?
> 
> > +	irq = platform_get_irq_byname(pdev, "regulator-irq");
> > +	if (irq < 0) {
> > +		dev_err(&pdev->dev, "Failed to get IRQ.\n");
> > +		return irq;
> >  	}
> 
> What's the _byname() adding here given that the name is so generic?  It feels
> like if the name ever becomes important then this particular name is going to
> be a problem.
> 
> > -module_i2c_driver(pv88080_regulator_driver);
> > +static int __init pv88080_regulator_init(void) {
> > +	return platform_driver_register(&pv88080_regulator_driver);
> > +}
> > +subsys_initcall(pv88080_regulator_init);
> 
> Why are you converting this to subsys_initcall()?  This looks like another
> regression.

Thank you for the comments.
There was an internal request to release driver based on Kernel 3.18 for GPIO and MFD support.
After that, the code has been kept. I will send a patch again after changes.

Regards
Eric

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


Thread

[PATCH V2 3/4] regulator: pv88080: Update Regulator driver for MFD  support Eric Jeong <eric.jeong.opensource@diasemi.com> - 2016-10-27 03:20 +0200
  Re: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for  MFD support Mark Brown <broonie@kernel.org> - 2016-10-27 16:20 +0200
    RE: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for  MFD support Eric Hyeung Dong Jeong <eric.jeong.opensource@diasemi.com> - 2016-11-08 07:10 +0100
      Re: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for  MFD support Mark Brown <broonie@kernel.org> - 2016-11-08 17:40 +0100

csiph-web