Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp269864rdg; Thu, 12 Oct 2023 05:25:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEe725XKa4GDysBgwfNaOqyBcYF0mgR4OD2n48Wf30INAOMv8fHztLRQc+gB3xw+QiDcf3M X-Received: by 2002:a17:90b:4c4c:b0:27d:c29:1a27 with SMTP id np12-20020a17090b4c4c00b0027d0c291a27mr3576004pjb.30.1697113535379; Thu, 12 Oct 2023 05:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697113535; cv=none; d=google.com; s=arc-20160816; b=sYU2VLzD7ZExAK6uBtqBOaWAsAPfUPoZACi4AaIW72gehAwQPbPHMdpTVLlQ+r3+9y 1GCpUI4t8KEYA2EjCOhNU+AVHPEea5KA8b4dgxgRC9uziwvjkJi5TeBTCwuImZUuJAJB apg+RLMojaYJRCY4/qCYUEzbxxJkgAtP/sToIdstz8ptLUQ84YNGLPpdD6z7ZCQLURan du4jc2hvdktv7kpVgDFV5Fsn4NLJkstQZu/DtsbkPtEyz6n9deaZpnvoMieSSOXIys1L qKv/mWnP+Y/YaUeoM2vsbtbwG0RuWkLgEFQiSIdFgAq7TXBZLKeA5om+GP99sQHvbZVg wv8g== 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 :message-id:date:subject:cc:to:from; bh=6y7U94xErAl5qzTl8WMLimG9/V5/jz57zAouzOuJLtc=; fh=EtaEg08KBBnGU5eH4/30qBB40LXTZiomnyUv8MhN5E4=; b=ZFYc3pM2wloKM0An/J+7Vycc/02nNnlayh7s7t8o9TfmtOdf9yAePJRQNony1cRDoo 2OHf6z2PyMwbMBV0nEhGQJESfzt2tTQyPb1GBGLEm91oExP7BV4HDXDo2fF0UW5Ww44h ZGDo2RJ7m362L8iWBGwa/82cztZzsek8Hg4WDvwtEEdmG+GoIGFDFRoJYeoXwQ1Pah2i aj9Jnk6sy35YLKooHCD87Kf0W/yWrVTav1sNRifVRosmqmWLEtiqrTjifkMJAzi/Cr8O +ZrA6swHJuYvV7TZ+/vmLACB87ysbkeXkr5UrIGaDm0YweHWPjAlX8GJB92M9ATQcBkC ky8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 35-20020a17090a09a600b0027740192bc9si2093781pjo.152.2023.10.12.05.25.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:25:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E1BE881AA509; Thu, 12 Oct 2023 05:25:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235709AbjJLMZS (ORCPT + 99 others); Thu, 12 Oct 2023 08:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233818AbjJLMZR (ORCPT ); Thu, 12 Oct 2023 08:25:17 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB9A1B7; Thu, 12 Oct 2023 05:25:15 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39CCAf88007899; Thu, 12 Oct 2023 08:25:13 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tpd4t19ps-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 08:25:13 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39CCPCVl020590 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Oct 2023 08:25:12 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 12 Oct 2023 08:25:11 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 12 Oct 2023 08:25:11 -0400 Received: from rbolboac.ad.analog.com ([10.48.65.174]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39CCP3l0015110; Thu, 12 Oct 2023 08:25:06 -0400 From: Ramona Gradinariu To: , , , CC: Ramona Gradinariu Subject: [PATCH 0/1] adis16475.c: Remove scan index from delta channels Date: Thu, 12 Oct 2023 15:24:55 +0300 Message-ID: <20231012122456.765709-1-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: A7bPD2gnjI8SsBDYPa43pvTCYOzuzWey X-Proofpoint-ORIG-GUID: A7bPD2gnjI8SsBDYPa43pvTCYOzuzWey X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-12_05,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=973 bulkscore=0 clxscore=1011 malwarescore=0 spamscore=0 phishscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2309180000 definitions=main-2310120101 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:25:33 -0700 (PDT) Some devices do not support delta angle and delta velocity burst readings, which means there should be no buffer support for these types of channels. A new list of channels is created which contains the delta channels structures with the scan index equal to -1 to allow for raw register readings, without buffer support. This list of channels is assigned to the devices which do not support delta angle and delta velocity burst readings. This is a fix for the bug which was introduced with 8f6bc87d67c0 ("iio: imu: adis16475.c: Add delta angle and delta velocity channels"). Ramona Gradinariu (1): drivers: imu: adis16475.c: Remove scan index from delta channels drivers/iio/imu/adis16475.c | 67 +++++++++++++++++++++++++------------ 1 file changed, 46 insertions(+), 21 deletions(-) -- 2.34.1