thinkpad-acpi: document HKEY event 3006
commit90267bcd7086e3e15028e124e2311e7efdf1a8b7
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 7 Feb 2010 23:52:51 +0000 (7 21:52 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:01:44 +0000 (20 20:01 -0200)
tree189502c7b972600353570adfce712e1828f87cac
parent9d275d3f836d487e69c881f942b684a3d994fc27
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