OSDN Git Service

drm: dw-hdmi: use cec_notifier_conn_(un)register
authorDariusz Marcinkiewicz <darekm@google.com>
Wed, 14 Aug 2019 10:45:06 +0000 (12:45 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 20 Aug 2019 07:46:45 +0000 (09:46 +0200)
commit7070fe7386c1a49e0d48a498a562a3bd952070d2
tree95ce1dd18c4e0cb7f87fb40c441911bae52fe968
parent96158346b59bfb1d531b61fd7696ce370acebbf1
drm: dw-hdmi: use cec_notifier_conn_(un)register

Use the new cec_notifier_conn_(un)register() functions to
(un)register the notifier for the HDMI connector, and fill in
the cec_connector_info.

Changes since v6:
        - move cec_notifier_conn_unregister to a bridge detach
  function,
- add a mutex protecting a CEC notifier.
Changes since v4:
- typo fix
Changes since v2:
- removed unnecessary NULL check before a call to
cec_notifier_conn_unregister,
- use cec_notifier_phys_addr_invalidate to invalidate physical
address.
Changes since v1:
Add memory barrier to make sure that the notifier
becomes visible to the irq thread once it is fully
constructed.

Signed-off-by: Dariusz Marcinkiewicz <darekm@google.com>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190814104520.6001-9-darekm@google.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c