spi: spi-falcon: extend warning to delay
as well
The WARN_ON macro prints a warning in syslog if `delay_usecs` is non-zero. However, with the new intermediate `delay`, the warning should also be printed. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Link: https://lore.kernel.org/r/20190926105147.7839-18-alexandru.ardelean@analog.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3984d39b0e
commit
3e2405f01f
@ -377,7 +377,7 @@ static int falcon_sflash_xfer_one(struct spi_master *master,
|
||||
|
||||
m->actual_length += t->len;
|
||||
|
||||
WARN_ON(t->delay_usecs || t->cs_change);
|
||||
WARN_ON(t->delay_usecs || t->delay.value || t->cs_change);
|
||||
spi_flags = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user