Commit 77e01d6d177f060f466417fa32fc3e1381a73502

Authored by Hong Liu
Committed by Matthew Garrett
1 parent 215c330fe9

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>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

drivers/platform/x86/intel_scu_ipc.c
... ... @@ -148,7 +148,10 @@
148 148 return -ETIMEDOUT;
149 149 }
150 150 }
151   - return (status >> 1) & 1;
  151 + if ((status >> 1) & 1)
  152 + return -EIO;
  153 +
  154 + return 0;
152 155 }
153 156  
154 157 /* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */