Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3559003pxj; Tue, 11 May 2021 07:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH2yFoBuOiAST0lJK572AA5+TtzpcqbJBM97sfKqW08AK59ERIIX0uMdT7r16F6KLP+04L X-Received: by 2002:a2e:9dc5:: with SMTP id x5mr24755398ljj.147.1620742276795; Tue, 11 May 2021 07:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620742276; cv=none; d=google.com; s=arc-20160816; b=nkf0zNjMK/jFG06xsGXRjpJE2xDV9p7EluFFXBzD5+a1KDTkHiPVTLDBi7nvTGntO/ 3qzZ2U1cYpjTRrHhvHc1g9bmr5wG4NMSOuzM5xj3MCquPiQBqDxb5pDs1EpvCIBdBDR2 cjibHOSu7x6IwQQeueaS3tBcfeMyVh1BaB4NoN7Gni1WUvpwHnUM/3N+qltrw3fhax4K b35QtWCpQ3W4o16BDf6ERktJ0YaP1/J7X2EJWvZIkCFqbrEph66heobsXWzpG+KVqayl HfYaxkCWORSnvlTL/Wq6z2zIN3BOzWUit2G7Sv234O0fC8xrLsR5OymoyAsq5IqJwBFM oCaw== 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; bh=vm+4aCBwuyCVbnNFGkTuKG4lh1WnGun0yM/+EuvF1d4=; b=MYl/Y2Dw6025bscXNGTgX9ANsCNWTl1RFSsI70W/WzZs4LCoEXZLJkU0ZVcjz8zaBo Y+Jj17BR5ztNGGYSzQDqH4ehgFAFKNyfaJuxtC/tM+SByUPVfInNE841UjOxYGSM7uPS CgpVZTQy0s+Lbn+ZpmsjRrTmp+NqJd4OzzAcJ0223mUnID3nVs7fLhPH34QkMjAEZHJp CmmgNkRA763E7xxrNkl0ESYHT3rdzhqbjDTP2XGRFSVPoiB0+6tx28v3UeMUZ251sE1n LAg3Pq/pMUtN0iSn7t9rtq1yvEAUS6/1sLWiXYTz6hl71XcEKMaT3Va5azIfhlqhG133 lccQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si22679900ljj.546.2021.05.11.07.10.46; Tue, 11 May 2021 07:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231741AbhEKOKS (ORCPT + 99 others); Tue, 11 May 2021 10:10:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:48356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbhEKOKS (ORCPT ); Tue, 11 May 2021 10:10:18 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63F81613F7; Tue, 11 May 2021 14:09:07 +0000 (UTC) Date: Tue, 11 May 2021 15:10:14 +0100 From: Jonathan Cameron To: Hans de Goede Cc: Stephan Gerhold , Lars-Peter Clausen , Rob Herring , Robert Yang , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Srinivas Pandruvada , ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH 0/3] iio: accel: kxcjk-1013: Add support for KX023-1025 Message-ID: <20210511151014.3d9d6768@jic23-huawei> In-Reply-To: <91258724-09cc-ed39-2277-6fbcca0c53e9@redhat.com> References: <20210511095409.9290-1-stephan@gerhold.net> <91258724-09cc-ed39-2277-6fbcca0c53e9@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 May 2021 12:44:23 +0200 Hans de Goede wrote: > Hi, > > On 5/11/21 11:54 AM, Stephan Gerhold wrote: > > KX023-1025 [1] is another accelerometer from Kionix that has lots > > of additional functionality compared to KXCJK-1013. It combines the > > motion interrupt functionality from KXCJK with the tap detection > > from KXTF9, plus a lot more other functionality. > > > > This patch set does not add support for any of the extra functionality, > > but makes basic functionality work with the existing kxcjk-1013 driver. > > > > At first, the register map for the KX023-1025 seems quite different > > from the other accelerometers supported by the kxcjk-1013. > > However, it turns out that at least most of the register bits > > still mean the same for KX023-1025. > > > > This patch set refactors the kxcjk-1013 driver a little bit > > to get the register addresses from a chip-specific struct. > > The register bits can be re-used for all the different chips. > > > > The KX023-1025 is used in several smartphones from Huawei. > > I tested these changes on a Huawei Ascend G7, someone else reported > > they also work fine on the Huawei Honor 5X (codename "kiwi"). > > > > [1]: https://kionixfs.azureedge.net/en/datasheet/KX023-1025%20Specifications%20Rev%2012.0.pdf > > > > Stephan Gerhold (3): > > dt-bindings: iio: kionix,kxcjk1013: Document kionix,kx023-1025 > > iio: accel: kxcjk-1013: Refactor configuration registers into struct > > iio: accel: kxcjk-1013: Add support for KX023-1025 > > Thanks, the entire series looks good to me: > > Reviewed-by: Hans de Goede > Other than those things 0-day found which would be good to tidy up for a v2 looks good to me. Thanks, Jonathan > for the series. > > Regards, > > Hans >