Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3470590imu; Sun, 11 Nov 2018 15:51:26 -0800 (PST) X-Google-Smtp-Source: AJdET5f9CpEdLQOHUW8NxzhwerWzZQW1RJGYxeIAR3LsVfSX9XoxJ9U8/s8OxDSQg2BYVu6neYtu X-Received: by 2002:a63:5765:: with SMTP id h37mr15693916pgm.423.1541980286143; Sun, 11 Nov 2018 15:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980286; cv=none; d=google.com; s=arc-20160816; b=p3UKubcFlksttxJmzzBELDo/15XIjWo3yNMKeLm0ftfwUWtAXJRuWuTCA1RwP4qQ5N Dgf3wxSMq3gbvynH95OtKyZxtU3yFRat7se9zLoMQ8JJlrDgYHW6Z5BvjI8RlpwGZIdL RNlhjHPi2Xv8DvWvDZvqaLDuKnADiMLEDAP8Q5EzBFuL9p/2iRKPpSHbn1GGwJUGCz+o +lxzHICmHI7HZIG2eVduWRScdVZw8VzOK0tLXJrhnhcYKPNj89qZnwE81ytnlkuBWXVN lyb3etzwhc2x6+IjqfexvdBlX49C/cmBclvPY8nNgTQ0WXqOp7Z8N36HWUplfQXaYVEI qyCA== 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=1rM/L8xMD3JxTHMc6WJ7GFI/neqKYNkCSUTtQKWUpjs=; b=yWgFhxh3sTGKcGhWllWKmZYNzRHwBb/mOrq1sdL8ecQD1eTNW6MnncFUecPFK6iQj2 xCRWndSm3LqMgH5ypAd27hRfFnWb6zGefGW3ZE6o/+Zd6Gc5J1iYwkYwssIHB2Nsq9r2 8pG7QaS+05T2oYTgEciJRTo5FkO80WjckpeAaeQbfQZx7us6nJ9/2u8zlwiGBNUOwlng q3Ts6MiqcBo9T5HZRTT6k1Bctr+w57YFWHYwLTcHsPKK7YJ8YVzEljNFtBn7nk+7+HsP Kl99xltNw0Rd4XkZAMs1wm5R5acZbzlmso2CecSHnZki+1FCHaNsnfxNTWK8FvZGEZJh q4Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c3Wlennt; 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 h80-v6si12595036pfj.112.2018.11.11.15.51.11; Sun, 11 Nov 2018 15:51:26 -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=c3Wlennt; 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 S1733189AbeKLJlM (ORCPT + 99 others); Mon, 12 Nov 2018 04:41:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:37584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732919AbeKLISe (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 C1089215EA; 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=genZTSXQYFMbUeKEyBIJISKdIrL4rnxp3OxXsOtbyHg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c3Wlenntmb6mGmH6VG+J3xEU8zOosrNjBGEhOdFdOnLsATdgCIAoeChUmKyAa14Ic KMgb7muvbCxjf94CPiC78IjKi0o/UySVXeLgBEdPfJXUhVr/2HKQhoZiMnsl/jXUly 0xpQGWYxfZPHRD/so3xz9U4vNLabSxfHSQEJRhs0= 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 311/361] media: adv7842: when the EDID is cleared, unconfigure CEC as well Date: Sun, 11 Nov 2018 14:20:58 -0800 Message-Id: <20181111221658.294183683@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 ab83203e181015b099720aff43ffabc1812e0fb3 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/adv7842.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c @@ -786,8 +786,10 @@ static int edid_write_hdmi_segment(struc /* Disable I2C access to internal EDID ram from HDMI DDC ports */ rep_write_and_or(sd, 0x77, 0xf3, 0x00); - if (!state->hdmi_edid.present) + if (!state->hdmi_edid.present) { + cec_phys_addr_invalidate(state->cec_adap); return 0; + } pa = cec_get_edid_phys_addr(edid, 256, &spa_loc); err = cec_phys_addr_validate(pa, &pa, NULL);