Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4138189ioo; Mon, 30 May 2022 19:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNDm3k4NZjKCebYNHEvXDgfExJQJ0eJbBRsfJZOL20BrTGj3rYtXf8rCrijfpwghaDPcQa X-Received: by 2002:aa7:d557:0:b0:42a:c6a0:7c28 with SMTP id u23-20020aa7d557000000b0042ac6a07c28mr62720240edr.426.1653964380799; Mon, 30 May 2022 19:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653964380; cv=none; d=google.com; s=arc-20160816; b=h7jVpwiaXO5RT8o+5dEoYzlY05LjTllOmmeOtDWaGqJG5Q1B6OuRNrKyvWubTa3LZA z1DDbGpZt1dpxrmXnwcby2ajhMWmh7B4vPZkZw9q+k/pS0M95yPB9IBBiUWsmLvfzr99 G7xZzt5p3+OQYNLCC/lLMtw2mlQ5j4392irdxkZkyU/nzW49xjVEg7y4aHXCimVDUKNf g1Ogr1Jd0sxIGMl0xxnm/GXfxgZeUt6c4oQCeaeuiF3QGPJeSwC93RQkmFy0tz4NJgIt cZeN/BgmkEO9t7d67SppNgoUsGbMHzGqn++eAM7iZdMgGB7Nn0l40esQWtQMT1LJ34N3 gi5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TD1gul0/mySriBMlbavF8TDIj7HBySCjFvjhT5CkpAI=; b=eTkqQdOYvO265gRDViiBzS0WXbKZWo4YjE5Qq59xUr7VBW2wyDywhdcOiCIQJ2CGgY kWWQtlGeHFTzU0sFUufoVpvU0xNzhOOLdLO3EqRfwuiRNEx1GoRnRtOIp3Z4Y43eYU/K pklMb9VpvfUFMd2m267u6Tc8MLPmQUXOq/1Vvh8aKIbo1HwGtvYuGUqgGyyFhUe+MRc3 KpUP/+RN2mOEYspQ0mXhWlVsPQ2/ylGTq06HvSIb4WBjT4hqh57kRiSIy4NYHuJb9OJx 4eHX32WPIMKozXANSY+Te60gF43hIINNOgMl+G+kGA4DzQA0cPQJpgxDluHBx1j65zzy YzFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E4NeLIXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a508acb000000b00420fff231a3si12397120edk.160.2022.05.30.19.32.32; Mon, 30 May 2022 19:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E4NeLIXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234429AbiE3I5g (ORCPT + 99 others); Mon, 30 May 2022 04:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234068AbiE3I51 (ORCPT ); Mon, 30 May 2022 04:57:27 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99EFB2019A; Mon, 30 May 2022 01:57:26 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id n10so19506710ejk.5; Mon, 30 May 2022 01:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TD1gul0/mySriBMlbavF8TDIj7HBySCjFvjhT5CkpAI=; b=E4NeLIXUzy/oYrWhje+yckD5m3Cvg9Nutcnye2lGtVE9fDESiEvsbjMVwEoAkiWm63 X9/JI0qcEdwlkQE49PF8gVLKtHAFlcxhXgYmQ2RUH8axqc+IdbxaphuzPOAfdUd6sj+W CgzqWuuhjkjrrqxplc3f2zznaLwnr5no7wLIBByQpy4x1lRaILtH4WmpPUmNxRzd2oSM rjfRICjLZiOSJFvJPvH4hPe7xdWta+3tcEdvHXan0wXHV40QHv/48O6imEYHNM73+P8n ca9jEuxcDMY086umYZDarQrxOSs3qjd50TGNQ5xGrmzMoKhZqRk8IpxlCfKDci1uez1V 6tLA== 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=TD1gul0/mySriBMlbavF8TDIj7HBySCjFvjhT5CkpAI=; b=b9tKsKDxg8VS3avdoZjej+/24on/PPV/bWJ6mkAOXWFeh9VrDXUHMX5B3uoyp9/b6+ fQ3XFsRxs/CrjHOJtUdy5evjQOMcDbkA8UnZjVGYV2FroGbNSbWpGtbouirbQb3iDkGJ GsqpHWgLJZ0mN2NlbCSfbKankA7aohQ82TydgIgHHGWdGR8bT8sfyu2I0yi5sHB7ROfs Na9A6Q82SP1tdR/fNayT5LksAdk5kYXbnRnH+yHKpFYeqt3kcObI0kMMsGYqnJlOzZnf EfTMuzpEq/AigNJpUVf/tsDZb5WCwzwAPZgOAhh/c5W3P6xqHw9u7mFhHZaPBLJBOj4Q skcw== X-Gm-Message-State: AOAM533Uny47/VWc9nrUEqwSz9WcwZO8NodaLGMcjT+1UQkHMYav3B4I vVLO/B9QBdoZvQE1PM25Ztsc7xl7z9Pp6huUTt0= X-Received: by 2002:a17:907:a088:b0:6f4:f661:f77a with SMTP id hu8-20020a170907a08800b006f4f661f77amr48081294ejc.77.1653901045047; Mon, 30 May 2022 01:57:25 -0700 (PDT) MIME-Version: 1.0 References: <20220529040153.4878-1-jagathjog1996@gmail.com> <20220529040153.4878-3-jagathjog1996@gmail.com> In-Reply-To: <20220529040153.4878-3-jagathjog1996@gmail.com> From: Andy Shevchenko Date: Mon, 30 May 2022 10:56:48 +0200 Message-ID: Subject: Re: [RFC 2/2] iio: accel: bma400: Add support for single and double tap events To: Jagath Jog J Cc: Jonathan Cameron , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 29, 2022 at 6:02 AM Jagath Jog J wrote: > > Add support for single and double tap events based on the tap threshold > value and minimum quite time value between the taps. INT1 pin is used to quiet (see below as well) The INT1 > interrupt and event is pushed to userspace. an event ... > +#define BMA400_TAP_QUITE_MSK GENMASK(3, 2) QUIET ? ... > + /* > + * No need to change ODR when tap event is enabled because > + * tap interrupt is operating with the data rate of 200Hz. > + * See datasheet page 124. When referring to the datasheet, please be more specific, i.e. table / chart / section number and name, No page needed as it may be changed from version to version, also date of the document or revision would be nice to add. > + */ -- With Best Regards, Andy Shevchenko