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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 6E835C433B4 for ; Thu, 6 May 2021 08:27:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AEDA610EA for ; Thu, 6 May 2021 08:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233479AbhEFI2M (ORCPT ); Thu, 6 May 2021 04:28:12 -0400 Received: from first.geanix.com ([116.203.34.67]:47378 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233891AbhEFI2I (ORCPT ); Thu, 6 May 2021 04:28:08 -0400 Received: from [192.168.64.199] (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id 3A2A0467C25; Thu, 6 May 2021 08:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1620289628; bh=//Z7QSYFe89qmzEOOdF57u6MoCot6w+uhLhiiJmaCdA=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=QEEFAbNhT8CJDJvzSVsOXP2cpMhPLfVaTT1DODo4m02DyPu28aSBfRf3qGu49f3ez +QalPssL9DOIIZOk6FD6Aaei8BU50lWNTz4TNydUywmIvO+EI7dTdBei/Cpy//xQTx 6w/6LbU6ee7/87iIob+6bQigb75WDz8W7BUZn4o4o0USAoWgT3DeEWrxm/oLf76rYG aS8OmKpIleKzhFDo6ze0YD3B66tm/6yV/djxX47rtY5ib7YGh1Lis6OGA/WuQh4voP 5GNU39IPq9E9Gt1FW9bNmG6FUazzIttbTO8Irr7gmBMPDC0KRPkHytuTiRJ/ZYpadh lGatngvGbbhvQ== Subject: Re: iio: imu: st_lsm6dsx: sample rate? To: Lorenzo Bianconi Cc: linux-iio References: <1b645b15-f866-ee45-1b92-8dd32340409a@geanix.com> From: Sean Nyekjaer Message-ID: Date: Thu, 6 May 2021 10:27:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On 06/05/2021 10.22, Lorenzo Bianconi wrote: >> Hi, >> >> Any specific reason to why the 12.5Hz sample rate is implemented as 13Hz ? >> > > Hi Sean, > > what is the device you are referring to? I guess now all devices support > 12.5Hz. > > Regards, > Lorenzo > At least the two devices we are using. ISM330DLC and LSM6DSLTR, they do not support 13Hz sampling rate, but 12.5Hz. I think we should expose the correct 12.5Hz to user space. Should do a patch? (It could potentially break some implementations) /Sean