Message ID | 20231023123542.582392-1-ramona.gradinariu@analog.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1264656vqx; Mon, 23 Oct 2023 05:36:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXRBdqTSlGN0fyyTi2JoMvVCN0JfJDRmYd68t6TKa0d3JNXendQSA34IswgFW+dtj5klXf X-Received: by 2002:a17:90a:bf8c:b0:27d:c36:e130 with SMTP id d12-20020a17090abf8c00b0027d0c36e130mr5957819pjs.8.1698064593500; Mon, 23 Oct 2023 05:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698064593; cv=none; d=google.com; s=arc-20160816; b=JY1BYo05/DYvq2PzBHR0MscsLiin3WQ57a3qR5X53shfoS4lhLYil+OWZF9F/7Zka9 X1WGc58ugETs3hC5KqFJCdMWaTN4Zl+sY12A75KPOYQ+Xe2CQDY1lxwCSdnRrL5Moi3s BAK5qeoMAUGrbb93SKnr5oZXGDjvQjtwDdDdYI3dSOukyg1R3Bt6iPkW0fIUn9yFSeQL R6ZtqBEz4SI5BUHw44OqCG4zBgMnMe7wHJsQaY6dPgbvdlqsXnOfJ1YXmEwSIIlAMhAw Q9x9z5gnEjKuG+Ea4YBGDVaIb0xZz0FcBfvx869/HLYa22pUu+u0zQoRlMIFT9d2cbrW EUYQ== 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=5vUgZGk3gddL1/0NF/Ov70DoJ4vPKYbrRuHQMmluHrs=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=uM8cYL0+/iWQPgkcKOMCe1bnNRsN4kio+1XQIRQCJKVLAVxF8OJ3Y/0LeppIoWhp+R PtARGu+GMAkeqPE5Gb8L+i8EgFs1+s/A5IiRPnNJHI3W4+qCvsjC+UmekgJCAgs4w2tl PT9XiO4ER2902kVwYLKmmq+ih58YAkvQgp0DtSRazUyW6BUF6P/O8fQjNYt5MzQ45IKa tlWDq2yxGKoL+akFSLmpFchhPB30v6bx8IWj/aOyXl5D9zyZR1etoRERXs1IcmRigZSz Dd+hxHFz7E2XulLWD5GSzFYk0Lgf8NJ6irxbZseNsinZNKSREOFRYJExRMNFIkJBbA3K Zfnw== 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:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p20-20020a17090ad31400b00276b87c8b8esi6460880pju.59.2023.10.23.05.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id EBCDD803E9DE; Mon, 23 Oct 2023 05:36:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233572AbjJWMgL (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 08:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbjJWMgH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 08:36:07 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AA55C4; Mon, 23 Oct 2023 05:36:05 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39NBaHhp021645; Mon, 23 Oct 2023 08:36:03 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvugj7ftf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 08:36:02 -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 39NCa1eA012926 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 08:36:01 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) 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; Mon, 23 Oct 2023 08:36:00 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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 08:36:00 -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; Mon, 23 Oct 2023 08:36:00 -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 39NCZjdt025089; Mon, 23 Oct 2023 08:35:47 -0400 From: Ramona Gradinariu <ramona.gradinariu@analog.com> To: <jic23@kernel.org>, <nuno.sa@analog.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org> CC: Ramona Gradinariu <ramona.gradinariu@analog.com> Subject: [PATCH 0/3] iio: imu: adis: Use spi cs inactive delay Date: Mon, 23 Oct 2023 15:35:39 +0300 Message-ID: <20231023123542.582392-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-ORIG-GUID: 9gz6sF6NRXC7H1ywq4K1GhQ9fsOczibw X-Proofpoint-GUID: 9gz6sF6NRXC7H1ywq4K1GhQ9fsOczibw 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_10,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 mlxlogscore=790 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310170000 definitions=main-2310230109 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 morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:36:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780549779442868596 X-GMAIL-MSGID: 1780549779442868596 |
Series |
iio: imu: adis: Use spi cs inactive delay
|
|
Message
Ramona Gradinariu
Oct. 23, 2023, 12:35 p.m. UTC
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 | 5 +++++ .../bindings/iio/imu/adi,adis16475.yaml | 5 +++++ drivers/iio/imu/adis.c | 18 ++++++------------ 3 files changed, 16 insertions(+), 12 deletions(-) -- 2.34.1