aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/Kconfig
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2010-07-29 16:30:24 -0400
committerMatthew Garrett <mjg@redhat.com>2010-08-03 09:49:13 -0400
commit500de3dd46ac9f9ae9d124634c68907b7d50d2cb (patch)
tree4ba63c739c3363950a57d459e1fa5c3dcff4a9ab /drivers/acpi/Kconfig
parentde4f10466e9347a2f1bfe39e501539557bed2c4b (diff)
acpi ec_sys: Be more cautious about ec write access
- Set Kconfig option default n - Only allow root to read/write io file (sever bug!) - Introduce write support module param -> default off - Properly clean up if any debugfs files cannot be created Signed-off-by: Thomas Renninger <trenn@suse.de> CC: mjg59@srcf.ucam.org CC: platform-driver-x86@vger.kernel.org CC: linux-acpi@vger.kernel.org CC: astarikovskiy@suse.de Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
-rw-r--r--drivers/acpi/Kconfig11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index f7226d1bc80e..08e0140920e1 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -106,14 +106,19 @@ config ACPI_SYSFS_POWER
106 106
107config ACPI_EC_DEBUGFS 107config ACPI_EC_DEBUGFS
108 tristate "EC read/write access through /sys/kernel/debug/ec" 108 tristate "EC read/write access through /sys/kernel/debug/ec"
109 default y 109 default n
110 help 110 help
111 Say N to disable Embedded Controller /sys/kernel/debug interface 111 Say N to disable Embedded Controller /sys/kernel/debug interface
112 112
113 Be aware that using this interface can confuse your Embedded
114 Controller in a way that a normal reboot is not enough. You then
115 have to power of your system, and remove the laptop battery for
116 some seconds.
113 An Embedded Controller typically is available on laptops and reads 117 An Embedded Controller typically is available on laptops and reads
114 sensor values like battery state and temperature. 118 sensor values like battery state and temperature.
115 The kernel access the EC through ACPI parsed code provided by BIOS 119 The kernel accesses the EC through ACPI parsed code provided by BIOS
116 tables. 120 tables. This option allows to access the EC directly without ACPI
121 code being involved.
117 Thus this option is a debug option that helps to write ACPI drivers 122 Thus this option is a debug option that helps to write ACPI drivers
118 and can be used to identify ACPI code or EC firmware bugs. 123 and can be used to identify ACPI code or EC firmware bugs.
119 124