提交 e0dccce1 编写于 作者: H Hans Verkuil 提交者: Russell King

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: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
上级 d98627d1
...@@ -188,7 +188,8 @@ static irqreturn_t tda9950_irq(int irq, void *data) ...@@ -188,7 +188,8 @@ static irqreturn_t tda9950_irq(int irq, void *data)
break; break;
} }
/* TDA9950 executes all retries for us */ /* TDA9950 executes all retries for us */
tx_status |= CEC_TX_STATUS_MAX_RETRIES; if (tx_status != CEC_TX_STATUS_OK)
tx_status |= CEC_TX_STATUS_MAX_RETRIES;
cec_transmit_done(priv->adap, tx_status, arb_lost_cnt, cec_transmit_done(priv->adap, tx_status, arb_lost_cnt,
nack_cnt, 0, err_cnt); nack_cnt, 0, err_cnt);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册