]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 23 May 2015 19:41:42 +0000 (15:41 -0400)
commit834706a238191385c41c9368cb231dee75380ae5
treecf635ce8c5acafb2c8d0ecb13e37dfeb053dce96
parent51af817611f2c0987030d024f24fc7ea95dd33e6
ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook

[ Upstream commit 3349fb64b2927407017d970dd5c4daf3c5ad69f8 ]

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: Sasha Levin <sasha.levin@oracle.com>
drivers/acpi/sbshc.c