linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Len Brown <len.brown@intel.com>
To: linux-acpi@vger.kernel.org
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>,
	Len Brown <len.brown@intel.com>
Subject: [PATCH 47/77] ACPI: thinkpad-acpi: checkpoint sysfs interface version due to hotkey
Date: Sun, 22 Jul 2007 05:14:32 -0400	[thread overview]
Message-ID: <1185095751279-git-send-email-len.brown@intel.com> (raw)
Message-ID: <94b08713186cc47a5c367a866cc0a0a762721455.1185095456.git.len.brown@intel.com> (raw)
In-Reply-To: <11850957503243-git-send-email-len.brown@intel.com>
In-Reply-To: <a1f0eff21edac1bd87e397f56c4258b9611b5a50.1185095456.git.len.brown@intel.com>

From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>

The change in the size of the hotkey mask, the hability to report the keys
that use the higher bits, and the addition of the hotkey_radio_sw attribute
are important enough features to warrant increasing the minor field of the
sysfs interface version.

Also, document a bit better how and when the thinkpad-acpi sysfs interface
version will be updated.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 Documentation/thinkpad-acpi.txt |   17 +++++++++++++++++
 drivers/misc/thinkpad_acpi.c    |    2 +-
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt
index fe26e50..7a06a27 100644
--- a/Documentation/thinkpad-acpi.txt
+++ b/Documentation/thinkpad-acpi.txt
@@ -134,6 +134,21 @@ end of this document.  Changes to the sysfs interface done by the kernel
 subsystems are not documented here, nor are they tracked by this
 attribute.
 
+Changes to the thinkpad-acpi sysfs interface are only considered
+non-experimental when they are submitted to Linux mainline, at which
+point the changes in this interface are documented and interface_version
+may be updated.  If you are using any thinkpad-acpi features not yet
+sent to mainline for merging, you do so on your own risk: these features
+may disappear, or be implemented in a different and incompatible way by
+the time they are merged in Linux mainline.
+
+Changes that are backwards-compatible by nature (e.g. the addition of
+attributes that do not change the way the other attributes work) do not
+always warrant an update of interface_version.  Therefore, one must
+expect that an attribute might not be there, and deal with it properly
+(an attribute not being there *is* a valid way to make it clear that a
+feature is not available in sysfs).
+
 Hot keys
 --------
 
@@ -989,3 +1004,5 @@ Sysfs interface changelog:
 
 0x000100:	Initial sysfs support, as a single platform driver and
 		device.
+0x000200:	Hot key support for 32 hot keys, and radio slider switch
+		support.
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index 3cf37bb..4d71893 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -22,7 +22,7 @@
  */
 
 #define IBM_VERSION "0.14"
