mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
tps6598x: Add a delay in the command poll loop
It seems that if we poll too fast, we DoS the poor thing... Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
cc1fa67ff2
commit
850a669436
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ int tps6598x_command(tps6598x_dev_t *dev, const char *cmd, const u8 *data_in, si
|
|||
return -1;
|
||||
if (cmd_status == TPS_CMD_INVALID)
|
||||
return -1;
|
||||
udelay(100);
|
||||
} while (cmd_status != 0);
|
||||
|
||||
if (len_out) {
|
||||
|
|
Loading…
Reference in a new issue