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


Groups > linux.kernel > #1302799

Re: [PATCH 1/1] regulator: max8973: add support for junction thermal warning

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] regulator: max8973: add support for junction thermal warning
Date 2016-01-06 15:20 +0100
Message-ID <qNX6q-2fc-9@gated-at.bofh.it> (permalink)
References <qNPLz-5Qn-1@gated-at.bofh.it> <qNVeh-YK-11@gated-at.bofh.it> <qNVnZ-12A-25@gated-at.bofh.it> <qNVxE-16O-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wednesday 06 January 2016 06:07 PM, Mark Brown wrote:
> * PGP Signed by an unknown key
>
>
>> In one of design, interrupt from MAX77620, and alert from both MAX77621
>> shorted and going to Arm GIC controller. On this case, I need to register
>> the interrupt as SHARED interrupt. This property can not be passed via
>> "interrupt" properties from DT.
>> That's why this flag is added to support this.
> If the driver supports shared interrupts it should just register as a
> shared interrupt all the time, there is nothing about shared interrupts
> which requires that the pin actually be shared.
>
>> Now, by default, if I register the interrupt as SHARED in driver then it
>> failed on second design as GPIO does not offer to register as SHARED
>> interrupt.
> What makes you say that this would fail?

The failure was due to the mismatch flags when registering interrupts. I 
used flag as ONESHOT, TRIGGER Type and SHARED.

I experimented as make the interrupt flag as SHARED all places (and 
ONESHOT always) so that  all interrupt flag same for all registration on 
both design. This way it works fine. It success on GPIO based flag also. 
Now I am passing SHARED | ONESHOT on both driver interrupt registration.

I will drop the interrupt flag option from DT on next patch.

Thanks,
Laxman



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH 1/1] regulator: max8973: add support for junction thermal warning Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-06 07:30 +0100
  Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Mark Brown <broonie@kernel.org> - 2016-01-06 13:20 +0100
    Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-06 13:30 +0100
      Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Mark Brown <broonie@kernel.org> - 2016-01-06 13:40 +0100
        Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-06 15:20 +0100
        Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Rob Herring <robh@kernel.org> - 2016-01-06 15:30 +0100
          Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-06 15:40 +0100
          Re: [PATCH 1/1] regulator: max8973: add support for junction thermal  warning Mark Brown <broonie@kernel.org> - 2016-01-06 17:30 +0100

csiph-web