]> 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)
commita3704934e1e5878a03362d9d986feca0f725ba48
tree7f446e4537f411daa245f1b0a16ec628a76442d1
parent57b21e1889146d47cc3152ae0f7b83aa65e8f791
ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook

Commit 2aa7d6682a85 '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: 2aa7d6682a85 '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