Skip to contentSkip to conversation

Can't pinctrl-baytrail be a module?

DISCUSSION Takashi Iwai 4 participants 6 messages Feb 11, 2016 – Aug 2, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

thanks,

Takashi

#1 lore raw

+Jean and Mathias

Quoted 9 lines · Takashi Iwai

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

Jean sent a patch against this couple of hours ago. I explained to him that there is some ACPI GPIO magic happening on Baytrail-T based machines such as Asus T100 where the GPIO driver is needed early at boot, or something along those lines. I've CC'd Mathias Nyman the original author who hopefully remembers this better.

#2 lore raw
Quoted 11 lines · Mika Westerberg

+Jean and Mathias

Quoted 7 lines · Takashi Iwai

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

Quoted 4 lines
Quoted 2 lines

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

Jean sent a patch against this couple of hours ago.

I noticed it right after I send my mail, too, sorry :)

Quoted 5 lines

I explained to him
that there is some ACPI GPIO magic happening on Baytrail-T based machines such as Asus T100 where the GPIO driver is needed early at boot, or something along those lines. I've CC'd Mathias Nyman the original author who hopefully remembers this better.

I know of pinctrl-cherryview is needed before others like shdci, but for Baytrail-T, it's more than that?

thanks,

Takashi

#3 lore raw
Quoted 20 lines · Takashi Iwai
Quoted 11 lines · Mika Westerberg

+Jean and Mathias

Quoted 7 lines · Takashi Iwai

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

Quoted 4 lines
Quoted 2 lines

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

Jean sent a patch against this couple of hours ago.

I noticed it right after I send my mail, too, sorry :)

Quoted 9 lines
Quoted 5 lines

I explained to him
that there is some ACPI GPIO magic happening on Baytrail-T based machines such as Asus T100 where the GPIO driver is needed early at boot, or something along those lines. I've CC'd Mathias Nyman the original author who hopefully remembers this better.

I know of pinctrl-cherryview is needed before others like shdci, but for Baytrail-T, it's more than that?

If I remember correctly the reason was that the gpio driver was supposed
to work with Hardware reduced ACPI events (in ACPI 5).
Basically ACPI telling operating system it wants an ACPI event handler run
when a certain gpio interrupt is triggered, and the HW reduced ACPI expects the OS gpio driver to do it.

I haven't followed up on this at all. Can't say if we have any HW reduced baytrail variants out there.

For Lynxpoint there was also some issue that pnpacpi reserved the IO resources before a modular gpio driver could get it, I think it was fixed, might be that baytrail would face same issue.

-Mathias

#4 lore raw
Quoted 28 lines · Mathias Nyman
Quoted 26 lines · Takashi Iwai
Quoted 11 lines · Mika Westerberg

+Jean and Mathias

Quoted 7 lines · Takashi Iwai

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

Quoted 4 lines
Quoted 2 lines

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

Jean sent a patch against this couple of hours ago.

I noticed it right after I send my mail, too, sorry :)

Quoted 5 lines

I explained to him
that there is some ACPI GPIO magic happening on Baytrail-T based machines such as Asus T100 where the GPIO driver is needed early at boot, or something along those lines. I've CC'd Mathias Nyman the original author who hopefully remembers this better.

Quoted 8 lines
Quoted 3 lines

I know of pinctrl-cherryview is needed before others like shdci, but for Baytrail-T, it's more than that?

If I remember correctly the reason was that the gpio driver was supposed
to work with Hardware reduced ACPI events (in ACPI 5).
Basically ACPI telling operating system it wants an ACPI event handler run
when a certain gpio interrupt is triggered, and the HW reduced ACPI expects the OS gpio driver to do it.

OK, so this is an implicit dependency. If this is the only issue, it sounds like the driver can be a module.

Quoted 4 lines

I haven't followed up on this at all. Can't say if we have any HW reduced baytrail variants out there.

For Lynxpoint there was also some issue that pnpacpi reserved the IO resources before a modular gpio driver could get it, I think it was fixed, might be that baytrail would face same issue.

Could you give any pointer, if you remember?

Thanks!

Takashi

#5 lore raw
Quoted 42 lines · Takashi Iwai
Quoted 28 lines · Mathias Nyman
Quoted 26 lines · Takashi Iwai
Quoted 11 lines · Mika Westerberg

+Jean and Mathias

Quoted 7 lines · Takashi Iwai

Hi,

while discussing whether to enable pinctrl drivers on openSUSE distro kernels, I wonder why pinctrl-baytrail is built-in only. Basically the forced built-in is the only reason against the enablement in distro kernels.

Quoted 4 lines
Quoted 2 lines

The other Intel pinctrl drivers seem to be tristate. Any missing piece there?

Jean sent a patch against this couple of hours ago.

I noticed it right after I send my mail, too, sorry :)

Quoted 5 lines

I explained to him
that there is some ACPI GPIO magic happening on Baytrail-T based machines such as Asus T100 where the GPIO driver is needed early at boot, or something along those lines. I've CC'd Mathias Nyman the original author who hopefully remembers this better.

Quoted 8 lines
Quoted 3 lines

I know of pinctrl-cherryview is needed before others like shdci, but for Baytrail-T, it's more than that?

If I remember correctly the reason was that the gpio driver was supposed
to work with Hardware reduced ACPI events (in ACPI 5).
Basically ACPI telling operating system it wants an ACPI event handler run
when a certain gpio interrupt is triggered, and the HW reduced ACPI expects the OS gpio driver to do it.

OK, so this is an implicit dependency. If this is the only issue, it sounds like the driver can be a module.

Quoted 6 lines
Quoted 4 lines

I haven't followed up on this at all. Can't say if we have any HW reduced baytrail variants out there.

For Lynxpoint there was also some issue that pnpacpi reserved the IO resources before a modular gpio driver could get it, I think it was fixed, might be that baytrail would face same issue.

Could you give any pointer, if you remember?

Mathias, any progress on this?

Thanks,

Signature · 2 lines
Jean Delvare
SUSE L3 Support