linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch v1 2/5] regulator: da9055 change irq state to default
       [not found] <C3AE124F08223B42BC95AEB82F0F6CED4313C7F1@KCHJEXMB03.kpit.com>
@ 2013-01-21  8:35 ` Ashish Jangam
  2013-01-23 16:03   ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ashish Jangam @ 2013-01-21  8:35 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

> -----Original Message-----
> > > > This patch changes the irq state from high to the now default low
> > > > state.
> 
> > > > This patch is dependent on the DA9055 MFD.
> 
> > > Why is this change required and why is there a dependency here?
> 
> > It has been decided to have nIRQ therefore the main mfd IRQ state needs
> 
> Won't this break all existing systems?
Since all of the existing users are using nIRQ therefore it was decided
to have the default state as nIRQ.
> 
> > to be changed. And since mfd children follows mfd irq state therefore
> > the dependency; though in case of mfd this may not affect.  
> 
> What makes you say that there is a dependency here?  It's really not at
> all obvious why a change to the primary IRQ signalling mechanism would
> affect the internal interrupts of the device.
Yes, functionally this dependency should not matter.However, if
mfd/primary irq state is low and its components are high then it shall
not look good. Therefore the term dependency was used, probably I should
have written it in a different manner.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch v1 2/5] regulator: da9055 change irq state to default
  2013-01-21  8:35 ` [patch v1 2/5] regulator: da9055 change irq state to default Ashish Jangam
@ 2013-01-23 16:03   ` Mark Brown
  2013-01-25  8:26     ` Ashish Jangam
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2013-01-23 16:03 UTC (permalink / raw)
  To: Ashish Jangam; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Mon, Jan 21, 2013 at 02:05:12PM +0530, Ashish Jangam wrote:

> > What makes you say that there is a dependency here?  It's really not at
> > all obvious why a change to the primary IRQ signalling mechanism would
> > affect the internal interrupts of the device.

> Yes, functionally this dependency should not matter.However, if
> mfd/primary irq state is low and its components are high then it shall
> not look good. Therefore the term dependency was used, probably I should
> have written it in a different manner.

This logic doesn't follow terribly directly - looking at what you've
posted it in fact seems that the trigger type is irrelevant in the
function drivers?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch v1 2/5] regulator: da9055 change irq state to default
  2013-01-23 16:03   ` Mark Brown
@ 2013-01-25  8:26     ` Ashish Jangam
  0 siblings, 0 replies; 7+ messages in thread
From: Ashish Jangam @ 2013-01-25  8:26 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

On Thu, 2013-01-24 at 00:03 +0800, Mark Brown wrote:
> On Mon, Jan 21, 2013 at 02:05:12PM +0530, Ashish Jangam wrote:
> 
> > > What makes you say that there is a dependency here?  It's really not at
> > > all obvious why a change to the primary IRQ signalling mechanism would
> > > affect the internal interrupts of the device.
> 
> > Yes, functionally this dependency should not matter.However, if
> > mfd/primary irq state is low and its components are high then it shall
> > not look good. Therefore the term dependency was used, probably I should
> > have written it in a different manner.
> 
> This logic doesn't follow terribly directly - looking at what you've
> posted it in fact seems that the trigger type is irrelevant in the
> function drivers?
Though it is functionally irrelevant but in the code setting the primary
irq to low and functional driver to high may confuse the code reader.
However I leave this decision to you.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch v1 2/5] regulator: da9055 change irq state to default
  2013-01-21  8:04 ` Ashish Jangam
@ 2013-01-21  8:13   ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2013-01-21  8:13 UTC (permalink / raw)
  To: Ashish Jangam; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

On Mon, Jan 21, 2013 at 01:34:18PM +0530, Ashish Jangam wrote:
> > On Fri, Jan 18, 2013 at 10:52:45AM +0530, Ashish Jangam wrote:

> > > This patch changes the irq state from high to the now default low
> > > state.

> > > This patch is dependent on the DA9055 MFD.

> > Why is this change required and why is there a dependency here?

> It has been decided to have nIRQ therefore the main mfd IRQ state needs

Won't this break all existing systems?

> to be changed. And since mfd children follows mfd irq state therefore
> the dependency; though in case of mfd this may not affect.  

What makes you say that there is a dependency here?  It's really not at
all obvious why a change to the primary IRQ signalling mechanism would
affect the internal interrupts of the device.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch v1 2/5] regulator: da9055 change irq state to default
       [not found] <C3AE124F08223B42BC95AEB82F0F6CED4313C79B@KCHJEXMB03.kpit.com>
@ 2013-01-21  8:04 ` Ashish Jangam
  2013-01-21  8:13   ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ashish Jangam @ 2013-01-21  8:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

> -----Original Message-----
> 
> On Fri, Jan 18, 2013 at 10:52:45AM +0530, Ashish Jangam wrote:
> > This patch changes the irq state from high to the now default low
> > state.
> > 
> > This patch is dependent on the DA9055 MFD.
> 
> Why is this change required and why is there a dependency here?
> 
It has been decided to have nIRQ therefore the main mfd IRQ state needs
to be changed. And since mfd children follows mfd irq state therefore
the dependency; though in case of mfd this may not affect.  



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch v1 2/5] regulator: da9055 change irq state to default
  2013-01-18  5:22 Ashish Jangam
@ 2013-01-18  7:23 ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2013-01-18  7:23 UTC (permalink / raw)
  To: Ashish Jangam; +Cc: Liam Girdwood, Samuel Ortiz, linux-kernel, David Dajun Chen

On Fri, Jan 18, 2013 at 10:52:45AM +0530, Ashish Jangam wrote:
> This patch changes the irq state from high to the now default low
> state.
> 
> This patch is dependent on the DA9055 MFD.

Why is this change required and why is there a dependency here?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch v1 2/5] regulator: da9055 change irq state to default
@ 2013-01-18  5:22 Ashish Jangam
  2013-01-18  7:23 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ashish Jangam @ 2013-01-18  5:22 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: Samuel Ortiz, linux-kernel, David Dajun Chen

This patch changes the irq state from high to the now default low
state.

This patch is dependent on the DA9055 MFD.

This patch is tested on smdk6410 board.

Signed-off-by: Ashish Jangam <ashish.jangam@kpitcummins.com>
---
 drivers/regulator/da9055-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c
index 3022109..d4297c2 100644
--- a/drivers/regulator/da9055-regulator.c
+++ b/drivers/regulator/da9055-regulator.c
@@ -579,7 +579,7 @@ static int da9055_regulator_probe(struct platform_device *pdev)
 		irq = regmap_irq_get_virq(da9055->irq_data, irq);
 		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
 						da9055_ldo5_6_oc_irq,
-						IRQF_TRIGGER_HIGH |
+						IRQF_TRIGGER_LOW |
 						IRQF_ONESHOT |
 						IRQF_PROBE_SHARED,
 						pdev->name, regulator);
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-25  8:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <C3AE124F08223B42BC95AEB82F0F6CED4313C7F1@KCHJEXMB03.kpit.com>
2013-01-21  8:35 ` [patch v1 2/5] regulator: da9055 change irq state to default Ashish Jangam
2013-01-23 16:03   ` Mark Brown
2013-01-25  8:26     ` Ashish Jangam
     [not found] <C3AE124F08223B42BC95AEB82F0F6CED4313C79B@KCHJEXMB03.kpit.com>
2013-01-21  8:04 ` Ashish Jangam
2013-01-21  8:13   ` Mark Brown
2013-01-18  5:22 Ashish Jangam
2013-01-18  7:23 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).