From: Holger Macht Date: Tue, 20 Jan 2009 11:18:24 +0000 (+0100) Subject: ACPI: dock: Don't eval _STA on every show_docked sysfs read X-Git-Tag: v2.6.29-rc4~7^2^6~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5a9f8841ee87d93376ada5d73117d4d6a373ea;p=pandora-kernel.git ACPI: dock: Don't eval _STA on every show_docked sysfs read 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 Signed-off-by: Len Brown --- Reading git-diff-tree failed