diff options
author | Brad Campbell <[email protected]> | 2020-11-12 14:08:23 +1100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-11-12 07:00:59 -0800 |
commit | 4d64bb4ba5ecf4831448cdb2fe16d0ae91b2b40b (patch) | |
tree | 51cab9e14c769009d38997d5ac1af273876e507c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fd8feec665fef840277515a5c2b9b7c3e3970fad (diff) |
hwmon: (applesmc) Re-work SMC comms
Commit fff2d0f701e6 ("hwmon: (applesmc) avoid overlong udelay()")
introduced an issue whereby communication with the SMC became
unreliable with write errors like :
[ 120.378614] applesmc: send_byte(0x00, 0x0300) fail: 0x40
[ 120.378621] applesmc: LKSB: write data fail
[ 120.512782] applesmc: send_byte(0x00, 0x0300) fail: 0x40
[ 120.512787] applesmc: LKSB: write data fail
The original code appeared to be timing sensitive and was not reliable
with the timing changes in the aforementioned commit.
This patch re-factors the SMC communication to remove the timing
dependencies and restore function with the changes previously
committed.
Tested on : MacbookAir6,2 MacBookPro11,1 iMac12,2, MacBookAir1,1,
MacBookAir3,1
Fixes: fff2d0f701e6 ("hwmon: (applesmc) avoid overlong udelay()")
Reported-by: Andreas Kemnade <[email protected]>
Tested-by: Andreas Kemnade <[email protected]> # MacBookAir6,2
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Brad Campbell <[email protected]>
Signed-off-by: Henrik Rydberg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions