]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: Toshiba HDD Active Protection Sensor
authorAzael Avalos <coproscefalo@gmail.com>
Thu, 14 Aug 2014 15:55:38 +0000 (09:55 -0600)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sat, 16 Aug 2014 08:23:56 +0000 (01:23 -0700)
commitd994ac7dcda0cb1321c631f2ca7b7a1719aad198
treed21868b431dcc9c6ef3e40ba42ea123d6a722612
parentc365b6cdee49884eb53b7e9523543356e3082971
platform/x86: Toshiba HDD Active Protection Sensor

This driver adds support for the built-in accelereometer found
on recent Toshiba laptops with HID TOS620A.

This driver receives ACPI notify events 0x80 when the sensor
detects a sudden move or a harsh vibration, as well as an
ACPI notify event 0x81 whenever the movement or vibration has
been stabilized.

Also provides sysfs entries to get/set the desired protection
level and reseting the HDD protection interface.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/toshiba_haps.c [new file with mode: 0644]