Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3470453imu; Sun, 11 Nov 2018 15:51:12 -0800 (PST) X-Google-Smtp-Source: AJdET5dobkTKWixbuuPMJv/MypVh5etLbXD6sYBLmmgzGQgiAbAxLly+KhPZK8ggFvTM6oG1jjij X-Received: by 2002:a17:902:4401:: with SMTP id k1-v6mr17211597pld.272.1541980272664; Sun, 11 Nov 2018 15:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980272; cv=none; d=google.com; s=arc-20160816; b=w5J2TStUH2MiLWQARZ1RZGTERTkQpdIxbgRPcXBWeD4IJ8Qow2erWF6vo/INB6K6nc eAtownpwW1LUrHn41nXw4Bb0Xo1ZC88ck1Spo7ItKnuGwkm7cZ5Km/JrBtuCyBHQ+SiI iuQTjsmy6eG9yidh+kY33hcAHJdw0l5kmwRAyiJuc3xVqYi0HkSKUvYWnDMwqXEEN0rf D86k49ycRty+IP9kDPACJ6DAmrosDdZGaS8hBCA0TuDj33fCA1CzBqxIKJbMFityAdXz MxYI7prO0MWUrE3093cbYzRZCyAJC6TrKuh3nj9PeAGZ4LT6x64UQwp3K86oZHdPtYHr V0xQ== 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=//uDxnWI5oo3TGIcT/dQ/JvfIoJ21Bk6tw5/EaKlD5g=; b=CPJ0LhLDvhzm9wippKv2ziEiMyL8tVtSrHDKp0T68kWYK1zAScFmWfnA03/kUi+XBC 8/jBgAPZQ275J9cCjgmApTnYGfjMuz50s1S2aUT34ylE11niOigT+cfNHmJdXQV/2V91 +dTEr4h1brRKih/Xp8gXg3DL4OnfLSKsBqhRVnCuNvn2j2R1sEsiAD3s+SapUI3bu8d0 c/FDwY61SGG+NSimmPp544+dTTOl2SvPhMW8k+k4QzBO3t/ornLxzzi4/1UUyoRqpRtx ki9o07fE/DQAOaw9AGjvg7mb5zGHARSaHco/JTqPqyU7xhaCULXMer6bgj8yEILIV4IJ WImA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAR9y0QH; 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 j191si14996834pgc.15.2018.11.11.15.50.57; Sun, 11 Nov 2018 15:51:12 -0800 (PST) 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=HAR9y0QH; 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 S1732933AbeKLISf (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:37302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732860AbeKLISe (ORCPT ); Mon, 12 Nov 2018 03:18:34 -0500 Received: from localhost (unknown [206.108.79.134]) (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 07019223C6; Sun, 11 Nov 2018 22:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975318; bh=2F6C9FeUGXFjY4vbrqwO7SAGUXwfu+AXTs7f1Fj/SBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAR9y0QH+e9AJ2wKDCqaRREsIn4yXt9ytkcVxN581BNIX0iVc3hfTfLWU3smAIXPR GGJz8f1BIwISny/b9Adup5pf6glHUVXx7sSeki7zsxV4GCMUwhN6Ntx+dtZtNzBVBi HFMKcw8NDM1Ck+2YJHwK0muiWfhUaRRUcZpJRnZY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 4.19 310/361] media: adv7604: when the EDID is cleared, unconfigure CEC as well Date: Sun, 11 Nov 2018 14:20:57 -0800 Message-Id: <20181111221658.191787222@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans Verkuil commit e7da89926f6dc6cf855f5ffdf79ef99a1b115ca7 upstream. When there is no EDID the CEC adapter should be unconfigured as well. So call cec_phys_addr_invalidate() when this happens. Signed-off-by: Hans Verkuil Cc: # for v4.18 and up Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/adv7604.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -2284,8 +2284,10 @@ static int adv76xx_set_edid(struct v4l2_ state->aspect_ratio.numerator = 16; state->aspect_ratio.denominator = 9; - if (!state->edid.present) + if (!state->edid.present) { state->edid.blocks = 0; + cec_phys_addr_invalidate(state->cec_adap); + } v4l2_dbg(2, debug, sd, "%s: clear EDID pad %d, edid.present = 0x%x\n", __func__, edid->pad, state->edid.present);