Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3195680pxj; Mon, 7 Jun 2021 04:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq5xcslygETDG286N1aMiLkatnT1sipyjgzQwZ6RqsiOnHiVziqtCapAcX50z3HZsvPt/4 X-Received: by 2002:a50:8e57:: with SMTP id 23mr19826443edx.354.1623067094929; Mon, 07 Jun 2021 04:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623067094; cv=none; d=google.com; s=arc-20160816; b=CNwoy0ZFkq0J64ep4T8jQ6XI3x2XHOeweixxfv6+NrpVA34vOTGYN6Aumpg/DMd73N fq/7UVU6vRsk/beXU4k9akV2II7voRXlUFQJKwf5ewb0x8T0oAWzDKbdNtJbBviWwog1 g6/ZrtVX9LguoczdalAj93ToIlILhECjSET9tsNk1jWMOZ69J57bXyp0PBedBRj3TGiT LKzTKwsrDjv+/FAxEuwiN/GiKMpQyhR4Uljc5FpT0jAHcr6Rn571/g3Mjm8+Kdr0pcF0 jY7m9RE9dg4DlgWG6fAa7GYqzemKeyLYBpiLtYubWD/kUK57qpdkiL69LqT5cgKifZwA egww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=RThC5tsnWT+d2Y9LB+HdF4WLkbKitBQLeYlAH9yKOcs=; b=VyqCl26uLMLW2y+JBmJ6C7BJeLe8EoZJb+QGqnxWruxyj1QSfmQBtd5CnVDK6ooTnz SdWU2oHw1wHRAWQFl3N5IqJPs9OYpFgbzK/3s10d2zu3Op4aT8XYz4pB5pIQJA6Dp+GS VLj1JnLV1DwX4dWWq++7xSzGpPWo1z1ahYIvbRU+UNVORPHxJycsqAA6464qlBIg/E1S Mz8QfJb9gtjc5ByXDxKeOjKaDnZw0sAAb3H44W1spHo+1DDDJ9s1N/IySk5l7n//B9t8 Uo0MFsyKrdQAB7QZvJAczow2mLKUhN0KAGDYt6n7KXZ4OkMUsCVWkCC4QdXsa8Pn7cUx E2UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=Aybt25zq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si14031577edy.327.2021.06.07.04.57.52; Mon, 07 Jun 2021 04:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=Aybt25zq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbhFGL6T (ORCPT + 99 others); Mon, 7 Jun 2021 07:58:19 -0400 Received: from ni.piap.pl ([195.187.100.5]:55290 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbhFGL6T (ORCPT ); Mon, 7 Jun 2021 07:58:19 -0400 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ni.piap.pl (Postfix) with ESMTPSA id E3B25444267; Mon, 7 Jun 2021 13:56:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl E3B25444267 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1623066985; bh=RThC5tsnWT+d2Y9LB+HdF4WLkbKitBQLeYlAH9yKOcs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Aybt25zqljokccbujawefkQKfJ6iY4bViRwqLV0EYtQzSC4SWv8+3ebzw61WC+OBu nU5qtWc1SoBf7pLChw7+dPWqzh+maORn3bj0vuGYRLQ/1NvuFFdYH2oSxJJHStsz50 ZSUcPZg7lQIazxTP7HDQUEyUZGfXIpi1cgk4hqD0= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Hans Verkuil Cc: Tim Harvey , Mauro Carvalho Chehab , linux-media@vger.kernel.org, lkml Subject: Re: [PATCH] TDA1997x: enable EDID support References: Sender: khalasa@piap.pl Date: Mon, 07 Jun 2021 13:56:25 +0200 In-Reply-To: (Hans Verkuil's message of "Mon, 7 Jun 2021 13:11:54 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 4 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, Hans Verkuil writes: >> Without this patch, the TDA19971 chip's EDID is inactive. > > Was this wrong from the very beginning? How can this ever have been tested > without an EDID? It seems so. I suspect it might have worked in tests because this register isn't cleared on reboot. I.e., setting it once after power up makes it work to the next power up. Or, maybe, the HDMI signal source didn't need EDID. I'm looking at the previous version of this driver from Gateworks and it contains: /* Configure EDID * * EDID_ENABLE bits: * 7 - nack_off * 6 - edid_only * 1 - edid_b_en * 0 - edid_a_en */ reg =3D io_read(REG_EDID_ENABLE); if (!tda1997x->internal_edid) reg &=3D ~0x83; /* EDID Nack ON */ else reg |=3D 0x83; /* EDID Nack OFF */ io_write(REG_EDID_ENABLE, reg); Not sure what the "non-internal" EDID could be - a separate I2C EEPROM chip? I'm using this on Gateworks' GW54xx boards and I can't see any such EEPROM in the vicinity of the TDA19971, but I don't know how it is wired - perhaps Tim has some idea? --=20 Krzysztof Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa