Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0dccce1 authored by Hans Verkuil's avatar Hans Verkuil Committed by Russell King
Browse files

drm/i2c: tda9950: set MAX_RETRIES for errors only



The CEC_TX_STATUS_MAX_RETRIES should be set for errors only to
prevent the CEC framework from retrying the transmit. If the
transmit was successful, then don't set this flag.

Found by running 'cec-compliance -A' on a beaglebone box.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent d98627d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -188,6 +188,7 @@ static irqreturn_t tda9950_irq(int irq, void *data)
			break;
		}
		/* TDA9950 executes all retries for us */
		if (tx_status != CEC_TX_STATUS_OK)
			tx_status |= CEC_TX_STATUS_MAX_RETRIES;
		cec_transmit_done(priv->adap, tx_status, arb_lost_cnt,
				  nack_cnt, 0, err_cnt);