OSDN Git Service

media: am437x-vpfe: Fix suspend path to always handle pinctrl config
authorDave Gerlach <d-gerlach@ti.com>
Fri, 20 Sep 2019 17:05:42 +0000 (14:05 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 15:51:34 +0000 (12:51 -0300)
commitb0e41bf23b590082c9109b691a1f949a0b8defae
tree293e0700d6afa5faaf40166d1519a9f339a54158
parent2c4414ce926676b84e06b7a09ad46b542a9390ed
media: am437x-vpfe: Fix suspend path to always handle pinctrl config

Currently if vpfe is not active then it returns immediately in the
suspend and resume handlers. Change this so that it always performs the
pinctrl config so that we can still get proper sleep state configuration
on the pins even if we do not need to worry about fully saving and
restoring context.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/am437x/am437x-vpfe.c