From patchwork Thu Oct 12 12:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 15280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1188349vqb; Thu, 12 Oct 2023 05:25:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHov0O3nJyKLQeAkbvE20uk/+ce3ZE+4T0B/ZINg2kUFtqWk/TjriQ9Az9SIe5tLt350E5F X-Received: by 2002:a05:6a20:9393:b0:16c:b95c:6d38 with SMTP id x19-20020a056a20939300b0016cb95c6d38mr16808208pzh.2.1697113539961; Thu, 12 Oct 2023 05:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697113539; cv=none; d=google.com; s=arc-20160816; b=n0ap2QrAvwuG/xOR/sWYb1SKY6ddivTF8K6zRWIW3O0xVuE2od9VPgCZ1iB8hBhNo1 yqXWFJ9D1jfenSmNasvhcIrZNWMt1GK2JXFP4dmVQotEfFKhpMOWi9eGTpsvGNtlK9Fa DD1DNacfml5alPuKzGDsYJ31PzqzSYuTVTR/R97rgQcQeRs3Xr3bi7eIjrRm0CW6KhJL icS4iUrdX2F1uB1CqUN9yhBG7Gp0ssQ/icHxXS4LrZkUVZF2metJ8Alwmn+6JpvILSOo 9GnzDZwaYNjWjGYx8sztFaXJHApgj8SiXsUwwMb9Zn7HX3tVhlL3vimKqR4/xOAGgZ2R 5Ekw== 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 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id cm6-20020a17090afa0600b00263e299dff6si2152394pjb.74.2023.10.12.05.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id C71C18028F88; Thu, 12 Oct 2023 05:25:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347228AbjJLMZS (ORCPT + 19 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 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:25:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779552527365320440 X-GMAIL-MSGID: 1779552527365320440 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