From patchwork Tue Jun 18 12:59:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 11001579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB3C11398 for ; Tue, 18 Jun 2019 12:59:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC8AA28A80 for ; Tue, 18 Jun 2019 12:59:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D102228A29; Tue, 18 Jun 2019 12:59:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5EE828AA2 for ; Tue, 18 Jun 2019 12:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725988AbfFRM7y (ORCPT ); Tue, 18 Jun 2019 08:59:54 -0400 Received: from first.geanix.com ([116.203.34.67]:37306 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfFRM7y (ORCPT ); Tue, 18 Jun 2019 08:59:54 -0400 Received: from zen.localdomain (unknown [85.184.140.241]) by first.geanix.com (Postfix) with ESMTPSA id E30CDB0E; Tue, 18 Jun 2019 12:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1560862786; bh=8IWt/p/yksJ+AzH167bNBHR96XlZdJ9BCx8ESwMzIew=; h=From:To:Cc:Subject:Date; b=TPS5jyyGKkYi/Sj8AKQtez2CiLwlTKsLqC+thfmoqg3UBMkKPXxrT3V0jlbDiB8eX bMvVliOa3ofY20JlUPF6tA4EnmG3dnf5sR4N+wFLnMZUODMyxqvxFNwi+lbmVLtQwV 9+lijQBroxG7kre7yRKOz6Cc9LYTfNpAT6Vcuco1+UHxsgHq4Luy1T3srL8H4Okl9u XWnko80vm+kU+FNeR2aDk51+0j9ecu2TlEVJDEtffZVhqrTwzk1aBVjdtjwvbDg7xS hyYcYiYOwAXM7XHA9josmCGZurBV7qqJ+AKiLsl9BF3Q24Wgo+sW5IWKhN7BmOPWzt NccQkNa8Ij74g== From: Sean Nyekjaer To: linux-iio@vger.kernel.org, jic23@kernel.org Cc: Sean Nyekjaer , lorenzo.bianconi83@gmail.com, martin@geanix.com Subject: [PATCH 0/5] iio: imu: st_lsm6dsx: add event reporting and wakeup Date: Tue, 18 Jun 2019 14:59:34 +0200 Message-Id: <20190618125939.105903-1-sean@geanix.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series is completely reworked from the RFC, I hope I included all comments. I'm now using the iio event system to report events while running. :-) Wakeup is controlled via the PM framework, wakeup is only activated if the event system have been activated before suspending. /Sean Sean Nyekjaer (5): iio: imu: st_lsm6dsx: move interrupt thread to core iio: imu: st_lsm6dsx: add motion events iio: imu: st_lsm6dsx: add wakeup-source option iio: imu: st_lsm6dsx: always enter interrupt thread iio: imu: st_lsm6dsx: add motion report function and call from interrupt drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 3 + .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 80 +---- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 302 +++++++++++++++++- 3 files changed, 301 insertions(+), 84 deletions(-)