]> git.baikalelectronics.ru Git - kernel.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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Apr 2015 21:18:11 +0000 (23:18 +0200)
commit709751202a5d4f48afda818e82eb19a82bd6ccbc
tree7f446e4537f411daa245f1b0a16ec628a76442d1
parent032cfc78da9d1dd0a1dc9d561dd4006cf1641b43
ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook

Commit 49b0b04ac8e8 '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: 49b0b04ac8e8 '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>
drivers/acpi/sbshc.c