]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb54401d1481862e87548dea95e311ed62f6e51b8
treef9c0f25ec1beff3aeba70646a5ad21b5d234e1b4
parentd25f1a3bfdb3a3d82b686c02f2a7dc058e23a624
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