linux/drivers/media/cec
Hans Verkuil 152b0a9a3d media: cec: ensure that adap_enable(false) is called from cec_delete_adapter()
When the adapter is removed the cec_delete_adapter() call attempts
to set the physical address to INVALID by calling __cec_s_phys_addr()
and so disabling the adapter.

However, __cec_s_phys_addr checks if the device node was unregistered
and just returns in that case.

This means that the adap_enable callback is never called with 'false'
to disable the CEC adapter. Most drivers don't care, but some need
to do cleanup here.

Change the test so the adapter is correctly disabled, even when the
device node is unregistered.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-26 08:32:15 -04:00
..
cec-adap.c media: cec: ensure that adap_enable(false) is called from cec_delete_adapter() 2017-08-26 08:32:15 -04:00
cec-api.c media: cec: rename pin events/function 2017-08-20 08:14:03 -04:00
cec-core.c media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_* 2017-08-20 10:02:48 -04:00
cec-edid.c [media] cec.h: merge cec-edid.h into cec.h 2017-04-19 06:53:18 -03:00
cec-notifier.c media: cec-notifier: small improvements 2017-07-26 05:46:44 -04:00
cec-pin.c media: cec-pin: fix irq handling 2017-08-20 08:15:00 -04:00
cec-priv.h
Kconfig media fixes for v4.12-rc4 2017-06-07 07:50:49 -03:00
Makefile media: cec-pin: add low-level pin hardware support 2017-07-18 12:57:18 -03:00