From: Guenter Roeck Date: Mon, 12 Jan 2015 13:32:00 +0000 (+0100) Subject: i8k: Rework error retries X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~85^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564132d9d62b3151dc6573da794378b5bf0cea17;p=pandora-kernel.git i8k: Rework error retries Instead of returning a previous value if the SMM code returns an error when trying to read a temperature, retry once. If that fails again, return -ENODATA. Also return -ENODATA if an attempt is made to read the GPU temperature but the GPU is currently turned off. Drop the I8K_TEMPERATURE_BUG definition and handle the related bug unconditionally. Signed-off-by: Guenter Roeck Tested-by: Pali Rohár Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed