]> git.baikalelectronics.ru Git - 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)
commite37fcc2d4dddace4ead71b3936a06d4129937bfe
treee515f1594cc8ae6f6bf31ffb2c79043590d9c79a
parent0791c8c1d72723f911e6d43d3ec792dd9ccc0340
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