]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: omap_hsmmc: switch default/idle pinctrl states in runtime hooks
authorAndreas Fenkart <afenkart@gmail.com>
Thu, 29 May 2014 08:28:04 +0000 (10:28 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:26:05 +0000 (11:26 +0200)
commita54a7e3cbafa3c47ba97e88387c09cfd674b13e1
tree8e32a5d0c4a9451489f6ccfc93b1fd70a913e175
parente5fd7c429141049e36a34f92a4eb2f3139d6beda
mmc: omap_hsmmc: switch default/idle pinctrl states in runtime hooks

These are predefined states of the driver model. When not present,
as if not set in the device tree, they become no-ops.
Explicitly selecting the default state is not needed since the
device core layer sets pin mux to "default" state before probe.
This is not the simplest implementation, on AM335x at least, we could
switch to idle at any point in the suspend hook, only the default state
needs to be set before writing to the irq registers or an IRQ might get
lost.

Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c