Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1162518rdh; Fri, 27 Oct 2023 06:34:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH7/SGCkPciHEjH8+gcL5K28yNSMCtRcOqRWST7NdrPEgiBnPYatCEIoslvPMByrJs//nt X-Received: by 2002:a81:8b48:0:b0:5a8:d790:87df with SMTP id e8-20020a818b48000000b005a8d79087dfmr2502920ywk.19.1698413640146; Fri, 27 Oct 2023 06:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698413640; cv=none; d=google.com; s=arc-20160816; b=lXSlAeDoGaxjSfIZYa4QPGsZJ3DIVTwUzJrM+XKCm0A1HN7B/3dhY+tUvidLKTQarS icyvujuPRmXofqZwlu0/EU4ka5LHKwXQgIeNocefzcghIabFyPfGJjTgkS+47Qa4WLDc Sie+FDjpdo27aSs71xJUNPyboQA6nYI/vG4fnCDtr0bqr2FLOJBy7jnpEvlqOTafhZTo gD3LxqQzbBHIBd06DsTbj3cyQCNx4EmAjV/r4nttfYzeQmExPfZrDho3yUTifSI2rjps 4WHwq7nkvwU0SNwXa1JjktGmNZqgxyZms3vEjenH2hiI+5cb5KQQ5Nw91+oR7EVR3Avc /RHg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=hX8piPfHTC5i/cb+4BC/JxXXs9/iefTHRRhIQSh+F3c=; fh=DiV/JBXixeJwbaU+9vBTXNLGPJ9v6PSbYUYPhKxTY7g=; b=VpNsbpFWE36/PM4tn+CRMi3WceuzcexHwtveipI0JLP/MHVirLDPaXowvqS4aNaFge o8H0JipUwWVg06xkjA5wJVEx6gr2W6QbQFxqhBGJPBJNZqPsIuX2p/CAmLY87uwXhDZZ F0837W3uK7eE7sdVmCOiT7urBnqfj+hhuopmXaVeVfJAmu4Se0osiLTxd5ZPYAse8Xop aIG/1wnt8ojPMqglol6t3a6hbryZzUg6uTVqEuCTqviRnCEH20xkDGEFq0pV1qk2IhGu 32E7sLGPa1/OryzCNMM1FRzVOsuVURN3Yxd0TVhUA10yyzUaZj2i+kKzpPZmttVA28C8 wIfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XazjmrpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id w129-20020a817b87000000b005a7f92dc7efsi2499289ywc.270.2023.10.27.06.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XazjmrpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 64E9D82ACAFD; Fri, 27 Oct 2023 06:33:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345851AbjJ0Ndk (ORCPT + 99 others); Fri, 27 Oct 2023 09:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjJ0Ndj (ORCPT ); Fri, 27 Oct 2023 09:33:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC82DCA; Fri, 27 Oct 2023 06:33:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CCF7C433C8; Fri, 27 Oct 2023 13:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698413617; bh=WWRr7vPyHlc/VMGJypSn1m+NSFr6RCiyf59wCByVhWs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XazjmrpKo4oiA5ps8HBjVd49X8vONrubs+ZFGb0RlTNTNCYLBNjkeLO3xFb4FVhRP ovNRF1Wp9caINQzMe/Pmr5m1hQkld20ynJNWa7DN3dAS5zylBICimP83sx2xYGyLIb 6RWepaBGaPFQ4AWBsUTwClQFy9Dydhw+tuRg8QJkCd1vYPz0R1vTLxfCwAwGuT6Neg xzI8qiytku5rDGimt+CZnh3N0lr9UndHcb7yLl9JcbcGLD5DaidFQU6rhW4S6/am4Z qyZ+9qc3IddggzVxUc7yu8hiI2I4/PdBfxOVqMurFUaClat9mlcdHnIbgp2trieL3/ KfpUpDuQFLOkw== Date: Fri, 27 Oct 2023 14:33:35 +0100 From: Jonathan Cameron To: Matti Vaittinen Cc: Jagath Jog J , Matti Vaittinen , Lars-Peter Clausen , Mehdi Djait , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: kx022a: Fix acceleration value scaling Message-ID: <20231027143335.7faa87aa@jic23-huawei> In-Reply-To: <77b5f4a6-4012-4409-9034-419b852a783f@gmail.com> References: <77b5f4a6-4012-4409-9034-419b852a783f@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:33:51 -0700 (PDT) On Mon, 23 Oct 2023 09:24:39 +0300 Matti Vaittinen wrote: > On 10/20/23 19:48, Jagath Jog J wrote: > > On Fri, Oct 20, 2023 at 5:39=E2=80=AFPM Matti Vaittinen > > wrote: =20 > >> > >> On 10/19/23 21:21, Jagath Jog J wrote: =20 > >>> Hi Matti, > >>> > >>> On Thu, Oct 19, 2023 at 6:54=E2=80=AFPM Matti Vaittinen > >>> wrote: =20 > >>>> =20 > > =20 > >>>> I did only very quick testing on KX022A and iio_generic_buffer. After > >>>> the patch the values seemed to be correct order of magnitude. Further > >>>> testing is appreciated :) =20 > >>> > >>> Values are correct with this change, Thank you for fixing. > >>> Tested-by: Jagath Jog J =20 > >> > >> Thanks a ton for testing! May I ask which component did you use (or did > >> you just use some 'simulated' regster values?) =20 > >=20 > > Hi Matti, > >=20 > > I just simulated with the register values, Should the 'tested-by' tag o= nly be > > provided after hardware testing? =20 >=20 > I am not sure TBH. I didn't have a problem with your tag though, I was=20 > merely curious to hear about the IC usage :) >=20 > Now that you mentioned the tested-by tag usage, I started to wonder it=20 > as well. From pure SW/driver point of view the register value simulation= =20 > is sufficient - but in practice we are not interested in whether the=20 > code works "in theory" - but whether the products do really work. This=20 > is something which includes handling of potential HW quircks and=20 > oddities - which are not always documented or known. >=20 > If we assume a case where someone is developing new gizmo and hits a bug= =20 > which is in reality caused by some undocumented HW hiccup - then fixes=20 > with "tested-by" tags which are not actually tested on HW having this=20 > hiccup but using SW simulation - may be misleading. >=20 > The above is just some overall pondering - I am not too concerned on=20 > your tested-by tag :) Besides, it's cool you did the testing! I=20 > appreciate that! However, I wonder if there is some wider consensus=20 > whether the tests should be ran using real HW when tested-by tag is=20 > given. Jonathan, do you have any educated opinion on this? It's fine to add a note. People typically do this if they've tested on a particular device from a set. So if you want to (entirely optional) Tested-by .... #Tested by simulate register values I wouldn't describe that as a particularly educated opinion though :) Not something I care that much about. J >=20 > > I referred to this driver because it's > > the most recent accelerometer driver that was merged. =20 >=20 > Makes sense :) Thanks for replying! >=20 > Yours, > -- Matti >=20