]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook
authorChris Bainbridge <chris.bainbridge@gmail.com>
Wed, 29 Apr 2015 20:21:40 +0000 (21:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 May 2015 16:55:06 +0000 (09:55 -0700)
commit9b03ffb2449ccdc79518545d2790857936d06fb6
tree4dc664e88783c4cfc55ddf83a0ec0d1ad2ac6c7e
parent76ccf3828a8d9971c7183796914c0f610e9b904d
ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook

commit 3349fb64b2927407017d970dd5c4daf3c5ad69f8 upstream.

Commit 7bc5a2bad0b8 'ACPI: Support _OSI("Darwin") correctly' caused
the MacBook firmware to expose the SBS, resulting in intermittent
hangs of several minutes on boot, and failure to detect or report
the battery.  Fix this by adding a 5 us delay to the start of each
SMBUS transaction.  This timing is the result of experimentation -
hangs were observed with 3 us but never with 5 us.

Fixes: 7bc5a2bad0b8 'ACPI: Support _OSI("Darwin") correctly'
Link: https://bugzilla.kernel.org/show_bug.cgi?id=94651
Signed-off-by: Chris Bainbridge <chris.bainbridge@gmail.com>
Cc: 3.18+ <stable@vger.kernel.org> # 3.18+
[ rjw: Subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/sbshc.c