Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1449822rwb; Fri, 19 Aug 2022 04:04:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6NZOzhnKZKp/Bnc5YNl8QqIhCoSZRa6FH6adkaVlRVXYx0jytUIvFqebcLLvRtO89SyOrC X-Received: by 2002:a17:907:1b0e:b0:72f:9b43:b98c with SMTP id mp14-20020a1709071b0e00b0072f9b43b98cmr4522794ejc.710.1660907062483; Fri, 19 Aug 2022 04:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660907062; cv=none; d=google.com; s=arc-20160816; b=ndcaRbwO5BMZm1OgcZpLmhLlwGKwqoJALoWSy7QHR6T2Zdqv9tenJns6Egx9LeCSpT HvC60XtVSdtXnf8A8YLW6Be9ut4bvlONDdjTN4+QP0SmsUdrkSfcWG1WCIcIHfRML8Qb DnVs6Pb461IWJJWlS/cuO+Oa9wdVe5RlmeQUlTplEyGBjiFgpZTqv4Ugs5ADpS4f3BJl S38AlzKQO4n9tAM594XL0Ii50OhiPMoZROGbSYbVDTElBl40AwuwPaSFSiCJzWRpUByO w/OZiH6UabD0sIHdf4rsYmdEHZdDHr6kNi75/Hi2v6JIsHaTTUCinZTZ5XsRJfFycV6r 9rRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=1bLFK2LVogdll06otAbVmPhlYG8rL8OwswzllmCwEG4=; b=fc5nH5FfPuexuB60cM1JTX9Z1PN6/ljvi7fJDr1/KAZ1ZRVFQlBmol1/soFJ6B8KQ5 D8wuk1bdiZT3hFmhZ1tljdS1LcxLm9ZMqoBbA8HNIta1ruZ+Zevs/PJyMH7NT9EkYh2U AvUaOINVUHEXKQwJn2kG0KAhQaMArSm8BigJ7MKjJkCduXCLMwojehuOsYFHT9H6jvsX 15girBx5oePcx3OEhCWiENb94s2PT/UQrfNPjyNYBtWaxwFRluDGnN8SYjL0gunv+s2r Y1/F2JI7yoX/8V8++diw7wLj7DGvKvCZsH9nGJ+hxzQZalTd6HUPP0yRDW910eWRIzqR s0lg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020aa7da53000000b00445e7820127si2562927eds.381.2022.08.19.04.03.56; Fri, 19 Aug 2022 04:04:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348294AbiHSKgM (ORCPT + 99 others); Fri, 19 Aug 2022 06:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348128AbiHSKgK (ORCPT ); Fri, 19 Aug 2022 06:36:10 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 621AEF2428; Fri, 19 Aug 2022 03:36:08 -0700 (PDT) Received: (Authenticated sender: contact@artur-rojek.eu) by mail.gandi.net (Postfix) with ESMTPA id 169CA4000C; Fri, 19 Aug 2022 10:36:05 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 19 Aug 2022 12:36:05 +0200 From: Artur Rojek To: Chris Morgan Cc: Paul Cercueil , Jonathan Cameron , Dmitry Torokhov , linux-mips@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH 0/4] iio/adc-joystick: buffer data parsing fixes In-Reply-To: References: <20220817105643.95710-1-contact@artur-rojek.eu> Message-ID: <085417ff80442dd7cc74e88d35423054@artur-rojek.eu> X-Sender: contact@artur-rojek.eu Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2022-08-18 20:28, Chris Morgan wrote: > On Wed, Aug 17, 2022 at 12:56:39PM +0200, Artur Rojek wrote: >> Hi all, >> >> this patch set fixes the way channel data is being parsed in the >> adc-joystick driver. To achieve that, it also introduces helpers in >> the >> IIO subsystem. As a side effect of those changes, a bug in ingenic-adc >> has been exposed, which this patch set promptly rectifies. >> >> Tested on GCW Zero (by me) and on Anbernic RG350 (by Paul). >> >> Chris: >> As you have originally reported the issue, would you be able to test >> the above changes on your setup (Odroid Go Advance, was it)? > > I can confirm this fixes the issue I experienced, I can see both > channels of the joystick now when using an hrtimer as a trigger. > > This patch also does not interfere with the polling work in progress, > as that still works as expected too (polling work is still desired > though). > > Thank you. Perfect, thanks for testing! Can I add your Tested-by for v2 of this patchset? Cheers, Artur > >> >> Artur Rojek (4): >> iio/adc: ingenic: fix channel offsets in buffer >> iio: add iio_channel_cb_get_iio_buffer helper >> iio: add helper function for reading channel offset in buffer >> input: joystick: Fix buffer data parsing >> >> drivers/iio/adc/ingenic-adc.c | 7 +++--- >> drivers/iio/buffer/industrialio-buffer-cb.c | 7 ++++++ >> drivers/iio/industrialio-buffer.c | 28 >> +++++++++++++++++++++ >> drivers/input/joystick/adc-joystick.c | 26 ++++++++++++------- >> include/linux/iio/buffer.h | 4 +++ >> include/linux/iio/consumer.h | 12 +++++++++ >> 6 files changed, 71 insertions(+), 13 deletions(-) >> >> -- >> 2.37.2 >>