Re: [PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-16 Thread Lee Jones
On Tue, 07 Aug 2018, Richard Fitzgerald wrote: > 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

Re: [PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-16 Thread Lee Jones
On Tue, 07 Aug 2018, Richard Fitzgerald wrote: > 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

[PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-07 Thread Richard Fitzgerald
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:

[PATCH 2/2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-07 Thread Richard Fitzgerald
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: