Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2353632pxb; Mon, 8 Mar 2021 23:42:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7F5mnEyDJWhPglzm1PqlGyVBcVhI453FCFqEU5FCNbhQi+odC4AwYHDk+U2ynkpohrmE2 X-Received: by 2002:a17:906:296a:: with SMTP id x10mr18591987ejd.240.1615275732553; Mon, 08 Mar 2021 23:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615275732; cv=none; d=google.com; s=arc-20160816; b=tjNL+Em67nHIzgasQba6yBpse2kEyzERZTRNiWEUlbIWYBHcFlMOsrcLkihtc30w49 oKdKLisiH53uFsDESMPNSPn4XkBZXhU/7darH8nQm/JOjlHX6XMBUM02m2kg6xO2dvfx 7OlYr9M3d7lnsItT2g3LEipXDBd4QJuZQzeIH5VJwFAPNyVaUMY12jxVdlw0aSiEMxvm pE9+ZsKyCkf8nKaufwxXjgqTsiWYV5ntKM9gXeOTqlAQ7aMmOrwuGPxIBS8uBslL54wI WBMLebJWGS6lKvwEsHsfMcvG+uSoZLUDJKRfl0MsM+y5yd3Xj3v5f02OpC5AsOgi1waH q1zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1S6laiFwq/XnzMb7uanR+53ps0wuKIsmz0BT6HerXmg=; b=jM1HOmn3Jgl7HZVi7Zuoa4NLFvr2A+d/6lSTI27l0KrCq99UR1ABDQvCm/lTY+0qM0 Vx1JDbIbaB6PapFDjs5I+JRBkvb/kLLEt49IhvhgtJ3T+TEv8EFJRY98azRSTuKBIM6L OHGfuymoRIRtKE0k6HyX4safbnfTqBiNaFU/z86Ex9w2dOz/ygdy5eUULC3qHO4BMutP FAZpeACLglLgJcfrKBKcYIZ34B3dL6ePtZhYAwdVo4a+qjkx4aZ8tKicoLiKyGnpUFWm yKv30P4sPAnK3wyw0EXhLp2JLjosDuLlormayKAFV+hhAH8++fOIOMlpLaEmTy/bA/Rs tGTg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si8342526ejb.137.2021.03.08.23.41.49; Mon, 08 Mar 2021 23:42:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbhCIHip (ORCPT + 99 others); Tue, 9 Mar 2021 02:38:45 -0500 Received: from foss.arm.com ([217.140.110.172]:48584 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhCIHiU (ORCPT ); Tue, 9 Mar 2021 02:38:20 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B95BBD6E; Mon, 8 Mar 2021 23:38:19 -0800 (PST) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B4D4B3F70D; Mon, 8 Mar 2021 23:38:16 -0800 (PST) Date: Tue, 9 Mar 2021 07:38:13 +0000 From: Cristian Marussi To: Sudeep Holla Cc: Jonathan Cameron , Jyoti Bhayana , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Lukas Bulwahn , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Enrico Granata , Mikhail Golubev , Igor Skalkin , Peter Hilber , Ankit Arora , kernel test robot , cristian.marussi@arm.com Subject: Re: [PATCH v6 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210309063727.a4olkoha5jernvwx@bogus> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 (plus a bunch of DEBUG in my series to track notifs flows...) Is this any good ? Thanks Cristian > -- > Regards, > Sudeep