mfd: madera: Allow more time for hardware reset
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 14 Jan 2020 15:10:48 +0000 (15:10 +0000)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:33:58 +0000 (07:33 +0000)
commit003035b3eb7085ee7d85f7ed063f10acf66b56d4
treef9c0f25ec1beff3aeba70646a5ad21b5d234e1b4
parente9f47591793e9c9abf340077daf3bafbcb0daad0
mfd: madera: Allow more time for hardware reset

Both manual and power on resets have a brief period where the chip will
not be accessible immediately afterwards. Extend the time allowed for
this from a minimum of 1mS to 2mS based on newer evaluation of the
hardware and ensure this reset happens in all reset conditions. Whilst
making the change also remove the redundant NULL checks in the reset
functions as the GPIO functions already check for this.

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