From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3275C433EF for ; Mon, 20 Sep 2021 17:57:54 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B0446138E for ; Mon, 20 Sep 2021 17:57:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2B0446138E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:36724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSNY9-0005wo-AR for qemu-devel@archiver.kernel.org; Mon, 20 Sep 2021 13:57:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSNQz-0002PX-1Q for qemu-devel@nongnu.org; Mon, 20 Sep 2021 13:50:30 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:46814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSNQx-0000Jq-BF for qemu-devel@nongnu.org; Mon, 20 Sep 2021 13:50:28 -0400 Received: by mail-wr1-x42f.google.com with SMTP id x6so32034142wrv.13 for ; Mon, 20 Sep 2021 10:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5D9/hUbpfe3lho7FRbFeFDvVKgG5nQoCZQRHdvl9JcE=; b=vEJKU0r04sA7tfz8TL+7C4afPyd8F5wV1iAkudSsJAWoGJpozlrxSyFwxRdrSAs7Cn /Auna+I0wxwIK3UcOKiqxrHbksgTArg01YqALNpPsTi6oHXlNilrqLdj+iXJGmGQJfbd dhIbdkpGZo1sA+2dvGzAP8jDdk6Zef5c1zR8r1HbYqSBogtkN8gc5Oetna+RhJtNNA6V khrCsgi12p2Mp9S5V8eDZEpOVIAVz24GiyO4sINw308wXPAZtKE8Te/rbaDysNJME3zl 4Ii7lD5UeeNHCywEk6UTJki1DHGZyGvnXgeY9JZZ+5hxbyj6cRzhPFLDcrkyc3pir8+G p0ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5D9/hUbpfe3lho7FRbFeFDvVKgG5nQoCZQRHdvl9JcE=; b=xYmnbmnOHpLmIumKptbvHilSp5n8THluvMzTH2eO/Ow7krtM0V+WwXpw/aj7wxyNyn Nq3poumOXJ3xbZfVP8ptdFaybSI4g4/TUkZdWU2kSI4mksVXGb3LrYBMHAjNp1Z6Y6vA zVguMrUGWP8tQ/PK+EJ7uv987NHDSpL0T04Vdlh8zLvpg1ag/oa+53/JBvA5nXaGCmK6 DpBowkmJrkKUBg2joP+iErm58jh77Tqp96WNlY5S03B9FKVJ/4W0TaaB1lSBKc/hibcO pQ921EiDpOcCMTMOeCFsjjCNx+fWMpAgycJJfDsNzOeDXih/KKJcDmGhEz9wTVBuEZLs vPHQ== X-Gm-Message-State: AOAM533osoxrb/Ax0O6RwxoD6Un/llCDdAnp/vPlRhIZiNgLbV9jnJVQ hOoEtlVGjXJoWgXzS7eh3T1fT4eT2vRLpVNkjwh4uRbFaQI= X-Google-Smtp-Source: ABdhPJzB88DRf4W0iTYeQWNqhuve2SFSe1olU1YvMTIsf8Lrp8ShwbxWHft7XY7y0BcqeG6dsjHCrV/b7w7RyoEjYwI= X-Received: by 2002:a05:6000:18a4:: with SMTP id b4mr21457343wri.288.1632160225344; Mon, 20 Sep 2021 10:50:25 -0700 (PDT) MIME-Version: 1.0 References: <20210815162738.75461-1-kevin.townsend@linaro.org> <20210815162738.75461-2-kevin.townsend@linaro.org> In-Reply-To: From: Kevin Townsend Date: Mon, 20 Sep 2021 19:50:14 +0200 Message-ID: Subject: Re: [PATCH v2] hw/sensor: Add lsm303dlhc magnetometer device To: Peter Maydell Content-Type: multipart/alternative; boundary="00000000000072d54c05cc70eaa0" Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=kevin.townsend@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --00000000000072d54c05cc70eaa0 Content-Type: text/plain; charset="UTF-8" HI Peter, On Mon, 20 Sept 2021 at 19:20, Peter Maydell wrote: > > Is 0.001 uT OK to use as a starting point? I think that's enough for most > > sensors I'm aware of. > > The thing is that the starting point is also the finishing point: > once we have released something that uses a particular set of > units, we can't change it in future without breaking backwards > compatibility. So we need to get it right now. > > I think 1000 = 1 uT is an appropriate value. In theory we could also just indicate nT, but that's just a weird unit and everyone thinks in either gauss or uT with magnetometers. 1000000 = 1 uT just feels excessive and outside a sensible range for any sensors I'm aware of. That this matches temp sensors is an added bonus. Kevin --00000000000072d54c05cc70eaa0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI Peter,

On Mon, 20 Sept 2021 at 19:20, Peter May= dell <peter.maydell@linaro.o= rg> wrote: