On Fri, Jul 06, 2018 at 11:52:51AM +0200, Hans de Goede wrote: > Hi, > > On 07/06/2018 11:46 AM, Mika Westerberg wrote: > > On Fri, Jul 06, 2018 at 11:32:29AM +0200, Hans de Goede wrote: > > > + > > > + /* > > > + * Make sure we trigger the initial state of the IRQ when > > > + * using RISING or FALLING. > > > + */ > > > + if (((irqflags & IRQF_TRIGGER_RISING) && value == 1) || > > > + ((irqflags & IRQF_TRIGGER_FALLING) && value == 0)) > > > + handler(-1, event); > > > + > > > > While I don't have anything against this it makes me wonder how it is > > handled in Windows side? Any idea? > > I guess Windows does the same, otherwise it should have similar issues, > but that is just a guess. I see. Is this the ACPI control method lid device (PNP0C0D)? Maybe we can read its initial state using _LID method? -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html