Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: wm5110: Add delay before releasing reset line

On the wm5110 it is important the reset line is held for slightly longer
to ensure the device starts up well. This patch adds a 5mS delay for
this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Charles Keepax and committed by
Lee Jones
121c075c e6cb7341

+10
+10
drivers/mfd/arizona-core.c
··· 259 259 static void arizona_disable_reset(struct arizona *arizona) 260 260 { 261 261 if (arizona->pdata.reset) { 262 + switch (arizona->type) { 263 + case WM5110: 264 + case WM8280: 265 + /* Meet requirements for minimum reset duration */ 266 + msleep(5); 267 + break; 268 + default: 269 + break; 270 + } 271 + 262 272 gpio_set_value_cansleep(arizona->pdata.reset, 1); 263 273 msleep(1); 264 274 }