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

gpio/omap: remove extra context restores in *_runtime_resume()

68942edb09f69b6e09522d1d346665eb3aadde49 (gpio/omap: fix wakeups
on level-triggered GPIOs) already restores the fallingdetect and
risingdetect contexts in *_runtime_resume(). These registers were
modified in *_runtime_suspend() to include even those configured
as level-triggered since only edge-triggered gpios can generate
wakeup events. Therefore, the old context restores of the same
registers present later in the code is not needed any more.
Remove them.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Tarun Kanti DebBarma and committed by
Linus Walleij
60b18b9a 879fe324

-4
-4
drivers/gpio/gpio-omap.c
··· 1292 1292 return 0; 1293 1293 } 1294 1294 1295 - __raw_writel(bank->context.fallingdetect, 1296 - bank->base + bank->regs->fallingdetect); 1297 - __raw_writel(bank->context.risingdetect, 1298 - bank->base + bank->regs->risingdetect); 1299 1295 l = __raw_readl(bank->base + bank->regs->datain); 1300 1296 1301 1297 /*