From: Russell King Date: Sat, 21 Jan 2012 18:15:24 +0000 (+0000) Subject: MFD: ucb1x00-core: fix missing restore of io output data on resume X-Git-Tag: MMI-PSA29.97-13-9~17505^2~8^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e95e51e184bd107380881502ea0f483c4500706;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git MFD: ucb1x00-core: fix missing restore of io output data on resume We were not restoring the UCB1x00 gpio output data on resume, resulting in incorrect GPIO output data after a resume. Add the missing register write. Signed-off-by: Russell King --- diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index b281217334eb..8ebda97981e1 100644 --- a/drivers/mfd/ucb1x00-core.c +++ b/drivers/mfd/ucb1x00-core.c @@ -687,6 +687,7 @@ static int ucb1x00_resume(struct mcp *mcp) struct ucb1x00 *ucb = mcp_get_drvdata(mcp); struct ucb1x00_dev *dev; + ucb1x00_reg_write(ucb, UCB_IO_DATA, ucb->io_out); ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); mutex_lock(&ucb1x00_mutex); list_for_each_entry(dev, &ucb->devs, dev_node) {