Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2439008pxb; Tue, 9 Mar 2021 02:32:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNnzJa/2vAvg5KOeC9yXvu0vn/ZjqEjYM+e6Z+1MR58hhLSg3WCnOSXc/VG/r1IUbz1OBL X-Received: by 2002:a17:906:f9d8:: with SMTP id lj24mr19518263ejb.200.1615285931039; Tue, 09 Mar 2021 02:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615285931; cv=none; d=google.com; s=arc-20160816; b=b1db8fxAslw+GseGPeOOI6pr40QlV8w5JAej5iQK26xo+3k8a/Ch7OCtidyqSTpiHc kxUhsiK9HFDCsOlS5yZbbrgpKz2zXdJFYKfl1ePK3mELYTYUkN/i/yjHXtj8zC3R8BtP 1mnwyRwpLsHg2w8F5omZz9vbY7Ss7doBQOjimKlerQ6qBalSV1ay+AO07xAZEJOLy7pe Nxm9Qhk+qlX6DGbabbrMcRTWreujePD/W/VlOXAc/oNYcZopkOgtq2Vo6dWjfeIoGfoA szZLzowtE1n0BVqxuOXKa740zNpgddXoTaQuiHJtrbg/eiW+Rl8r1NfXo3IZV+HGEaaI ggtA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=5LPgTaDrHkM1/F396iUG51Z9t96+8aFyeGSAKn4Fu7k=; b=gpWTQhY1EqC3dM/ZGfp0HXG8IjtiLLM2lbiFxE5S6pYEPY48/A7cg7IeVAGpoB5qpU 0hf2louiBS9voT4raI4nsmyJioQWdojSaXudy87NsJEtbEUox4RQV9UhFm1D1m1PlTvw kzrdSnq4yw1EFf6hDyTnNjCnjvQlouwbqZ3HVOwRDhrXNNCFY8w1Oz2zIQe1bgI9eZRc wrHSaHa516osOp2L2odDV7inb0jDtQLMx79JR6WP+fJUja9NIyNpT6ZY13G6X4H4jnhG /8BRJjmdtSRrLFnaYrsNpqLh8xQevvs7AZSLl7439e4IXeuCRB/EViHTmeKii46uhZXz ba5g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si8588473ejy.531.2021.03.09.02.31.47; Tue, 09 Mar 2021 02:32:11 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbhCIK2b convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Mar 2021 05:28:31 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2668 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbhCIK2R (ORCPT ); Tue, 9 Mar 2021 05:28:17 -0500 Received: from fraeml737-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Dvrqb6PT7z67ww0; Tue, 9 Mar 2021 18:22:19 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml737-chm.china.huawei.com (10.206.15.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 9 Mar 2021 11:28:14 +0100 Received: from localhost (10.47.92.123) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 9 Mar 2021 10:28:13 +0000 Date: Tue, 9 Mar 2021 10:27:01 +0000 From: Jonathan Cameron To: Cristian Marussi CC: Sudeep Holla , Jonathan Cameron , Jyoti Bhayana , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Lukas Bulwahn , , , Enrico Granata , "Mikhail Golubev" , Igor Skalkin , Peter Hilber , Ankit Arora , kernel test robot Subject: Re: [PATCH v6 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors Message-ID: <20210309102701.00004f9c@Huawei.com> In-Reply-To: <20210309073813.GA47884@e120937-lin> References: <20210212172235.507028-1-jbhayana@google.com> <20210212172235.507028-2-jbhayana@google.com> <20210221144616.4eef6a79@archlinux> <20210308042842.e6qr4xxp5tl5ahos@bogus> <20210308194841.525ed61f@archlinux> <20210309063727.a4olkoha5jernvwx@bogus> <20210309073813.GA47884@e120937-lin> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.47.92.123] X-ClientProxiedBy: lhreml739-chm.china.huawei.com (10.201.108.189) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Mar 2021 07:38:13 +0000 Cristian Marussi wrote: > Hi > > On Tue, Mar 09, 2021 at 06:37:27AM +0000, Sudeep Holla wrote: > > On Mon, Mar 08, 2021 at 07:48:41PM +0000, Jonathan Cameron wrote: > > > On Mon, 8 Mar 2021 04:28:42 +0000 > > > Sudeep Holla wrote: > > > > > > > Hi Jonathan, > > > > > > > > On Tue, Feb 23, 2021 at 10:30:37AM -0800, Jyoti Bhayana wrote: > > > > > Hi Jonathan, > > > > > > > > > > Thanks for the detailed and careful review of this patch. Good to hear > > > > > that v7 is not required. Please find below answers to your > > > > > questions. Looking forward to seeing this patch merged in the next > > > > > cycle. Thanks for your help in making this happen. > > > > > > > > > > > > > Any update on this ? Please share the branch with is patch so that I > > > > can pull and ask Cristian to make his changes on top. > > > Running a bit behind at the moment. > > > > > > > No worries. > > > > > Anyhow, there should now be an ib-iio-scmi-5.12-rc1 branch > > > on https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git > > > > > > > Thanks > > > > > Includes making the various long long local variables explicitly > > > s64 and u64 as relevant. > > > > > > Based on the rc1 that eats babies so handle with care :) > > > > > > > ???? > > > > > I've also merge this into the togreg branch of iio.git. > > > As explained above that wasn't entirely trivial so Jyoti > > > please take a quick look and check that changes are fine. > > > Pushed out as testing to let the autobuilders poke at it. > > > Assuming they don't find anything, it should be fine > > > for Sudeep to merge that ib and everything will unwind > > > nicely in Linus' tree next cycle. > > > > > > > Hope so. > > > > > There is a bit of an ongoing discussion of an earlier patch > > > in the IIO tree, so I might end up redoing this merge > > > if I need to rebase to sort that out, but I'll make sure > > > the diff is the same (git ID might change). > > > > > > > I can wait for a week or 2 if you think things will settle down by then. > > We can avoid 2 different git IDs if possible. The main intention was to > > give some reference to Cristian to rebase/post his series. I am all > > fine to wait for a week or 2 for final branch. > > > > In the meantime, I've anyway started reworking just based on -rc2 and barely > cherry-picked Jyoti v6 on top of it just to able to start porting early the > iiodev to the new SCMI API and be able to fully test it out (no problems > so far); I will finally rebase on whatever final base branch Sudeep will > pick but as Sudeep said I can wait, since I'm not expecting so much work > still to do in that final rebase to -rc1-smh-final (...last famous words o_O) Side note, there was a build bug on 32 bit that needs fixing so we'll be tweaking the original patch. > > Side question for Jyoti/Jonathan, for basic testing of this IIO SCMI > driver (given that I'm not really familiar with IIO and I have not a full > Android CTS/VTS suite to use it for testing), I'm doing something like: > > (debian-arm64)root@debarm64:~# cd /sys/bus/iio/devices/iio\:device0 > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 1 > scan_elements/in_accel_x_en > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 1 > scan_elements/in_accel_y_en > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 1 > scan_elements/in_accel_z_en > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 1 > scan_elements/in_timestamp_en > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 1 > buffer/enable && cat /dev/iio\:device0 | xxd > 00000000: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 00000010: 18da ffff ffff ffff 00b8 d3a0 c09b 6a16 ..............j. > 00000020: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 00000030: 18da ffff ffff ffff 0082 6edc c09b 6a16 ..........n...j. > 00000040: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 00000050: 18da ffff ffff ffff 004c 0918 c19b 6a16 .........L....j. > 00000060: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 00000070: 18da ffff ffff ffff 0016 a453 c19b 6a16 ...........S..j. > 00000080: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 00000090: 18da ffff ffff ffff 00aa d9ca c19b 6a16 ..............j. > 000000a0: 08da ffff ffff ffff 10da ffff ffff ffff ................ > 000000b0: 18da ffff ffff ffff 0074 7406 c29b 6a16 .........tt...j. > ^C > (debian-arm64)root@debarm64:/sys/bus/iio/devices/iio:device0# echo 0 > buffer/enable That looks superficially plausible. There is a test tool in tools/iio/iio_generic_buffer.c which is fairly simple to use and will pretty print values for you. That'll sanity check all the type descriptions etc are correct as well. Jonathan > > (plus a bunch of DEBUG in my series to track notifs flows...) > > Is this any good ? > > Thanks > > Cristian > > > -- > > Regards, > > Sudeep