mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
misc: atsha204a: return timeout from wakeup function
If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Reviewed-by: Marek Behún <marek.behun@nic.cz>
This commit is contained in:
parent
5f68470d69
commit
75967a24f9
@ -240,10 +240,10 @@ int atsha204a_wakeup(struct udevice *dev)
|
||||
}
|
||||
|
||||
debug("success\n");
|
||||
break;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
int atsha204a_idle(struct udevice *dev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user