Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1207187lqt; Fri, 7 Jun 2024 10:55:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUK8U4LR6sliZfX7+YQ/MstC7hJibphKBRnCRl2Bl5blw12wIEp6JhabefiyDILi0sz/Yq6gT+kZnoHdRjNiJGKGYSQN92MCpIjeqoDKg== X-Google-Smtp-Source: AGHT+IGdPVRGRGI3kDscSn5GMLCKG6MCntZJeVd2pil5V+gPfnBBIqKSFbzsZh49XDUTwlnzSMX3 X-Received: by 2002:a05:622a:3cf:b0:43e:1231:1040 with SMTP id d75a77b69052e-44036267b85mr114342621cf.20.1717782916011; Fri, 07 Jun 2024 10:55:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717782915; cv=pass; d=google.com; s=arc-20160816; b=HPn/kdUwTWGaPj5h3hNbYAjjy+5dlhPUKlKk3JbemexfSsAJlMJ3MYIBjI1SKvjwkU lieW9Mf62FXIMBil2CUlapaIy8fgun5I37vLEe0/ZWMm330/RxkthZThKReeo/jTo4aw xGrnVU5rk7sY2/nFWuC7ISmaa7fRHUY+KKZDCWPT01QxJVUw+rYkdlbGvhXSAkcR3WGb /AB1EjOK8hd+SthNgP5yhsPQG5c4jML+sCqDX7mx/piDfuVMJbDwKuKzTwF0PWVZTH/h SWkTK5iKbuznbjW6lxVW3NNxxSIjDRCgDWemoAQ3GoVcfABMFiD3EYbxJ9159A3Ckyoa rB5w== 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=HD0CNJsnyrAY0zkA4I2PSdkOkOGbjF8U3akPL1ESpAc=; fh=fO+JdMoIbTwJ6Ti4mxBIQlHUzuElA0YcAwrrhdoVgqY=; b=CNPl4zf77qzWTgVzmx6McbnXrDrIwuUWlbF1fMZ/tMcwvHoFJbZMYnMB/AeQHYH/3L P6GM09IF4DZbb6MBD4Xefh5vITjgos5W2rn90IzVcA4oFWBqbJ5/+uXIwlM9oU84gfPW BEBerojxG6XYkgeEuQUjUKw8//UTJk7Jt2pTRce9TseJ12R8Uy7lRAHtJbk8n4L7Ho5B AB35bJ3CNJkJSo+qWAbY5kI8J8zvbDa13repDFY9v4pFcu1N0Zvg7U+4uwhVTLc8HZBd lo0oNwP1pKFPX/wBivrfVMIwGotyaZUmHfSjJ21cYSduHRzXqcxzjlnPMeaQ1K2xMI1q ETVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FPZ+d/fE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b8a725si12603381cf.784.2024.06.07.10.55.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 10:55:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FPZ+d/fE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 294581C21A62 for ; Fri, 7 Jun 2024 17:55:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0CEF19B3F7; Fri, 7 Jun 2024 17:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FPZ+d/fE" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 11F8F1A270; Fri, 7 Jun 2024 17:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717782906; cv=none; b=KjUfx48g/ugWCQ7iAmPJfH2vajCcinpadR/SdY4zBfnZ5X/a8AmcRBCLCvM1ukiQuYrGY7e1/5tkaMc6GHTCvpV1mID58ziwiqHVId2yXW1xOXv70/9dmOFPq2rRTV7FijmG8tYnx1fgI03rhI8QvC/5qgQiFCGWufcz4cZ/7z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717782906; c=relaxed/simple; bh=HD0CNJsnyrAY0zkA4I2PSdkOkOGbjF8U3akPL1ESpAc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KiBSLM2RRjGDpQ4BLyoyGp+cB5OOJfFOZ63g3v4iDcgwhzBNFQ4kQBAndMJmEdMbNS2eyWnxIVKtemVgYTPilNvHzuwNubVXqU6nnh0qtLre3eIj/ZmunNgXmuKnY8B6ia20djSMz8WbzaL7jpHHFDFN+Jpx4ytnqCWefe2bGyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FPZ+d/fE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8444FC2BBFC; Fri, 7 Jun 2024 17:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717782905; bh=HD0CNJsnyrAY0zkA4I2PSdkOkOGbjF8U3akPL1ESpAc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FPZ+d/fE292ir14XQOlp1qgh6VU8SzmRuxFG28EUAlxlxCQ2GuBtBdspfMqRMGYL9 OS5/E57lFwekOh4/bsAVHT6/E3l1tpnQOfsr0lK4cilEfwn3z0stB2Byi030AfK9Zc xzUopxz6oIX8bSj1BHuUCFuBDXrT9eOHXbN5ofHBu2UbYxBceKuS4/y/pYsdErpolf 9Mro+gfV1/sGKh61DTzmaZaCvf2XmojTsnYuuUfvoq7jBsIuk/4JmONDKiLAhuHI8p qoVZzzeNw8t31MfZk6szHmZQfd+qqVZkhJT3r1giRCRWdY+dOCb/lw/H1vF8lNUKYe pj0zFQeSmtKkQ== Date: Fri, 7 Jun 2024 18:55:01 +0100 From: Conor Dooley To: Dave Stevenson Cc: Laurent Pinchart , linux-media@vger.kernel.org, Conor Dooley , Sakari Ailus , Mauro Carvalho Chehab , Adam Ford , Andrey Konovalov , linux-kernel@vger.kernel.org, Naushir Patuck Subject: Re: [PATCH v1] media: i2c: imx219: fix msr access command sequence Message-ID: <20240607-celibacy-contend-c4a6be15804b@spud> References: <20240607-trimmer-pummel-b452ed15e103@spud> <20240607155704.GB1242@pendragon.ideasonboard.com> 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="ZHqfjYu5ggA4rXeE" Content-Disposition: inline In-Reply-To: --ZHqfjYu5ggA4rXeE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 07, 2024 at 06:29:49PM +0100, Dave Stevenson wrote: > > > --- > > > 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 theory > > > 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. I've asked, maybe it turns out to just be the first of my suggestions, and they noticed it was not matching in passing. 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. Thanks, Conor. --ZHqfjYu5ggA4rXeE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmNJdQAKCRB4tDGHoIJi 0hcbAPsHvPUOTSJc2HpAEmSrUMUDYTe9VQQ4vevAj/EA8dGIagD/aBBdj/I3srth 4UOhyFkHCKR8pWt06mPdRr0fHvuI6gw= =snAw -----END PGP SIGNATURE----- --ZHqfjYu5ggA4rXeE--