summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2010-07-26 11:06:12 +0200
committerMatthew Garrett <mjg@redhat.com>2010-08-03 15:50:33 +0200
commit77e01d6d177f060f466417fa32fc3e1381a73502 (patch)
treebda4acd937c9230d7f3f0fb02077b857ac39b7da /drivers/platform
parentintel_scu_ipc: fix data packing of PMIC command on Moorestown (diff)
downloadlinux-77e01d6d177f060f466417fa32fc3e1381a73502.tar.xz
linux-77e01d6d177f060f466417fa32fc3e1381a73502.zip
intel_scu_ipc: return -EIO for error condition in busy_loop
Signed-off-by: Hong Liu <hong.liu@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_scu_ipc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index 84a2d4bfdec8..23b6d46a4b8f 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -148,7 +148,10 @@ static inline int busy_loop(void) /* Wait till scu status is busy */
return -ETIMEDOUT;
}
}
- return (status >> 1) & 1;
+ if ((status >> 1) & 1)
+ return -EIO;
+
+ return 0;
}
/* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */