media: atmel-isc: Add prepare and unprepare ops
authorWenyou Yang <wenyou.yang@microchip.com>
Tue, 10 Oct 2017 02:46:37 +0000 (04:46 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 11:56:05 +0000 (13:56 +0200)
commit64f6306a5af21561ad6b9a3247fc68126b8be88a
tree5446eeb015fd6ac2cbbcba362c75cf5b4f71d74d
parentcab1dea3be2e51578032c5aee6ac13ff7b4aaeb4
media: atmel-isc: Add prepare and unprepare ops

A software write operation to the ISC_CLKEN or ISC_CLKDIS register
requires double clock domain synchronization and is not permitted
when the ISC_SR.SIP is asserted. So add the .prepare and .unprepare
ops to make sure the ISC_CLKSR.SIP is unasserted before the write
operation to the ISC_CLKEN or ISC_CLKDIS register.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/atmel/atmel-isc-regs.h
drivers/media/platform/atmel/atmel-isc.c