Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3802179pxj; Mon, 7 Jun 2021 21:58:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK0woW0VffTD9N2hhc0CQQ7rha9TiJCeL0mwYczH4+BEkvHiF2Rg4XHyddeuMLfQz2oGpf X-Received: by 2002:a17:906:4c57:: with SMTP id d23mr21173314ejw.147.1623128282436; Mon, 07 Jun 2021 21:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623128282; cv=none; d=google.com; s=arc-20160816; b=RP7UJqpFiEa9RPlu3jGUc27Wbnt18fNEvHa942gRnw1BCJ4QNBxMvdZmfKgXNJcIEw HCs/gH9fjZw0NlHS086hMd3V2oqRqzZahyBIzxjBAO7zbbG5pJxboPP58XRLjPBak5Mj bhXNIUZTuOpSYzOhqmVUkdl1Mykr+klUII6qAD3Ly/c/Nk/vUnC8LpCEqvUAgkOlpAHs 7Pkj7iPy6V8nMsS7wOY0GyWXYhsmdFuLIbZo1DI4HQvmoD5DwtXnu2R5d2Q33aVji4B3 oaB4lOqYIrp06q2JgDLhPeVG/CWAh85GaxAJJJJAxoHLbojsrEVUVbMzUvOeKxGqCpP7 l/0A== 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=/stu7ctuibAfiv1X5o6r5DPEF2P5U2Vh+/K/Hb/4FvM=; b=NZoldoPVxNJ0WCfvTW3wt7WoBpjlzwx6XQXHLMLtjNkd/cG0djekRewbdSXPXq+y81 3GghAvv7hddhFqUqwHrp65XStQ3bDykcM58uSLJ0dG4lhQfNI45eRuhtFkj3i4hCtuBW j73QbEXlfFPsDQS+nd/i8LCDjLaX6L5IfgJznwJlsQ5X1MOCBOA37giYf4OJqrd9c+pf m6cAGR4Uu0qiPy/xczIQIV7d/K7S50NrayKCm1qIf5MLDVE40yfcHqX/VMIF0j9TT8f+ JKlSoiDnwwdLyOiE2ZwzHeDLuhK/2OR8bCYLLQRDWOTTV1PUI955Uu0lfY0Y0nTkk7Dp gowA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=FIKygQWJ; 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 v3si15010281ejc.422.2021.06.07.21.57.37; Mon, 07 Jun 2021 21:58:02 -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=FIKygQWJ; 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 S230222AbhFHE4v (ORCPT + 99 others); Tue, 8 Jun 2021 00:56:51 -0400 Received: from ni.piap.pl ([195.187.100.5]:60968 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhFHE4v (ORCPT ); Tue, 8 Jun 2021 00:56:51 -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 6393344423B; Tue, 8 Jun 2021 06:54:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 6393344423B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1623128097; bh=/stu7ctuibAfiv1X5o6r5DPEF2P5U2Vh+/K/Hb/4FvM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FIKygQWJu7fMFBf6d2M45Okhkz3JID53xc9dg9C8iWmgROrfAFR2kUhJaKq9IQWCj bLM/O/lt/QQe6YI/9Nbu3L0VsdnrVReJwytj4FGxiAMUJhgoZx3z7ZeR9RvZngIleK wLZJLQ1l890AEDuztyTcvurxCubX2c443vHM0dWo= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Tim Harvey Cc: Hans Verkuil , Mauro Carvalho Chehab , linux-media , lkml Subject: Re: [PATCH] TDA1997x: enable EDID support References: Sender: khalasa@piap.pl Date: Tue, 08 Jun 2021 06:54:57 +0200 In-Reply-To: (Tim Harvey's message of "Mon, 7 Jun 2021 08:48:19 -0700") 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 Tim, Tim Harvey writes: >> 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 where the source above is from (this was all so long ago) but That's your gateworks_fslc_3.14_1.0.x_ga branch (3.14 is the kernel and 1.0.x_ga is IIRC some Freescale versioning) :-) > my guess is that 'internal_edid' meant an EDID had been provided via > software and the else case meant there was no EDID available. > There is no support on that chip for an external EEPROM. Right. I guess the else meant it was available and &=3D ~83 meant no EDID... Anyway one could simply drop a 24c02 or a similar chip directly to SDA/SCL HDMI lines, that's what the monitor makers had been doing for a long time. Then, I guess, you would need the internal_edid =3D 0 (otherwise the TDA chip would be fighting the EEPROM on the SDA line). Not that I know of any such design using this driver, I guess we can safely skip this part. --=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