On Fri, Jul 06, 2018 at 12:30:47PM +0200, Hans de Goede wrote: > > I see. Is this the ACPI control method lid device (PNP0C0D)? Maybe we > > can read its initial state using _LID method? > > No the problem is the _LID method reads an APCI variable which gets set > by the _AEI handler. So if the _AEI handler has not run that variable will > just be 0, which may or may not reflect the actual LID state. > > The 2nd case described in the commit message is the _AIE handler driving > a GPIO and that GPIO / the mux controlled by that GPIO not reflecting the > cable-type plugged into the micro-usb until the handler runs (this is the > one I still need to verify it is actually fixed by this patch). OK, thanks for the explanation. -- 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