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:
Hector Martin 2021-11-18 22:15:38 +09:00
parent cc1fa67ff2
commit 850a669436

View file

@ -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) {