]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: rc: nuvoton: Keep device enabled during reg init
authorMichał Winiarski <michal.winiarski@intel.com>
Fri, 25 May 2018 14:28:17 +0000 (10:28 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 21:39:49 +0000 (17:39 -0400)
commitd24e56f6fbfbce79ae1da3ef7a790942e48676ef
treee515f1594cc8ae6f6bf31ffb2c79043590d9c79a
parentadbe6cfe5966dbc08d591d0e3771a270ef6e459d
media: rc: nuvoton: Keep device enabled during reg init

Doing writes when the device is disabled seems to be a NOOP.
For CIR device, we should enable it, initialize it, and then disable it
until it's opened. CIR_WAKE should always be enabled.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/nuvoton-cir.c