Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp618392rwj; Sat, 29 Oct 2022 08:12:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pLUNGjySg2pYEk1kTke5Gvu7HP69DYQabHVLow04a5MLt1XN7Q9VLzCJMM70Goe4dRHAc X-Received: by 2002:a05:6402:3510:b0:461:f781:6dfe with SMTP id b16-20020a056402351000b00461f7816dfemr4550070edd.272.1667056348304; Sat, 29 Oct 2022 08:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667056348; cv=none; d=google.com; s=arc-20160816; b=ypaGh9R+SEojJYh6XUMy/7xc2XFeUbnsqOc9yvy9zmo6UXyeZp9VjjrLWiCr3j3Ksd ciYji765yHC9rn+s3Ync/aH1OhXfVvQWBUDsjjR1iChHM2M2iYNh7H+Nt4WkO+ono486 Ylc0rBSdxDBTIXU8JS36eURmkRudSSr830HpjlWQdSi/PeCgIxCNWjS4f2b+V+TJ7JFn 6NcF2PrrWTv0YUTk9WffGE917M+ScOK6pECWVuXpH1lpiGEKeCWhg1AmFu1pN2vHdd+A pdunjHfQjVPBTMGy2szFP5/TqDS9ZOwlWbdWtkvRKKUqPxnTA7Ra498YLODMq9NDRncL 2R5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=VUJWfcyx+1xZ/ZH/EWATibjYUsig261bHYIn2TWBZCo=; b=dFIS1MyACMLl6TRTfreeJw1rV4DV/xzm/yLfNi4DT/MCgYIuRJCmbMJ0WHyWBdls9p HCT8PduLeno1txBTXTPTUCo6SmYt7+tbS71U7sgPGVVypfaSVtE3OIZUfUriSHIRL9o6 QsJ6K+uoIw0zRihePn8OOApLWML7hCiDrqQyK9Gx8QXTbKph6y7LYyKHfOzZAnPnTgMM DgzfiS5ODDC+9RDdHFLmoCxJcn6We6Y/nJx7TFCXfpXDJ+ioj3yLnYc/4tL8P2L3zWSd x+s7oAzQff/vO92IiTrb35VrsgefLIITQZF00jIx4SLXOJ6HV2oDF0kTQjU0GdRqTFlX 48eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AmVhVKmH; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a1709063e5200b0079330b37fb6si1279117eji.880.2022.10.29.08.12.02; Sat, 29 Oct 2022 08:12:28 -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=@kernel.org header.s=k20201202 header.b=AmVhVKmH; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbiJ2OMA (ORCPT + 99 others); Sat, 29 Oct 2022 10:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiJ2OL6 (ORCPT ); Sat, 29 Oct 2022 10:11:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C5F5C348; Sat, 29 Oct 2022 07:11:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CD8D4B80D08; Sat, 29 Oct 2022 14:11:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8027AC433C1; Sat, 29 Oct 2022 14:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667052714; bh=wz/h6dr+QYw1eRU23/S78W78RXHZrsOEIPGSF2r+IVE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AmVhVKmHyezccuRTl0ozfAmIFvKmGy9ORk6HnQoFl7AhIIoySnwomu377aFatvBqI NwrsLVcLvsdWa3SguzzqI5VDyCMz8g9Tl9TZMQvlP2q3TxsoktI/TzIi+wCIJGkN11 BXbpgcG8m5N/6NyN+mMuIfQpjvnfMf1pvG66pNPJ5MOlqd2ifQY47hJbjy2pTo3rv7 X5I5MSWKKhHeIPbPQMF0NXKXTRLaHWWL03CiOdNuIWnDEEU/B4k1bzmQZqAphMO5Dz mMU6Y7nTONfCr5/Qp7uD/A7Dw8ql6qLTT2hd/XmOPHhBeNIadl/mzqA2Z1xy8hcrkI +3iOukEdh66PQ== Date: Sat, 29 Oct 2022 15:23:48 +0100 From: Jonathan Cameron To: Matti Vaittinen Cc: Matti Vaittinen , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Dmitry Rokosov , Nikita Yushchenko , Cosmin Tanislav , Jagath Jog J , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/3] iio: Support ROHM/Kionix kx022a Message-ID: <20221029152348.31c36f1b@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, 24 Oct 2022 15:37:57 +0300 Matti Vaittinen wrote: > Add initial support for ROHM/Kionix kx022a accelerometer Series applied with minor tweaks as per individual replies + Andy's RB found and added. Applied to the togreg branch of iio.git and pushed out initially as testing to see if 0-day can find anything we missed before I make a mess of linux-next. Thanks, Jonathan > > About the HW: > KX022A accelerometer is a sensor which: > - supports G-ranges of (+/-) 2, 4, 8, and 16G > - can be connected to I2C or SPI > - has internal HW FIFO buffer > - supports various ODRs (output data rates) > - support detecting special events like double tap or motion > - can be configured to wake-up system when events are detected. > > About the series: > > This series adds support for only getting the accelerometer data and > configuring the G-range / ODR via IIO. Motion detection or double-tap > detection are not supported by the series. The other quite important but > still missing piece is the runtime PM. Nevertheless, the driver should be > usable and brings the basic support for getting accelerometer data. > > Changelog v5: > - KX022A: styling/print fixes. > - KX022A: fix race for requesting IRQ/populating user-space > entries. > - KX022A: fix few variable types > - KX022A: drop unnecessary udelay() > - MAINTAINERS: Change myself to be a maintainer. > > Changelog v4: (More detailed log in individual patches) > - KX022A: mostly styling/print fixes. > - KX022A: fix return value from IRQ thread handler. > > Changelog v3: (More detailed log in individual patches) > - dt-bindings: fixed as suggested by Krzysztof > - KX022A: multiple fixes as suggested by Andy > - Fair to mention that couple of suggested changes are > not done (Some styling, boilerplate text in KConfig) > as there has been no consensus whether the suggested > changes improve situation. Ultimately the decision > whether these changes are mandatory lay on the > shoulders of the maintainers... Sorry for that. > - Enable the FIFO without module param now that the "FIFO stuck" > issue can be prevented. > - Fix potential race with time-stamp calculation when user-space > invokes the fifo flush. > - Drop the already merged regulator patches. > > Changelog v2: (More detailed log in individual patches) > - dt-bindings: fixed as suggested by Krzysztof > - dt-bindings: support both INT1 and INT2 > - KX022A: multiple fixes as suggested by Jonathan > - fixed SPI driver after some testing > > --- > > Matti Vaittinen (3): > dt-bindings: iio: Add KX022A accelerometer > iio: accel: Support Kionix/ROHM KX022A accelerometer > MAINTAINERS: Add KX022A maintainer entry > > .../bindings/iio/accel/kionix,kx022a.yaml | 65 + > MAINTAINERS | 5 + > drivers/iio/accel/Kconfig | 21 + > drivers/iio/accel/Makefile | 3 + > drivers/iio/accel/kionix-kx022a-i2c.c | 51 + > drivers/iio/accel/kionix-kx022a-spi.c | 58 + > drivers/iio/accel/kionix-kx022a.c | 1142 +++++++++++++++++ > drivers/iio/accel/kionix-kx022a.h | 82 ++ > 8 files changed, 1427 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml > create mode 100644 drivers/iio/accel/kionix-kx022a-i2c.c > create mode 100644 drivers/iio/accel/kionix-kx022a-spi.c > create mode 100644 drivers/iio/accel/kionix-kx022a.c > create mode 100644 drivers/iio/accel/kionix-kx022a.h > > > base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780