drivers: dai: intel: ssp: Print usable error for poll timeout
Print the register address, mask and value as hexadecimal to be more intuitive and also print out the actual value from the register to have some insights. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
This commit is contained in:
parent
1440f5c19c
commit
bc7c717c41
1 changed files with 2 additions and 1 deletions
|
|
@ -743,7 +743,8 @@ static int dai_ssp_poll_for_register_delay(uint32_t reg, uint32_t mask,
|
||||||
uint32_t val, uint64_t us)
|
uint32_t val, uint64_t us)
|
||||||
{
|
{
|
||||||
if (!WAIT_FOR((sys_read32(reg) & mask) == val, us, k_busy_wait(1))) {
|
if (!WAIT_FOR((sys_read32(reg) & mask) == val, us, k_busy_wait(1))) {
|
||||||
LOG_ERR("poll timeout reg %u mask %u val %u us %u", reg, mask, val, (uint32_t)us);
|
LOG_ERR("poll timeout reg[%#x]=%#x, waited for: mask %#x, val %#x, us %u", reg,
|
||||||
|
sys_read32(reg), mask, val, (uint32_t)us);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue