Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1210677lqt; Fri, 7 Jun 2024 11:01:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9mtjH2ZNI9nwR0+qxo3CZKl0J1YjNYoXqzv7LvNhQ8MZhTwA9Ho6iVIpaBpavt4gQWuMefPhwkpo4gcH3qybegJ2P1HoogRXVfE9dSg== X-Google-Smtp-Source: AGHT+IHbTocK1PBxsxuuAmEPv61/bvcoHenUdVihuXEjmn808tEZAf+jgLiz/5j+itfBePhW3plA X-Received: by 2002:a05:620a:1667:b0:78a:72b3:b629 with SMTP id af79cd13be357-7953c438ca3mr299456485a.44.1717783295893; Fri, 07 Jun 2024 11:01:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717783295; cv=pass; d=google.com; s=arc-20160816; b=JcDtPlJS2R3Q1msOCryKVHE3k18JF5ImGwveQmPZ/Splq8LtIrUmRgNEXaSTOcSfvU fgq3WYO5i8N5lmD1mnY8VC/IF4rUobuLn/ycqIIJvNtmIAv5eoFcOuba5xkb/UiV09dy S02xRxz/U8S+lDc2OI28cGrfeOKeV99LD2ttyNXx8LcZVHZ2Dug4YXoZh8OOs1bfReoB IfdLX71ZvduPgnQJ9oMDDUDKHV7Rmnf+jSNHwiLV+VdM4eADXjve4qZ+YUZ/rdhbnn68 XxTlhiczUc5pEaZ11F9NOpr66wI3cBHUPnMFxY4M///07z/SKQfyQO8V4wlJVNFUiShC apaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=sJzRZyEuNURXvkjyHbfNkt9tQwj13U1o8kBE1pEHtyA=; fh=dyMcMSYTWZXgsH0hxfZbDzxB3y7ENsuhWVcG5E2FNMI=; b=fcE5UG4q613U5BdFMEvUtCOgx3Ww5bKGu8mcG8F4/ryRFIcfV0j34NED21zT1Ry51r JiylNhf0CvbTAKOHOBQHiVu1Zpu/hovneColdHLWB9SFmfHCxktzBuEga06ePTcH6yTn jrBedxRtdOYtQkmovfGZrrfs7f6lervXE7UfcqnZt7HZqfNzBZRuXUr9aZoycQAOJOo3 Ux31kv/JQRyW0XXHZQ20CK8d8Wdx10dcJ+PTqAm6TJcdLJKpWBZmkf18eQDUs0IfxVZ8 wx0fEKD3ijlzs5SONnb58GxDQkF6hCGdeC171FSTd2LAHsSGS0p9WtwMb1ZZIptfKISb 3wkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Hr4sjUEl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206581-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79533386989si450247485a.702.2024.06.07.11.01.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206581-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=@gmail.com header.s=20230601 header.b=Hr4sjUEl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206581-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 99CB91C20CDD for ; Fri, 7 Jun 2024 18:01:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1B3B19AD90; Fri, 7 Jun 2024 18:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hr4sjUEl" Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C85821805A; Fri, 7 Jun 2024 18:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717783286; cv=none; b=iENyqbaTpXjdL2JZMWh19wY2hzzyLC111k8yg88pEJbCHTi5P1TE/xf2XPWdC/P0NN1W3+6S/d6jbbFBtE3AakMNr/q0V73aDAOVqHqUvKE34Fl12TKs6c0Mu9n7QQWTmIy8rDoX83AwM3Re6ARKaRJylqbd4/1J+Gn66dBFyHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717783286; c=relaxed/simple; bh=XSsSxTQpjiFDdpc1b98fcJVPUJbKI9o+V72QkYiSWvo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mbTjUM0erYfQaJlLckX+J+w4eIBVHA8DaoEd+qLj9PYWMSmksH2XP7YzQipZjJe7fZmsQdqR3aM3n7t+q5CrIWFJqbdebZtp+DTjm3ZZZY4B21tlLnSmBdIrTJ8suapnx8/68pkZ0pViinZP4shiUBwI6WkHGKeexSk5oaLeCUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hr4sjUEl; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2c1ab9e17f6so2154270a91.1; Fri, 07 Jun 2024 11:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717783284; x=1718388084; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sJzRZyEuNURXvkjyHbfNkt9tQwj13U1o8kBE1pEHtyA=; b=Hr4sjUEl5NFbR5BomLiCVc5qHoZ/zvFyKQAbahQVD8buiCqYr0FIPfFswc3PLNik/i KnpCAk92xIqre7wprLG3jAYry0tF7w9IpNUOznnKEq5BBxMhGpnn2ZwzGIdwUuZZNFDC 5njzEkRnA3TacpQfzcBzZQlguZRG+KCN/7QGwFdSBnjHaPKHmxfvzrne+uKxfoGmwcv/ ht+burK+XDM7OYCwSMpY/FwehoWZf/4x0H2X1F9E0uvyA7hrYKneN2uBujEv6jzWZp4M bfnAKuCDRV2DT2uUkzNvcYBYaYlNV/n21xfaaxSEi4ALMi1EgX43LqFlO5n4S3tivbqM uC7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717783284; x=1718388084; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sJzRZyEuNURXvkjyHbfNkt9tQwj13U1o8kBE1pEHtyA=; b=ee7ac75YbTLZHfcPpRNwxxhooAWRDC7M/ON3kZ+Cyyph+L17vMWkVw9McEVaNCgr11 91Vjd9D2msBUSuDtxfbtulxr4DdDMxL1jf2bvPvMNNwHKGFySMFCU5lpjXjuFguv7RIk xwbUdg8sBC2eV3a+ojNEHOYfpXCDcxw/dMcwG4RVKnoReEF8Rzj3ud7kB9XLMtqYHTGv gywqF8GH+vFq/go626mdzdv/MYYlJURC7w0Wi3RCZ6/cAzNIR4BiYTyjP7l3hk7nR42i WaJx9tIiPbxNuCG3gjaJeuQCLeD3LKCr/v6uTwFo5QBdh7OK5J97sNuryLBjxitc3TFD B5iw== X-Forwarded-Encrypted: i=1; AJvYcCWBBo23enpXA9waK0BdhYtkW6gQOGYGYZtRWQ1SyV+agfVk7a3vzcoRwNNtxWnhCoDpLDszWG9syUA5/TsMAUXy0eESipopeRdagPJ85bQnZZ7LjI46jwbD1NXNGkz8YdW/889yPxzm/l4= X-Gm-Message-State: AOJu0YxITrh8lPwOpBUpQpPcOMsRTOeu0cLfc3M3qEc4cfw6bkG+oE4y 0q3ua8vcBki1hxvbihCndzw+AhC97IC5Sn0Yg+jERzRIW/vZs0F+lowfflVuYa9anDCDv7U0/sl d0kf6FXYMEpZMDA/RKJuWbrhi/gw= X-Received: by 2002:a17:90a:a891:b0:2c0:29d5:3515 with SMTP id 98e67ed59e1d1-2c2bcac8c4dmr3100559a91.3.1717783283768; Fri, 07 Jun 2024 11:01:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240607-trimmer-pummel-b452ed15e103@spud> <20240607155704.GB1242@pendragon.ideasonboard.com> <20240607-celibacy-contend-c4a6be15804b@spud> In-Reply-To: <20240607-celibacy-contend-c4a6be15804b@spud> From: Adam Ford Date: Fri, 7 Jun 2024 13:01:12 -0500 Message-ID: Subject: Re: [PATCH v1] media: i2c: imx219: fix msr access command sequence To: Conor Dooley Cc: Dave Stevenson , Laurent Pinchart , linux-media@vger.kernel.org, Conor Dooley , Sakari Ailus , Mauro Carvalho Chehab , Andrey Konovalov , linux-kernel@vger.kernel.org, Naushir Patuck Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 7, 2024 at 12:55=E2=80=AFPM Conor Dooley wro= te: > > 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 the= ory > > > > is either that they noticed the sequence was wrong while adding som= e > > > > 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. > > > > 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 have two different platforms which can use this sensor. I can try to test it this weekend and I'll report back my findings. adam > > 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.