]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 27 Aug 2018 13:51:15 +0000 (14:51 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commit714ec07c4b29d863a3982fe6a23222ef9292fc6b
tree539c884321e9b00d65e6a1d1b52773a342ced999
parent57864e497f3c03d34174462756f39472f2fd2025
mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

While polling for BOOT_DONE the chip could NAK a read because it is
still booting, which would terminate the regmap_read_poll_timeout()
with an error.

Instead implement a polling loop that ignores read errors so we
always poll until the chip signals boot or the loop times out.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/madera-core.c