Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D49B5C433F5 for ; Thu, 29 Sep 2022 20:08:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D52584D6B; Thu, 29 Sep 2022 22:07:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="OMzMwea7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6F1AD84CCB; Thu, 29 Sep 2022 22:07:37 +0200 (CEST) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 934F484CA9 for ; Thu, 29 Sep 2022 22:07:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf29.google.com with SMTP id s13so1585119qvq.10 for ; Thu, 29 Sep 2022 13:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=mCg0r7zOW5CLZ7kHu9Bt/ys0uCvrLCfLP0G2P3pxsm4=; b=OMzMwea78sQDSXGP7T2bA0+gJ3ZfHVKTw1bxz1zDrVOOytqyC2lR9cquJ7hPdMqRwo QCdE2Gd0Mu5zYjU5Ga3i7ZrgZbT8wCz4pdaZE1pGlZLu8nVcD3jRrfZbynDo0z2meNk0 y/GHZ5pcW/2q25fX5dbde4KmxJZQ3ZH0ug3lw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=mCg0r7zOW5CLZ7kHu9Bt/ys0uCvrLCfLP0G2P3pxsm4=; b=NXusiBb3SXfnsOca7RnLXA8fM7s7V/exWzuA5zWjz+mhMqj2bQA+sWYclGVxiXZsrs 6emSOirHFtne9m/WWiIbHEMkgAEk2mbo4E5pnzEdwbRSkTflZxgwqsFLnjQEo0/zhZD9 jqa8U1T3gfQANTaWlu3Mhm1w2EAt+B0+J9t3+vbZdSIkWu+Rd9KSdLKweECwg8ek21Vb B73X0ExUyr3igJvLgduoIRb5sIWTvYYxbjZieOKp9tq0PK74zQ0nIExgeD5hkhFM3Lwk JicCb4rmC7332Mg7HCJ+/Fjchj7+c6tcqDQQpYybWss122lPFwEYI3D4anmkKyQTEC8k R4qg== X-Gm-Message-State: ACrzQf0ANS4P/MN37ncm8gbQzo7gQXo32wQaee+w89a/K+xp4xx5bbCS 1gsFLj6Nki6uV2cPV2piUiXfiA== X-Google-Smtp-Source: AMsMyM5/CysfOtMRvW61mf1reyx278VvJJG0Tvz70BKL7Rj07I3o72dS32big1vg90mV297PTKcyIw== X-Received: by 2002:a05:6214:c29:b0:4aa:b050:5ed7 with SMTP id a9-20020a0562140c2900b004aab0505ed7mr3948394qvd.15.1664482051208; Thu, 29 Sep 2022 13:07:31 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-0186-ea3a-a82b-3964.res6.spectrum.com. [2603:6081:7b00:6400:186:ea3a:a82b:3964]) by smtp.gmail.com with ESMTPSA id az19-20020a05620a171300b006bbe7ded98csm247558qkb.112.2022.09.29.13.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 13:07:30 -0700 (PDT) Date: Thu, 29 Sep 2022 16:07:28 -0400 From: Tom Rini To: Nishanth Menon Cc: Jason Kridner , Robert Nelson , Vignesh Raghavendra , Anand Gadiyar , u-boot@lists.denx.de Subject: Re: [PATCH] board: ti: common: board_detect: Fix EEPROM read quirk for AM6 style data Message-ID: <20220929200728.GK3044094@bill-the-cat> References: <20220921133842.2085-1-nm@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HRprdJFjV/kUnvOW" Content-Disposition: inline In-Reply-To: <20220921133842.2085-1-nm@ti.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --HRprdJFjV/kUnvOW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 21, 2022 at 08:38:42AM -0500, Nishanth Menon wrote: > The situation is similar to commit bf6376642fe8 ("board: ti: common: > board_detect: Fix EEPROM read quirk"). This is seen on a variant of > eeproms seen on some BeagleBone-AI64 which now has a mix of both 1 byte > addressing and 2 byte addressing eeproms. >=20 > Unlike the am335x (ti_i2c_eeprom_am_get) and dra7 > (ti_i2c_eeprom_dra7_get) which use constant data structure which allows > us to do a complete read of the data, the > am6(ti_i2c_eeprom_am6_get) eeprom parse operation is dynamic. >=20 > This removes the option of being able to read the complete eeprom data > in one single shot. >=20 > Fortunately, on the I2C bus, we do see the following behavior: In 1 > byte mode, if we attempt to read the first header data yet again, the > misbehaving 2 byte addressing device acts in constant addressing mode > which results in the header not matching up and follow on attempt at 2 > byte addressing scheme grabs the correct data. >=20 > This costs us an extra ~3 milliseconds, which is a minor penalty > compared to the consistent image support we need to have. >=20 > Reported-by: Jason Kridner > Fixes: a58147c2dbbf ("board: ti: common: board_detect: Do 1byte address c= hecks first.") > Signed-off-by: Nishanth Menon Applied to u-boot/master, thanks! --=20 Tom --HRprdJFjV/kUnvOW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmM1+wAACgkQFHw5/5Y0 tyx4+QwAj2EbEw4vePc7JATIxnkcHZyo81Ih83Vgzfb+vfTlcwpMqZ3gUIXQ7pgU AzJvPz2ayhxg58VbqqfbTwzsPaAt7FPfZ4OCO3azmQjdRKIzaxIjI8E86KQv2AeJ NDDpTqHrs8VEvH6yHfInaMMuVnda9s1qEAhgp+4JmqQxyBFTEghpn7jRvOJAWNf4 HqPQmZmwsvmFFO1P9ee/puh6EXUmsLCt/Vklz75GR+Ej2cJUo6qdLRMFsU8ukh8j e1fzQiuh6BMvfbVXNjKcExNV7aWgJ0ValrkRDmCWj1qjnWlFUZT3KuqV2iWAeiFL wrIpzbgnALKPSUAhVG79NGR5p30OVPSg8yAK7XDirw7UXeU3ptkUZP2pivPBBnNl 9sct+w9lTgkOKZxnrfiFEuojbOGU2kZeR0Pv9SGA1sEHDtHOGtMaktzFf07i6AHB +U04MbZnEkfCj5QYCDrc/OoBsqvM4jLR5hnxzCZTyufA4X6mvd8w4ghYqWAQHwAz JSTEKvxe =PdBw -----END PGP SIGNATURE----- --HRprdJFjV/kUnvOW--