mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
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>
This commit is contained in:
parent
215c330fe9
commit
77e01d6d17
@ -148,7 +148,10 @@ static inline int busy_loop(void) /* Wait till scu status is busy */
|
|||||||
return -ETIMEDOUT;
|
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 */
|
/* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */
|
||||||
|
Loading…
Reference in New Issue
Block a user