mbox series

[0/5] cec/adv/omap: fixes and new status flags

Message ID 20181004090900.32915-1-hverkuil@xs4all.nl (mailing list archive)
Headers show
Series cec/adv/omap: fixes and new status flags | expand

Message

Hans Verkuil Oct. 4, 2018, 9:08 a.m. UTC
From: Hans Verkuil <hans.verkuil@cisco.com>

The first patch adds new status flags to indicate when a pending
message is aborted because the CEC adapter is unconfigured, and when
a transmit times out (this indicates a driver bug).

The second and third patch fix a minor issue with the adv HDMI receivers:
if the EDID goes away, then the physical address also becomes invalid.

The fourth patch fixes a race condition in the omap4 CEC driver that
causes a transmit time out. The final patch drops the code in the omap4
CEC driver that attempts to set the number of retransmits: those register
bits are read-only, so the code is pointless.

There are no dependencies between these patches, although the first
and fourth patch relate to the same problem. With the new transmit
TIMEOUT status I hope that it will be easier to catch driver bugs like
that earlier since this bug remained hidden for too long.

Regards,

	Hans

Hans Verkuil (5):
  cec: add new tx/rx status bits to detect aborts/timeouts
  adv7604: when the EDID is cleared, unconfigure CEC as well
  adv7842: when the EDID is cleared, unconfigure CEC as well
  omapdrm/dss/hdmi4_cec.c: clear TX FIFO before transmit_done
  omapdrm/dss/hdmi4_cec.c: don't set the retransmit count

 .../media/uapi/cec/cec-ioc-receive.rst        | 25 ++++++-
 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c       | 38 +++++------
 drivers/media/cec/cec-adap.c                  | 66 +++++--------------
 drivers/media/i2c/adv7604.c                   |  4 +-
 drivers/media/i2c/adv7842.c                   |  4 +-
 include/uapi/linux/cec.h                      |  3 +
 6 files changed, 67 insertions(+), 73 deletions(-)