Skip to content

Commit

Permalink
intel_scu_ipc: return -EIO for error condition in busy_loop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hong Liu authored and Matthew Garrett committed Aug 3, 2010
1 parent 215c330 commit 77e01d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/platform/x86/intel_scu_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 77e01d6

Please sign in to comment.