-#define TPACPI_SYSFS_VERSION 0x000100
+#define TPACPI_SYSFS_VERSION 0x000200
 
 /*
  *  Changelog:
-- 
1.5.3.rc2.22.g69a9b

  parent reply	other threads:[~2007-07-22  9:15 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-22  9:13 ACPI patches for 2.6.23 Len Brown
     [not found] ` <a1f0eff21edac1bd87e397f56c4258b9611b5a50.1185095456.git.len.brown@intel.com>
2007-07-22  9:13   ` [PATCH 01/77] ACPI: battery: make internal names consistent with battery "state" Len Brown
     [not found]   ` <b6ce4083ed8e2a01a3a59301eabe0fc1e68a8a84.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 02/77] ACPI: Cache battery status instead of re-evaluating AML Len Brown
     [not found]   ` <9ea7d57576f40c6af03c8c9fa7a069f2222b498b.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 03/77] ACPI: battery: Lindent Len Brown
     [not found]   ` <6eedeef73e7fff32eb5fa25178c3c77b1db0ec0f.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 04/77] process reading battery status hangs Len Brown
     [not found]   ` <23b0f015bf2c050b8b5399430ca64e1b3398cf76.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 05/77] ACPI: video: output switch sysfs support Len Brown
     [not found]   ` <38ff4ffc039ba5a5878f2dcbb03d87c3a1f02f1b.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 06/77] ACPI: dock: cleanup the uid patch Len Brown
     [not found]   ` <22fe4c2114e29477ca6738729c074ee8f60d3b73.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 07/77] ACPI: dock: fix opps after dock driver fails to initialize Len Brown
     [not found]   ` <0f6f2804563eee64f0fc7cbcb009b98b6f332af6.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 08/77] ACPI: dock: use dynamically allocated platform device Len Brown
     [not found]   ` <a0cd35fdca0bb711854edeaf016cec6cdf82eeca.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 09/77] ACPI: dock: add immediate_undock option Len Brown
     [not found]   ` <9ef2a9a9f08722998540ed2ff38bccd0c54344c8.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 10/77] ACPI: dock: unsuppress uevents Len Brown
     [not found]   ` <79a8f70b4b9127eacfc91dd1436c4a7be05e62ab.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 11/77] ACPI: dock: send envp with uevent Len Brown
     [not found]   ` <1f9767df1346c9ce09d6e51b9f34b851e3d94fad.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 12/77] ACPI: bay: unsuppress uevents Len Brown
     [not found]   ` <78490d82129f7331d1366737c8704c1c053221a3.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 13/77] ACPI: battery: syntax cleanup Len Brown
     [not found]   ` <01854e697a77a434104b2f7e6d7fd463a978af32.1185095456.git.len.brown@intel.com>
2007-07-22  9:13     ` [PATCH 14/77] ACPI: add ACPI 3.0 _TPC _TSS _PTC throttling support Len Brown
     [not found]   ` <ff55a9cebab02403f942121e2f898bb06ecfffbb.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 15/77] ACPI: Lindent processor throttling code Len Brown
     [not found]   ` <3f8698d4d3f72252980575fb8d7b4cafeb5dd0a2.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 16/77] ACPI: bay: send envp with uevent Len Brown
     [not found]   ` <4d2fafd17a325b3f4f5f9edb1211bc7f4c311269.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 17/77] ACPI: Remove Dell Optiplex GX240 from the ACPI blacklist Len Brown
     [not found]   ` <072971d7d3e70ddac5c5be3436d929470cc2b3fb.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 18/77] ACPI: disable _OSI(Linux) by default Len Brown
     [not found]   ` <3cdf552be228e1ca55f9c53a78f39e8b77d6159c.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 19/77] ACPI: Discard invalid elements in _PSS package Len Brown
     [not found]   ` <e4d49531dcc2f334205d99614164ea900216b1cb.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 20/77] ACPI: asus_acpi: Do not load if no device has been found Len Brown
     [not found]   ` <a4146557cdfcd1adf1a8e8c92493c2cebe1088a1.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 21/77] ACPI: update MAINTAINERS for EC and battery Len Brown
     [not found]   ` <5b7734b440d29dab583a6c3f0ee49ff20f323332.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 22/77] ACPI EC: Re-factor EC space handler to avoid using label/goto for cycle Len Brown
     [not found]   ` <4350933a7447591041b51157a6b307be1816415f.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 23/77] ACPI EC: drop usage of ACPI_DEBUG_PRINT as too heavy weight Len Brown
     [not found]   ` <837012ede14a8fc088be3682c964da7fc6af026b.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 24/77] ACPI EC: Add support for non-AML EC query handlers Len Brown
     [not found]   ` <addad45494cb4f9c03470a4e5155f442791b0d7f.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 25/77] ACPI: sbs: probe smart battery vis SMBus controller Len Brown
     [not found]   ` <6c5cf8aa5849819958311644ffaf8467e9fcf07e.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 26/77] ACPI: static Len Brown
     [not found]   ` <3312111d1bd1a409892031f7979c57a52b01185c.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 27/77] " Len Brown
     [not found]   ` <1c1558ec50618c4a179e0684037d9f7bb0c1a326.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 28/77] ACPI: delete cmdline documentation for deleted hotkey code Len Brown
     [not found]   ` <f70ac0e9651aa8c07dffe72a44872f92054d42c3.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 29/77] ACPI video: Don't export sysfs backlight interface if query _BCL fail Len Brown
     [not found]   ` <3f2c48c9b48423d1411695da066d525cca2a27db.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 30/77] ACPI: Use menuconfig objects Len Brown
     [not found]   ` <3c6394c5bd04e31d40d007af8b6c2484a08838d0.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 32/77] ACPICA: Update _OSI string list Len Brown
     [not found]   ` <a0a3f6c69b45dcafefdce5dbac2221c02aaae871.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 33/77] ACPICA: Changes for Cygwin compatibility Len Brown
     [not found]   ` <e0b91050f208ab370fac9269f8e42bc746889422.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 34/77] ACPICA: Fixed possible corruption of global GPE list Len Brown
     [not found]   ` <55f8f3cc4f7c47c7896e2ad08e29eccc292c0c68.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 35/77] ACPICA: Clear reserved fields for incoming ACPI 1.0 FADTs Len Brown
     [not found]   ` <864bdfb912e372670b5b2541dac9d273a4a7722a.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 36/77] ACPI: Export events via generic netlink Len Brown
     [not found]   ` <b563d6f30d937510e02541930b1558d0f5759413.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 37/77] ACPI: netlink: remove unnecessary EXPORT_SYMBOL Len Brown
     [not found]   ` <9254bc845db90a123cf992e983539d0ee409f22a.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 38/77] ACPI: dock: fix oops when _DCK evaluation fails Len Brown
     [not found]   ` <e6917317c0f6a930442c40dc38a6f21710adf961.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 39/77] ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path Len Brown
     [not found]   ` <18eab8550397f1f3d4b8b2c5257c88dae25d58ed.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 40/77] ACPI: Enable C3 even when PM2_control is zero Len Brown
     [not found]   ` <b964b437601a0e7d09896d5d9a85c83643e94f41.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 41/77] ACPI: thinkpad-acpi: add DMI-based modalias Len Brown
     [not found]   ` <94954cc60194796fb257802f6f65d79553c9a8ca.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 42/77] ACPI: thinkpad-acpi: remove all uneeded initializers Len Brown
     [not found]   ` <b8b26402cb711de5d3bbd4515b91b6d863fea259.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 43/77] ACPI: thinkpad-acpi: update information on T43 thermal sensor 0xc1 Len Brown
     [not found]   ` <ae92bd17ff703b3703562148c73b4d6833e6a326.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 44/77] ACPI: thinkpad-acpi: enable more hotkeys Len Brown
     [not found]   ` <9b010de59cb6dcab7e167dd2a0fa5d3b31447fea.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 45/77] ACPI: thinkpad-acpi: export hotkey maximum masks Len Brown
     [not found]   ` <74941a69afcc06722685d492784414ec042ab492.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 46/77] ACPI: thinkpad-acpi: export to sysfs the state of the radio slider switch Len Brown
     [not found]   ` <94b08713186cc47a5c367a866cc0a0a762721455.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` Len Brown [this message]
     [not found]   ` <d54b7d7f8026300c612dd733d501fcbc22fd0370.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 48/77] ACPI: thinkpad-acpi: update CMOS commands documentation Len Brown
     [not found]   ` <7f5d1cd6287b7b29d210f85e2343207ac4310da2.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 49/77] ACPI: thinkpad-acpi: register input device Len Brown
     [not found]   ` <6a38abbf2b68e37493f2d5e8702b895a6c23ba0f.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 50/77] ACPI: thinkpad-acpi: add input device support to hotkey subdriver Len Brown
     [not found]   ` <1a343760b516ca5466d201bec32b1794858b18a5.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 51/77] ACPI: thinkpad-acpi: make the input event mode the default Len Brown
     [not found]   ` <e295e8508c1dd56e06c73e78a2f67f2eb563e74f.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 52/77] ACPI: thinkpad-acpi: add power-management handler capability Len Brown
     [not found]   ` <5c29d58f471099401513e2e567f6c28001bb0f13.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 53/77] ACPI: thinkpad-acpi: export EV_SW SW_RADIO events Len Brown
     [not found]   ` <741553c2d29b4075d636a38792c05cd2fc62bd8a.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 54/77] ACPI: thinkpad-acpi: checkpoint sysfs interface version due to input layer Len Brown
     [not found]   ` <996fba08db7faf46b1a674957f60cd772ecd29ec.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 55/77] ACPI: thinkpad-acpi: rename pci HID constant Len Brown
     [not found]   ` <86cc9445e86bef9da44f933e3849e6eb43cbf626.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 56/77] ACPI: thinkpad_acpi: use bool for boolean parameters Len Brown
     [not found]   ` <d5a2f2f1d68e2da538ac28540cddd9ccc733b001.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 57/77] ACPI: thinkpad-acpi: store ThinkPad model information Len Brown
     [not found]   ` <24d3b77467b6aaf59e38dce4aa86d05541858195.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 58/77] ACPI: thinkpad-acpi: allow use of CMOS NVRAM for brightness control Len Brown
     [not found]   ` <edf0e0e56904f794c97ca6c4562d8256e3d8d8e3.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 59/77] ACPI: thinkpad-acpi: react to Lenovo ThinkPad differences in hot key Len Brown
     [not found]   ` <a8fba3da3d11d808137be7ebeb3b6938a42f011f.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 60/77] ACPI: thinkpad-acpi: make sure DSDT TMPx readings don't return +128 Len Brown
     [not found]   ` <3d6f99ca00ccf861305fd8630a21f2e696886708.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 61/77] ACPI: thinkpad-acpi: make EC-based thermal readings non-experimental Len Brown
     [not found]   ` <c78d5c96bb65b71a54b7551b404fbaf4763ed6e4.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 62/77] ACPI: thinkpad-acpi: bump up version to 0.15 Len Brown
     [not found]   ` <f432255e936a892a6896e5032e2b4897423076f2.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 63/77] ACPI: thinkpad-acpi: add locking to brightness subdriver Len Brown
     [not found]   ` <044847e02d46c0a9430e19249fd68777bb1d3c98.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 64/77] sony-laptop: add new SNC handlers Len Brown
     [not found]   ` <8538c3686c895f9334a3c22997b51b5a82de7550.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 65/77] sony-laptop: map wireless switch events to KEY_WLAN Len Brown
     [not found]   ` <6315fd1c9cd6870a253699f07c5ada85cfe8fecb.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 66/77] sony-laptop: Add support for recent Vaios Fn keys (C series for now) Len Brown
     [not found]   ` <b25b732a16e4e035247fa729f931ed173f9fc8e2.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 67/77] sony-laptop: Invoke _INI for SNC devices that provide it Len Brown
     [not found]   ` <bc57f865fa2282ad2b7efe02da0a752e602e982e.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 68/77] sony-laptop: Make the driver use MSC_SCAN and a setkeycode and getkeycode key table Len Brown
     [not found]   ` <89892d153d0d46018241afc7944910912bcd9688.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 69/77] sony-laptop: Add Vaio FE to the special init sequence Len Brown
     [not found]   ` <22a17780584173635dae11bb83884952b00e5181.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 70/77] sony-laptop: Fix event reading in sony-laptop Len Brown
     [not found]   ` <0dc070bb0242481a6100c95e5deaa07b267399a8.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 71/77] ACPI: drivers/acpi/pci_link.c: lower printk severity Len Brown
     [not found]   ` <4ebf83c8cf89ab13bc23e46b0fcb6178ca23b43c.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 72/77] ACPI: fix empty macros found by -Wextra Len Brown
     [not found]   ` <9c977a453ed62396d067b75f3f272b3fb1ea3acc.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 73/77] ACPI: export ACPI events via acpi_mc_group multicast group Len Brown
     [not found]   ` <7a9b9068b8c7b526894904c0b9b90354825b8fbd.1185095456.git.len.brown@intel.com>
2007-07-22  9:14     ` [PATCH 74/77] ACPI: update feature-removal-schedule.txt, /sys/firmware/acpi/namespace is gone Len Brown
     [not found]   ` <8b8eb7d8cfc6cd95ed00cd58754e8493322505bd.1185095456.git.len.brown@intel.com>
2007-07-22  9:15     ` [PATCH 75/77] ACPI: update ACPI proc I/F removal schedule Len Brown
     [not found]   ` <798d91039849486c7a4f1a458a5680cb55a65408.1185095456.git.len.brown@intel.com>
2007-07-22  9:15     ` [PATCH 76/77] ACPI: create CONFIG_ACPI_DEBUG_FUNC_TRACE Len Brown
     [not found]   ` <d4c5f047ae2a33296774e41abc2ac5c89283f736.1185095456.git.len.brown@intel.com>
2007-07-22  9:15     ` [PATCH 77/77] ACPI: Populate /sys/firmware/acpi/tables/ Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185095751279-git-send-email-len.brown@intel.com \
    --to=len.brown@intel.com \
    --cc=hmh@hmh.eng.br \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).