]> Git Repo - linux.git/commitdiff
drm/i2c: tda9950: set MAX_RETRIES for errors only
authorHans Verkuil <[email protected]>
Mon, 27 Aug 2018 12:28:50 +0000 (14:28 +0200)
committerRussell King <[email protected]>
Thu, 20 Sep 2018 16:13:23 +0000 (17:13 +0100)
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: Hans Verkuil <[email protected]>
Signed-off-by: Russell King <[email protected]>
drivers/gpu/drm/i2c/tda9950.c

index f2186409f0cfb402893abeb7a8e2726d4e9c6483..ccd355d0c123064dd5a34e8b002d738faeec4b93 100644 (file)
@@ -188,7 +188,8 @@ static irqreturn_t tda9950_irq(int irq, void *data)
                        break;
                }
                /* 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,
                                  nack_cnt, 0, err_cnt);
                break;
This page took 0.05552 seconds and 4 git commands to generate.