Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2453336imd; Fri, 2 Nov 2018 11:39:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5em5M3cbmo1QZHuFJACcUsaHmxS0jKGSomNVvCyb8so6sKyCimODgA5qZOqLXIxaWtGvYD7 X-Received: by 2002:a62:401:: with SMTP id 1-v6mr12560706pfe.156.1541183989043; Fri, 02 Nov 2018 11:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541183989; cv=none; d=google.com; s=arc-20160816; b=FpajJYVPYQ3+wptSz141KRmQJ7eDnCZ9xU5wCyuV0AwzK2UwtubO+y0m540rSVmbRq gdX06pTaZ/13pwTo6QWFwqrqDthZ4YPfhb8R5gd05ytscMAaw+st8c4iDtAPuNKRnCH6 8mV37Pu2clEViHoPMfBknxpStfYelJSC19v6LzgTJBejT6tV14IOEMIZjdLcRpyjM59h WTZb4PoekgngeWpeUaYzh6u5nG3CtY3F0go34dEPrrOp4VXHn6maLEbVklMgs1FmENIG wQA0HSk1FcEOgsv+KmXzgqCzdCuO+KnZin0xh8VETU3CzBLRTpfG5jYCJyHb5YInjnLf 4f+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hyS+aaBGFWvlhCECMU5DGkmu25XWMwMaB00C4Gct+OY=; b=IgZ8u66W4R8uDYeSlArBd++yFHa5DeqhE8QNyYm1HiyxZ0Rr6A0DjGLYSrR7xtHPsz LTiJ2n7rxAC1CWOkjO50MyNgZ7LSyN1NqUXPhAJ+8ELUhqD1/I5HBKufwSVEl4uKFYoq C7h1TMV8HJ2g5e9FdQZOkhiB+9+yYukxKUZEbfQeoiOnZWEHFc7Sbv4d/X3cllih8CDY F6EsSQcHByndmyee2RJ+A+i+N976/3Ve6ZFoR68UMp64s+ByB6xlj0pagPamqG08NHJy irU8FB9h6D0Pggu0t/sNfZqPYB2xzs6pWNzFY0zeIQBF2i2wS4LCFQSwCM3DJUs+dLeh o+Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z4o9HE26; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9-v6si34183953plo.270.2018.11.02.11.39.34; Fri, 02 Nov 2018 11:39:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z4o9HE26; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728836AbeKCDqe (ORCPT + 99 others); Fri, 2 Nov 2018 23:46:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:40358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbeKCDqd (ORCPT ); Fri, 2 Nov 2018 23:46:33 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2168E2081B; Fri, 2 Nov 2018 18:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183902; bh=/Obbd6lxG9ZCtQe3FHn8IAknEm06mvJizVfB7TWigPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z4o9HE26Wl0MT/1R6GXMdGG1aWGS50l+mV63PhYe1sA7Ein/EdYP93WuC7BQOODKN Lt30XVa7bTY/t6lmDZvIlSt0Uo8AKemuqlwacRGNj8Ejw/Bp7Knh2snAy7IRcyeZrB tjQZ3p6Zd4zsjGIXZ4xk6hh3qnb719+YlpV0c/Io= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Russell King , Sasha Levin Subject: [PATCH 4.18 015/150] drm/i2c: tda9950: set MAX_RETRIES for errors only Date: Fri, 2 Nov 2018 19:32:57 +0100 Message-Id: <20181102182903.857860761@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit e0dccce1193f87597548d0db6ecc942fb92c04cd ] 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 Signed-off-by: Russell King Signed-off-by: Sasha Levin --- drivers/gpu/drm/i2c/tda9950.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda9950.c b/drivers/gpu/drm/i2c/tda9950.c index f2186409f0cf..ccd355d0c123 100644 --- a/drivers/gpu/drm/i2c/tda9950.c +++ b/drivers/gpu/drm/i2c/tda9950.c @@ -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; -- 2.17.1