From patchwork Mon Oct 23 14:05:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 15758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1320973vqx; Mon, 23 Oct 2023 07:06:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBuzkgwIc9jx8g/S7uctxoaMtYgLmcciU24kVZ2tgZzbKxo1sGBRU4AsFBzAulDq1rXROe X-Received: by 2002:a17:903:22cd:b0:1ca:8169:e84b with SMTP id y13-20020a17090322cd00b001ca8169e84bmr9136238plg.14.1698069984215; Mon, 23 Oct 2023 07:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698069984; cv=none; d=google.com; s=arc-20160816; b=hwgvcWU7AVsYsuMaHY3k91r0g5IRFLyKpcYMY58ZWLSi7yX0NCaUKzXjRN7xCnParE +bFjuUcpirA7bNk1mmMq2NnNO4yM49TkxdZpvt0+xaaKo/56XQXHPB/lHhsQe9QGLmt9 QFAiUCqkwUaSVq10LuJ3cju4jkP+0KI03UYQ8KQURg8XXYtUTrAB2UZ6lBfQHueLK+C2 7NFudjcPJWndJpT1Gm1i8WYloTVLX0Sywhd3tSHE4oJe67dh+5vGc31yOVO6VMk3tiyy of/CW8sXhtugTXb810OgQ3MpIWzLjQYjnUHHARp037a70WnLzXTjuKPnTDqlpvFiNReO b39A== 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=O3D0frem4t7QZAk/auhojdJrDMOeKz7QTjETUw6MHw8=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=HbHgQVjz+WtfHkngb9c2j7CP3F01x3e8dLQIkfM9L1rq6zKgPVGQz7Mh5oEV3KUP2D pS3pE+lzlgFQIfmAcQ/Izx4GUixXvvHxrdqZiY6YshsIbLS6qgpseUaS+15lwgQUjxWc 8jAM6M5rToTL9QCuh6Shi5LrT43/+MggVXwIOORvMyTj2CRV6z1WjTDMtfDqG9+GrnB7 uQn3q6l+3FwwsX40WKMBh/MI0uEA6UI+cap1NHh3irTVMLYTzbiiULcWCM/7KkPH9wnH /ixpn9ga190oFO2eqJGBMV6KKjvEo0xlnWjiYUMXLOBiEfPY13RRd3DB+X0oB4rWoWlX lVoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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. [23.128.96.35]) by mx.google.com with ESMTPS id x3-20020a170902ec8300b001c9af7debb2si6497716plg.525.2023.10.23.07.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 315888084968; Mon, 23 Oct 2023 07:06:19 -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 S233014AbjJWOGD (ORCPT + 27 others); Mon, 23 Oct 2023 10:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjJWOF7 (ORCPT ); Mon, 23 Oct 2023 10:05:59 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30DD410B; Mon, 23 Oct 2023 07:05:57 -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 39NCGXFF017921; Mon, 23 Oct 2023 10:05:54 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvusf05ep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 10:05:54 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39NE5rqn015812 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 10:05:53 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 23 Oct 2023 10:05:52 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 23 Oct 2023 10:05:52 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 23 Oct 2023 10:05:52 -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 39NE5djR030054; Mon, 23 Oct 2023 10:05:41 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu Subject: [PATCH v2 0/3] iio: imu: adis: Use spi cs inactive delay Date: Mon, 23 Oct 2023 17:05:31 +0300 Message-ID: <20231023140534.704312-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: 4Yez_61psNxu-M-WKZb9yWoRiFusEztW X-Proofpoint-ORIG-GUID: 4Yez_61psNxu-M-WKZb9yWoRiFusEztW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-23_12,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 mlxscore=0 mlxlogscore=790 adultscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310170000 definitions=main-2310230123 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]); Mon, 23 Oct 2023 07:06:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780555425225413476 X-GMAIL-MSGID: 1780555431309886623 A delay is needed each time the chip selected becomes inactive, even after burst data readings are performed. Currently, there is no delay added after a burst reading and in case a new SPI transfer is performed before the needed delay, the adis device becomes unresponsive until reset. First patch adds the spi cs inactive delay in case it is not set and removes the additional chip select change delay present in adis APIs (to avoid a double delay). Second and third patch updates dt-bindings for the drivers which are affected by the first patch. Ramona Gradinariu (3): iio: imu: adis: Use spi cs inactive delay dt-bindings: adis16475: Add 'spi-cs-inactive-delay-ns' property dt-bindings: adis16460: Add 'spi-cs-inactive-delay-ns' property .../bindings/iio/imu/adi,adis16460.yaml | 6 ++++++ .../bindings/iio/imu/adi,adis16475.yaml | 6 ++++++ drivers/iio/imu/adis.c | 18 ++++++------------ 3 files changed, 18 insertions(+), 12 deletions(-) --- 2.34.1