Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp196265lqp; Mon, 10 Jun 2024 00:32:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlhHSMBzGteWC0inH1ubaJzOLdCWUAb0HEm83Xq1ewMwOm+bZ0ehEcp/iOpOXIbEz0HCoaTOseFuHP9wXwACiNa/5J6p6Zx/omJ6ciYg== X-Google-Smtp-Source: AGHT+IFqq9f0zaP6ga9+XZq2vfLfM0t738ZWQUGRGdSgKn2AnjxYHjSuXJpitRAtaOyBcIVA12Bu X-Received: by 2002:a17:906:2dc8:b0:a6e:fac9:af5e with SMTP id a640c23a62f3a-a6efac9afd1mr364664766b.3.1718004732651; Mon, 10 Jun 2024 00:32:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718004732; cv=pass; d=google.com; s=arc-20160816; b=KF3OXPFFJF19n3Xhrxq3RaM8XFp/n13ef+bJ8hHpc/ocfg3pp5ooQv3n99cwJCF4ZM 5GiUE3KIJ+V8WOaCy8yNLgr1ZQQmob9XoiFGNpVV8qvMYkhK4n9CwDhwQdOR/HjhgNAg 0vPtOTcVCjlXirPWzAX1RxZ1+QGbYkG26xZp1kh33c10a5vpQEAPhfjKPJTWmuHfCQwl FkFo+BmEps0TBDE9v43y4GxZ9yYfX+JeCI0OZ/Xs/xQIUY7W8WhohwVm/o2O4jTY7yFv xTavIkKsxBZhGudPO5d2RxExN+x9DGk36LQApcEtHkZ74Xvy7PgTuBQTjl5JlyE/bEF9 YkEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tZoaqfA9dPXq7SFLbTOVJimoCOmd3MzzXuFQVxaywC4=; fh=GrNJJSIZvZONuizUYOFPHMX2WShz96AD0A/x6+7nOHI=; b=06rIBQErygxmtZ0djpqVOwnX4m5kd8Wd+y87Wn88YSouXvzUIggY0CV1/7H9UHinn+ 6Fdoqn1eI4M8sdfh1b3tFbUU7qHk8pLq4Om0A8CF3qxh2qhWEhCC5QLG2/RR18jGbIep NqDPNsndR4fmgczXAZL5QbCN8CJ1k9a3FuZA2haKajRFHw2Q4DJf2GWJH/qmhw4P1TGu 6F4fmj6+X58YZjcXTgN44WWq3d8ItmZyqT0E57bCzjtkJ0MUoBxDB7lcT1PbD086XFa5 JGzTYVzulBAxiMCU3F9MO59pPMxZ76IVJfquLtlOaAbxHlvLctdT7fO0TWv4qDfq4QK5 FVIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=2BAWfcXx; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-207776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f1256ee83si158045266b.771.2024.06.10.00.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 00:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=2BAWfcXx; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-207776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2DA2B1F220EC for ; Mon, 10 Jun 2024 07:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCAE52C1B4; Mon, 10 Jun 2024 07:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="2BAWfcXx" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2103063C7; Mon, 10 Jun 2024 07:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718004723; cv=none; b=NHkkPEKjJnZD/WjznXudlnW35mp7G6EW06akZswozE0cf7+ZL4kge/7zRpg/MPgU/eVftxt76PiudPJouxka1uEYqCR6QJbrzTJxH4MW2aP5eHGyMqxXXqioJh85UeUv69+Li6TuYd2VupNuqP576WWK/Lq3lKb0ZrlfqPTnos8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718004723; c=relaxed/simple; bh=tZoaqfA9dPXq7SFLbTOVJimoCOmd3MzzXuFQVxaywC4=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e2VcF/e+sgJc09D1VhQOiZLtk76/OlNMVpUM4z9kjrSxYxn/s5ILFiq2/aXdxsiJBX2rnzcmaAhHGH3hicdOP+YXnvq63VcGJwa1g75NDcTzRNHUXgwk17PSTrAUQgqdRBkat//JJ7jYGEVI/b8Bbar640qmlPgs4wJo4H9kIhc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=2BAWfcXx; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718004721; x=1749540721; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tZoaqfA9dPXq7SFLbTOVJimoCOmd3MzzXuFQVxaywC4=; b=2BAWfcXxYjkIeNPnH3ToqtPnsWc0VW+bPxoSSnFgxJSufeJu4SovirG3 lnsHpL7qWQc2+H3qDzmE715ZrOEaZ+jzubzKTP2R5G21w0wPQX2rfTqZn xJBtBcK5J4/JsEBED7vUjBOjWd2Pt5Zt0R0KgH6+Ejvx8mfc7U4je80KL Yr30tggsdUafSPyDCbT1WLXz4nHZPY9D1U8MTP7dTgm/wlvYP0PTUNYVR QYIFD4NZefzx6aX8oFrdmJ08BbUr6QKmhk2mnX7/XcuUI/wZ4f9bqk1JQ gZE+x01puxMg+wG+boz+BPXuYnwVcgp2TJa7wLt1JnLE9Tu2kyEFRj8A1 w==; X-CSE-ConnectionGUID: fH8Zoct6Tr+mfyafoeqGHA== X-CSE-MsgGUID: Dg8V9zg7TiS1c3IVaxOFtQ== X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="asc'?scan'208";a="29616640" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 10 Jun 2024 00:32:00 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 10 Jun 2024 00:31:52 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 10 Jun 2024 00:31:50 -0700 Date: Mon, 10 Jun 2024 08:31:33 +0100 From: Conor Dooley To: Conor Dooley CC: Dave Stevenson , Laurent Pinchart , , Sakari Ailus , Mauro Carvalho Chehab , Adam Ford , Andrey Konovalov , , Naushir Patuck Subject: Re: [PATCH v1] media: i2c: imx219: fix msr access command sequence Message-ID: <20240610-wolverine-hanky-37cc8c409958@wendy> References: <20240607-trimmer-pummel-b452ed15e103@spud> <20240607155704.GB1242@pendragon.ideasonboard.com> <20240607-celibacy-contend-c4a6be15804b@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RQwjnWiVsjBImHpx" Content-Disposition: inline In-Reply-To: <20240607-celibacy-contend-c4a6be15804b@spud> --RQwjnWiVsjBImHpx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 07, 2024 at 06:55:01PM +0100, Conor Dooley wrote: > On Fri, Jun 07, 2024 at 06:29:49PM +0100, Dave Stevenson wrote: >=20 > > > > --- > > > > I got the report of this third hand, I don't have a device and can't > > > > test this. I do wonder why the RPis get away with the sequence that > > > > seemingly doesn't work for the guy that reported this to me. My the= ory > > > > is either that they noticed the sequence was wrong while adding some > > > > other MSR access that is needed on this board while either cross > > > > checking the values written or because the other MSR accesses didn't > > > > take effect. > >=20 > > Did the change fix it for the reporter? We're using the driver with no > > changes to the register settings cf mainline. > > Why it works on the Pi but not on a Microchip board is likely to be > > something quite subtle. >=20 > I've asked, maybe it turns out to just be the first of my suggestions, > and they noticed it was not matching in passing. Apparently it was the latter & they did need to fix the sequence to be able to write the MSRs. > They did introduce two > additional MSR accesses, both outside of the range documented in the > datasheets I could find online. They did have explanations for what those > undocumented MSRs did (0x5040 and 0x5041) in the mail I got, but given > it's third hand info to me, I dunno if we have the datasheet etc. I'll > try to find out some more next week. Seemingly what those two additional MSRs do is under NDA so I would have no way of justifying a patch to add them or the devicetree property required to know whether or not the additional MSR writes is needed. :) --RQwjnWiVsjBImHpx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmar1QAKCRB4tDGHoIJi 0nywAP9jiXVl7YlW5revw707dpMwBM18c+5dtlHTgE8jVUt9uwEA3uG5TXfEGThl H/f1AFrVA5fpcSwZaV56fBU1J29Rewg= =srXG -----END PGP SIGNATURE----- --RQwjnWiVsjBImHpx--