irq_create_fwspec_mapping() in 4.8-rc2

Nicolas Ferre nicolas.ferre at atmel.com
Mon Sep 5 22:53:41 PDT 2016


Le 05/09/2016 à 23:41, Linus Walleij a écrit :
> On Mon, Sep 5, 2016 at 2:56 PM, Marc Zyngier <marc.zyngier at arm.com> wrote:
> 
>> OK, I'll whip up a patch shortly. Should I also address the handful of
>> other non-TYPE_NONE that we have in the tree:
>>
>>         drivers/gpio/gpio-sx150x.c
>>         drivers/pinctrl/nomadik/pinctrl-nomadik.c
>>         drivers/pinctrl/pinctrl-coh901.c
>>         drivers/pinctrl/pinctrl-st.c
>>
>> But the bigger question is whether or not there is any value in the
>> pinctrl driver providing a default value at all. Do we have any case
>> where the trigger information is not provided by the firmware (DT or
>> ACPI), and where we rely on the default being set?
> 
> That happened with boardfiles. Which used to be the case with
> some of these, but AFAICT not any longer. I am uncertain about
> sx150x though.

FYI: Must have been this boardfile historical reason for at91 as well.
As we only rely on DT now, we're safe.

Bye,

> In the boardfile case, I think actually the driver is responsible to
> set up the kind of interrupt trigger it wants (well it still can...
> but it should nowadays trust what it is given) but very often that
> did not happen, instead the drivers relied on hacks like these to
> have set up a default trigger type.
> 
> Yours,
> Linus Walleij
> 


-- 
Nicolas Ferre



More information about the linux-arm-kernel mailing list