mfd: atmel-hlcdc: Return in case of error
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 18 Dec 2019 12:28:27 +0000 (14:28 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 7 Jan 2020 10:08:58 +0000 (10:08 +0000)
commit10f9167664362bac6f44813687cf52fec9d15845
tree8cf0b74963b8959f3af8a94126cfd67fa489648a
parent4b1ca3a4041093930c516f3e7bfe443fb5202107
mfd: atmel-hlcdc: Return in case of error

For HLCDC timing engine configurations bit ATMEL_HLCDC_SIP of
ATMEL_HLCDC_SR needs to be polled before applying new config. In case of
timeout there is no indicator about this, so, return in case of timeout
and also print a message about this.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/atmel-hlcdc.c