omapdrm: hdmi4: refcount hdmi_power_on/off_core
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 2 Aug 2017 08:54:05 +0000 (10:54 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 Oct 2017 07:49:14 +0000 (10:49 +0300)
commita141a29612d7c0ba95a4e36a236d51c2b86e0e2b
treeaa74c18eaf5583cfecc06f7f001e8cb9b1025bec
parent1d54ecf230029dccc97e26a520ed95b9b95ae0eb
omapdrm: hdmi4: refcount hdmi_power_on/off_core

The hdmi_power_on/off_core functions can be called multiple times:
when the HPD changes and when the HDMI CEC support needs to power
the HDMI core.

So use a counter to know when to really power on or off the HDMI core.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/hdmi4.c