thinkpad-acpi: document HKEY event 3006
commit8acfc664ee56fdbf1eec0131d7857df994a51255
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 7 Feb 2010 23:56:42 +0000 (7 21:56 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:00:35 +0000 (20 20:00 -0200)
tree8172c58427ab04dbc4d104cd20371155bf3a917c
parented57749a5278c528a9f0b2d993f1a97fd8bef841
thinkpad-acpi: document HKEY event 3006

Event 0x3006 is used to help power management of the ODD in the
UltraBay.  The EC generates this event when the ODD eject button is
pressed (even if the bay is powered down).

Normally, Linux doesn't need this as we keep the SATA link powered
up (which wastes power).  The EC powers up the bay by itself when the
ODD eject button is pressed, and the SATA PHY reports the hotplug.

However, we could also power that SATA link down (and for that matter,
also power down the Ultrabay) if the ODD is left idle for a while with
no disk inside, and use event 0x3006 to know when we need that SATA link
powered back up.

For now, just stop asking for more information when event 0x3006 is
seen.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c