Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1034728rda; Sun, 22 Oct 2023 23:25:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYaPU4p26cd41XG2rSsqTB3Hy0KKPysxvTzzeygco4FMBx3WzD9F3Ibq/ofRaEMPZywi9C X-Received: by 2002:a67:e1d2:0:b0:452:60c5:20b with SMTP id p18-20020a67e1d2000000b0045260c5020bmr6632865vsl.15.1698042300805; Sun, 22 Oct 2023 23:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698042300; cv=none; d=google.com; s=arc-20160816; b=bj1aTWTLb1v8Peu6Os9vAHsnHplAA16bSrOuIzUCFka+3UACL25GKJY1hZf9QVhYCh 11FiFHbMDzm0AfY2H229MlMQGIqpKKJk3s8DlzhnzHraAX4i9a5l6MxIcJ02+l+YB7tl V3vDLbn27TlZQhqGkeYminoQizxQjF7GWjC7H/lwl3hH1eyoB7d2iAl5LhIjEzlS0z1Z /VOpCqZMI+xKkTHiKliKZ6d3nw+mUAqsq01ruQHpoea1MXzza7nii8Omz4ECpGrTf3Qd 9aQE/016/E+zpawL3OZd12pDTkK2nGJKjB16Q525LwLJ46fAFfewxLE5bx77jJ5R8Aye 1BHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=u63ePI/ecrbvy23ZluOCFzJyp4YA/m/rdW6t9+hNFxA=; fh=AQEG9nX3csSazH0LPztSV+kmZ0LNp4lwrftv731KsrA=; b=SesoqsqE4Y3kjLG3ypEdSexc6rGNxVawSM7oxT2Ex4D4ok97L+UPxu4dazK7cgE8wX jFZR0bt0QpPqTHhCPI2t5X1uOJ7YcNiCZIVkzBV2B0hdJUFOX4jfKlnqPim+N88to2Pq HwdL3JWilnbFNFBZ92AywROQq4LWoBuhFcx3LlDXjbS9OborYkfcioY01cKTKJNgktEg oUejtMWsXxbhVWw5IQ6VbGq+EzDQ97vrUwV+3K6iYvdjdJl7mpaNXgk4HkKODG0ZnHvz 2vSc8SjPzwx+I9mOcMPJzIrCbrbfysOEeAKpHBx5Xh9NOtQhhHxCqiE7oNAyemChBuke jrIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KUwRT3xj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l1-20020a056a00140100b006be062ed5c6si6055590pfu.276.2023.10.22.23.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 23:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KUwRT3xj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9D8718068226; Sun, 22 Oct 2023 23:24:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbjJWGYr (ORCPT + 99 others); Mon, 23 Oct 2023 02:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233346AbjJWGYp (ORCPT ); Mon, 23 Oct 2023 02:24:45 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08D9DF; Sun, 22 Oct 2023 23:24:43 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c50ec238aeso41401951fa.0; Sun, 22 Oct 2023 23:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698042282; x=1698647082; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u63ePI/ecrbvy23ZluOCFzJyp4YA/m/rdW6t9+hNFxA=; b=KUwRT3xj+9dDAFf+KqLGBpV0UfgTjQuojprHAzTnzjKAOMdhcjRfQRiLIYDbdOEcXz RtfexO6dzqCTIMBbWNRNwn+zOaCZvURSb15vlWajGgDwWAHNoR4ltpDFvCGz4g3sxSUE ZIeuxg2tY+SECqZnHqE+Kl2vve8x57wY2OsHoc08LDlbWZXbsPE7C1vcyH2G/QTKIOJL +TZd+sGKT8/YtWeb6+J3phlhr2s6TytLWN2n3NcFeloZJcdmTW/YRbiz/n9fqiF9J5HR xZzSA3QobZpbq047SACOMzcFZ+z3/BohnuSKrfz/71WLkQtlkaVuJYaKkHrJ5MBmEQXI xIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698042282; x=1698647082; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u63ePI/ecrbvy23ZluOCFzJyp4YA/m/rdW6t9+hNFxA=; b=LhfxvJR0fPpuh3zmKzS3DeRtHrAPU4fbvnBgN2LHL3LgiBNKUAGoMymyE+Jwwuv6AF 4R6UUtSmjKSiy+Xnel91aSM9tlksXPCqV7rGKH6WS3e3vk1FMKyl8pA1t+HLkyD4M3cg K5duXmrbNd+jo2A3ZCRpr/KlMOsMQdo0WogFkVN6umFOIJjAZb1WHwxmw5PZS7s8sAbx hBVfie1mWfQYYTrQqiGSD/R1cLAupN4DsY+EOS+CLrNwYpeGuxecdbcvLwkrVtGre6QO c/TbVRRXdIUX1NZLITTaox8Cfm/XLfbwQB1RoAuMFwRisTSntGuBBi0q4HFmpQnfrGK4 NcgA== X-Gm-Message-State: AOJu0Yw6gqYKuBwL4k3gDY3KPEy1jHIfFTueyzGwyjhGd0bsA76we1pj SVCvm2v5OZtrLQMua9ueYd/VR1W5Txiy4g== X-Received: by 2002:a2e:b0e3:0:b0:2c5:1900:47a4 with SMTP id h3-20020a2eb0e3000000b002c5190047a4mr5402725ljl.0.1698042281688; Sun, 22 Oct 2023 23:24:41 -0700 (PDT) Received: from ?IPV6:2001:14ba:16f8:1500::7? (dc78bmyyyyyyyyyyyyydt-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::7]) by smtp.gmail.com with ESMTPSA id w10-20020a2e160a000000b002c032e54948sm1513805ljd.117.2023.10.22.23.24.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Oct 2023 23:24:40 -0700 (PDT) Message-ID: <77b5f4a6-4012-4409-9034-419b852a783f@gmail.com> Date: Mon, 23 Oct 2023 09:24:39 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] iio: kx022a: Fix acceleration value scaling Content-Language: en-US, en-GB To: Jagath Jog J Cc: Matti Vaittinen , Jonathan Cameron , Lars-Peter Clausen , Mehdi Djait , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Matti Vaittinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 22 Oct 2023 23:24:57 -0700 (PDT) On 10/20/23 19:48, Jagath Jog J wrote: > On Fri, Oct 20, 2023 at 5:39 PM Matti Vaittinen > wrote: >> >> On 10/19/23 21:21, Jagath Jog J wrote: >>> Hi Matti, >>> >>> On Thu, Oct 19, 2023 at 6:54 PM Matti Vaittinen >>> wrote: >>>> > >>>> 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 :) >>> >>> Values are correct with this change, Thank you for fixing. >>> Tested-by: Jagath Jog J >> >> Thanks a ton for testing! May I ask which component did you use (or did >> you just use some 'simulated' regster values?) > > Hi Matti, > > I just simulated with the register values, Should the 'tested-by' tag only be > provided after hardware testing? I am not sure TBH. I didn't have a problem with your tag though, I was merely curious to hear about the IC usage :) Now that you mentioned the tested-by tag usage, I started to wonder it as well. From pure SW/driver point of view the register value simulation is sufficient - but in practice we are not interested in whether the code works "in theory" - but whether the products do really work. This is something which includes handling of potential HW quircks and oddities - which are not always documented or known. If we assume a case where someone is developing new gizmo and hits a bug which is in reality caused by some undocumented HW hiccup - then fixes with "tested-by" tags which are not actually tested on HW having this hiccup but using SW simulation - may be misleading. The above is just some overall pondering - I am not too concerned on your tested-by tag :) Besides, it's cool you did the testing! I appreciate that! However, I wonder if there is some wider consensus whether the tests should be ran using real HW when tested-by tag is given. Jonathan, do you have any educated opinion on this? > I referred to this driver because it's > the most recent accelerometer driver that was merged. Makes sense :) Thanks for replying! Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~