diff options
author | Holger Macht <hmacht@suse.de> | 2009-01-20 12:18:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-12 09:30:59 -0800 |
commit | 1d672ef324e78a467603ef55aa4558cac9f895ba (patch) | |
tree | 06584c42f4704d1fe2c9bd11416f4b780e33283d /include/acpi/pdc_intel.h | |
parent | d60cceec0948426ee9b468f0ded136f56f506169 (diff) | |
download | lwn-1d672ef324e78a467603ef55aa4558cac9f895ba.tar.gz lwn-1d672ef324e78a467603ef55aa4558cac9f895ba.zip |
ACPI: dock: Don't eval _STA on every show_docked sysfs read
commit fc5a9f8841ee87d93376ada5d73117d4d6a373ea upstream.
Some devices trigger a DEVICE_CHECK on every evalutation of _STA. This
can also be seen in commit 8b59560a3baf2e7c24e0fb92ea5d09eca92805db
(ACPI: dock: avoid check _STA method). If an undock is processed, the
dock driver sends a uevent and userspace might read the show_docked
property in sysfs. This causes an evaluation of _STA of the particular
device which causes the dock driver to immediately dock again.
In any case, evaluation of _STA (show_docked) does not necessarily mean
that we are docked, so check with the internal device structure.
http://bugzilla.kernel.org/show_bug.cgi?id=12360
Signed-off-by: Holger Macht <hmacht@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/acpi/pdc_intel.h')
0 files changed, 0 insertions, 0 deletions