diff options
author | Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | 2021-10-01 18:21:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-01 21:34:56 +0300 |
commit | 3672bb820f3292b6f035469f863c020317a3dd28 (patch) | |
tree | 7438540ff9c750afca8f0cba9b2454a514ed6997 /drivers/spi/spi-lp8841-rtc.c | |
parent | 75e33c55ae8fb4a177fe07c284665e1d61b02560 (diff) | |
download | linux-3672bb820f3292b6f035469f863c020317a3dd28.tar.xz |
spi: mediatek: skip delays if they are 0
In the function 'mtk_spi_set_hw_cs_timing'
the 'setup', 'hold' and 'inactive' delays are configured.
In case those values are 0 it causes errors on mt8173:
cros-ec-i2c-tunnel 1100a000.spi:ec@0:i2c-tunnel0:
Error transferring EC i2c message -71
cros-ec-spi spi0.0: EC failed to respond in time.
This patch fixes that issues by setting only the values
that are not 0.
Fixes: 04e6bb0d6bb1 ("spi: modify set_cs_timing parameter")
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Link: https://lore.kernel.org/r/20211001152153.4604-1-dafna.hirschfeld@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lp8841-rtc.c')
0 files changed, 0 insertions, 0 deletions