]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3193a27742af43e6661ab0f34992001799992cb5
treeaa74c18eaf5583cfecc06f7f001e8cb9b1025bec
parentb0e353eaed10bec85fbb40ff77514f24a2a01f23
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