From patchwork Fri Nov 18 08:31:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22188 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65933wrr; Fri, 18 Nov 2022 00:35:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YjLcio5evwZdmOmyv3YoTkyW96SlV4oh9CsG3bFogDQ7KXjW6EeuKodc9r7/ixh/h931U X-Received: by 2002:a62:1a05:0:b0:56c:1277:d056 with SMTP id a5-20020a621a05000000b0056c1277d056mr6762379pfa.23.1668760535089; Fri, 18 Nov 2022 00:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760535; cv=none; d=google.com; s=arc-20160816; b=aQZVqncXJ5mQhO+DVguqg+8xiBaHojP28C/tM4tb//OngWGYtx6GQtcDI2eRDTPcQA mtDdqmBRMrZrYJVwAU1OMIfQDWFZAVOxk/wV90shUin7jXS9TgmmUNh2qIOPjlCMilEn 7vbzDWaOvw4InncABumagLYMXRUF+yHZbDfM5vg9xO8NozP8YAuaU+mr9RQAZImIlxuT hAB0IL6qIJ9z8C6rDnowNHNoP7uXLAt5pnRTwGGMm6lifA3sRVj6Tcd72PclZblMsK3o uafGtleU2vqn3i898nyjfs2+ASxrVcX1jI3SCT4jvTj2SN5f0KmD8GcHpkYj/lrH51SH aIxA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=98hK/Cc3j0z21U8tYHKATmDkXZF+vHuF/ko6WYqztZU=; b=UNcydDP83PcJH40mmX9Jn2UDD65TjZW/bbkT96rJbZPeddHjtBTyTk3wAN15TEF4+g k4kllfiK1mjM7FIbacVO4MjkSdnTVsDReacCPQG6y8+uHNX+79gesV2EStNTqr6xWp6Z hIXNUQEHRd/Lss9WVN1bm0+bFUtLbk89re+WcCM9COwTVqEHZQcQStVMkgu7EC5ra/1J BZVQhNWcN7ftnxq6EIdoIfwKaSUB5wzU4R1x3fW0fdfxutMl6vw2GsE59iNi3dgN/TCM h2tnbM8UaMc42ia2rlYFBQOy60Fow13axx2BAgOCf3HgJXdxX8tEutaT8U7kWw0hZcrb 9bgw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t185-20020a6381c2000000b004707d007610si3203207pgd.696.2022.11.18.00.35.14; Fri, 18 Nov 2022 00:35:35 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241445AbiKRId2 (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241474AbiKRIcY (ORCPT ); Fri, 18 Nov 2022 03:32:24 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 905CC57B48; Fri, 18 Nov 2022 00:31:45 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5S8Ut003138; Fri, 18 Nov 2022 03:31:36 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stp3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:36 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8VZfc041449 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:35 -0500 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; Fri, 18 Nov 2022 03:31:34 -0500 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; Fri, 18 Nov 2022 03:31:34 -0500 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; Fri, 18 Nov 2022 03:31:33 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVE021746; Fri, 18 Nov 2022 03:31:28 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 01/10] iio: adis: add '__adis_enable_irq()' implementation Date: Fri, 18 Nov 2022 10:31:09 +0200 Message-ID: <20221118083118.9641-2-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 8LI6JOa35pi7XoR_1O8R24ZnxGrw4ZZe X-Proofpoint-GUID: 8LI6JOa35pi7XoR_1O8R24ZnxGrw4ZZe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=985 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822247026655807?= X-GMAIL-MSGID: =?utf-8?q?1749822247026655807?= Add '__adis_enable_irq()' implementation which is the unlocked version of 'adis_enable_irq()'. Signed-off-by: Ramona Bolboaca --- changes in v3: - new patch drivers/iio/imu/adis.c | 26 +++++++++----------------- include/linux/iio/imu/adis.h | 12 +++++++++++- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index f7fcfd04f659..cfcb4abeb5db 100644 --- a/drivers/iio/imu/adis.c +++ b/drivers/iio/imu/adis.c @@ -270,23 +270,19 @@ EXPORT_SYMBOL_NS(adis_debugfs_reg_access, IIO_ADISLIB); #endif /** - * adis_enable_irq() - Enable or disable data ready IRQ + * __adis_enable_irq() - Enable or disable data ready IRQ (unlocked) * @adis: The adis device * @enable: Whether to enable the IRQ * * Returns 0 on success, negative error code otherwise */ -int adis_enable_irq(struct adis *adis, bool enable) +int __adis_enable_irq(struct adis *adis, bool enable) { - int ret = 0; + int ret; u16 msc; - mutex_lock(&adis->state_lock); - - if (adis->data->enable_irq) { - ret = adis->data->enable_irq(adis, enable); - goto out_unlock; - } + if (adis->data->enable_irq) + return adis->data->enable_irq(adis, enable); if (adis->data->unmasked_drdy) { if (enable) @@ -294,12 +290,12 @@ int adis_enable_irq(struct adis *adis, bool enable) else disable_irq(adis->spi->irq); - goto out_unlock; + return 0; } ret = __adis_read_reg_16(adis, adis->data->msc_ctrl_reg, &msc); if (ret) - goto out_unlock; + return ret; msc |= ADIS_MSC_CTRL_DATA_RDY_POL_HIGH; msc &= ~ADIS_MSC_CTRL_DATA_RDY_DIO2; @@ -308,13 +304,9 @@ int adis_enable_irq(struct adis *adis, bool enable) else msc &= ~ADIS_MSC_CTRL_DATA_RDY_EN; - ret = __adis_write_reg_16(adis, adis->data->msc_ctrl_reg, msc); - -out_unlock: - mutex_unlock(&adis->state_lock); - return ret; + return __adis_write_reg_16(adis, adis->data->msc_ctrl_reg, msc); } -EXPORT_SYMBOL_NS(adis_enable_irq, IIO_ADISLIB); +EXPORT_SYMBOL_NS(__adis_enable_irq, IIO_ADISLIB); /** * __adis_check_status() - Check the device for error conditions (unlocked) diff --git a/include/linux/iio/imu/adis.h b/include/linux/iio/imu/adis.h index 515ca09764fe..f5432f3b2b22 100644 --- a/include/linux/iio/imu/adis.h +++ b/include/linux/iio/imu/adis.h @@ -402,7 +402,17 @@ static inline int adis_update_bits_base(struct adis *adis, unsigned int reg, __adis_update_bits_base(adis, reg, mask, val, sizeof(val)); \ }) -int adis_enable_irq(struct adis *adis, bool enable); +static inline int adis_enable_irq(struct adis *adis, bool enable) +{ + int ret; + + mutex_lock(&adis->state_lock); + ret = __adis_enable_irq(adis); + mutex_unlock(&adis->state_lock); + + return ret; +} + int __adis_check_status(struct adis *adis); int __adis_initial_startup(struct adis *adis); From patchwork Fri Nov 18 08:31:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65191wrr; Fri, 18 Nov 2022 00:33:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HhlrOZehaOOr4glk+eAx6iG9D2sNsG9FJ5ZQaPEpdFuKtE/gBUJUHYJIP1ejY3NiAzdfF X-Received: by 2002:a17:90a:1bc2:b0:218:8bdb:de3f with SMTP id r2-20020a17090a1bc200b002188bdbde3fmr642123pjr.225.1668760419264; Fri, 18 Nov 2022 00:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760419; cv=none; d=google.com; s=arc-20160816; b=eQOnkJnSFXLlO84j0CWHC2Zh1b7HnGdC8ZuKQJmzcxx6GezN8QGl1RnNHzEicLW5Ar UANVMpdRZBBudraOrkuT+UK/KjbwRPiwP4lhjg2UrssY6MwS+12GWtJSrKDYsC0AyFdC NBoZGPluqZTl+VC1VU3TxQutoB6eLp5buUjI7T9T7O8mt3/LVAYwXPKt+RjYAPmrbJJr K52urVuCECu/yK1k4zXNJKE+Dl1DHETnJud1xPbykLC7jeTXE4n1NkMRGnDUqkF8kVC8 N3ixpu9GqqPBTHlzC2RjRB8Dv0bDm5nUFTYTuchRN0Z60at98Ow5wu7iBr20qC5aOqu7 +Zmg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lFEjcz2bRDYLJS60ML5Epq+wSpAcd1YsCHC3OfhBTWU=; b=hwnUafvHl2UUON7/NS7hkK9OzpiPGthZDww3Kn3y64nFXAlKh1ROy8wxEBRA62RIyT H/K4XRiFHfEfFsWSk50LKGHym1Gdbzc48IzW2MsATQ9gy8EMTtS5549gRq2K/T6Do21P XOOFpmTieRv5yKXnRSc1jMwHP6lvUodICD5p1BPJHNgRY6mncjBVBs9cHHBVQgeoBti5 x8fYd4e0Fk1q4miPU2HZCmrmriMZTyLOJsJvRwpfQAZOi73jDylIdMTlpmkUW5b2L2AJ ds/mfwhKJjCMrVJ8/QLJjP3rJsV2AQfZL2ioxlePzv8B7LviLMl97RnZrewJkEWYF68Q xpGQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a636707000000b004599da2b2b6si3083563pgc.716.2022.11.18.00.33.25; Fri, 18 Nov 2022 00:33:39 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241198AbiKRIcz (ORCPT + 99 others); Fri, 18 Nov 2022 03:32:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241461AbiKRIcW (ORCPT ); Fri, 18 Nov 2022 03:32:22 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C48D5654F; Fri, 18 Nov 2022 00:31:42 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5TCtK003092; Fri, 18 Nov 2022 03:31:35 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:35 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8VXi6041445 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:33 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Fri, 18 Nov 2022 03:31:32 -0500 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; Fri, 18 Nov 2022 03:31:32 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVF021746; Fri, 18 Nov 2022 03:31:29 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 02/10] iio: adis: Call '__adis_enable_irq()' in '__adis_initial_startup()' Date: Fri, 18 Nov 2022 10:31:10 +0200 Message-ID: <20221118083118.9641-3-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 6ABMvT_EJLIeNsXiu7BoX0vPPraYIW-U X-Proofpoint-GUID: 6ABMvT_EJLIeNsXiu7BoX0vPPraYIW-U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822124992096380?= X-GMAIL-MSGID: =?utf-8?q?1749822124992096380?= Call '__adis_enable_irq()' instead of 'adis_enable_irq()' from '__adis_intial_startup()' to keep the expected unlocked functionality. Fixes: b600bd7eb3335 ("iio: adis: do not disabe IRQs in 'adis_init()'") Signed-off-by: Ramona Bolboaca --- changes in v3: - new patch drivers/iio/imu/adis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index cfcb4abeb5db..bc40240b29e2 100644 --- a/drivers/iio/imu/adis.c +++ b/drivers/iio/imu/adis.c @@ -437,7 +437,7 @@ int __adis_initial_startup(struct adis *adis) * with 'IRQF_NO_AUTOEN' anyways. */ if (!adis->data->unmasked_drdy) - adis_enable_irq(adis, false); + __adis_enable_irq(adis, false); if (!adis->data->prod_id_reg) return 0; From patchwork Fri Nov 18 08:31:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp66223wrr; Fri, 18 Nov 2022 00:36:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tozMItcpLGpNMKbKVRv+2bZQuYs0LsWUqiCDPKspHLB9flk4iSSRzHoH19jk7uOfAXCZo X-Received: by 2002:a17:90a:9dc5:b0:20a:d78d:ed20 with SMTP id x5-20020a17090a9dc500b0020ad78ded20mr6921024pjv.65.1668760581807; Fri, 18 Nov 2022 00:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760581; cv=none; d=google.com; s=arc-20160816; b=sULosAtQVFWz2uqhq0Gz3wWttrzzlpESb6KO8S2fDRMEOn3+NeqOG6c8hdBL/Mv5r+ BDuO2y7d6/oVz46lYoINYcD2MVtK47j2Nrz1x0SwBoF+IYZpmqL6Gq/VMzUVMjjs8oOb smGmFgP0u7Te6hf9QW6wFq/feUAWRolDvqI7zFXG8eE0+FHCoaOAVoxy0golSmnXmpeH fhMNBivMNECgPdJuuYEXK1ffWF0TvrBXnMgC2UDX6znEv8X4PgKjHSuhE8MuoI0U+0Yn osRKXQJAaKk34leWXotj55moVbl9REnlL2BpFS8nCgy6bBKmpG1Akc91dqrm6HgLQf4J AT+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=teSdD5dm5EIpIiVesu/5dC51MHxQxadEzn5zDU8DbfE=; b=iC5M4rEo3nGxMsvtSZhfQME3z2e1KztnO6iDzgW9QvGYwKA9pJML+T7Fm8PVP3B3Qa 6aYZoZv0NdjbQCJD/2z7ASHTgmAlmkEYdL4J4ktBoQpg6yzsmxU2a9HAKdSyZOGzycvN JnuSYKSB3UzkW3t8e0ecEfuIKle7WP9RlczZJkJmy71wlEREXf19PD137DPs+EOiTaw+ +kqJiyT3gFmQhEQhVERreG1+ylJN9FHazeZ2RDiOnAzL1/RBFqXA6Rdfsh3EF43LkdOq cy7hyPEhLjpT1lHLU8vgQIF+xNBAd04pcT8X2Ku33PJzEl4+5X3r3ijJUweSAoC/mlLL quzA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n27-20020aa7985b000000b0056353f0bd40si2948378pfq.29.2022.11.18.00.36.09; Fri, 18 Nov 2022 00:36:21 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241538AbiKRIdN (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241185AbiKRIcY (ORCPT ); Fri, 18 Nov 2022 03:32:24 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540E056EDA; Fri, 18 Nov 2022 00:31:45 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5eYBv026594; Fri, 18 Nov 2022 03:31:38 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0p7hrsq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:37 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8VaL0041462 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:36 -0500 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; Fri, 18 Nov 2022 03:31:36 -0500 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; Fri, 18 Nov 2022 03:31:34 -0500 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; Fri, 18 Nov 2022 03:31:34 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVG021746; Fri, 18 Nov 2022 03:31:30 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 03/10] iio: accel: adis16201: Call '__adis_initial_startup()' in probe Date: Fri, 18 Nov 2022 10:31:11 +0200 Message-ID: <20221118083118.9641-4-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 0TY55wwAiqso7onWDen8FtN7qsnMvT9f X-Proofpoint-GUID: 0TY55wwAiqso7onWDen8FtN7qsnMvT9f X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822295937276381?= X-GMAIL-MSGID: =?utf-8?q?1749822295937276381?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16201_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/iio/accel/adis16201.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/adis16201.c b/drivers/iio/accel/adis16201.c index dfb8e2e5bdf5..d054721859b3 100644 --- a/drivers/iio/accel/adis16201.c +++ b/drivers/iio/accel/adis16201.c @@ -281,7 +281,7 @@ static int adis16201_probe(struct spi_device *spi) if (ret) return ret; - ret = adis_initial_startup(st); + ret = __adis_initial_startup(st); if (ret) return ret; From patchwork Fri Nov 18 08:31:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22184 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65350wrr; Fri, 18 Nov 2022 00:34:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf66WvIZpwim6uhvoXBG0GmawsNZAKbODdDVB9PC5yRWNVLJs2co+EcI75cc3SOx928ZR+Th X-Received: by 2002:a05:6402:1f0a:b0:459:b29:d896 with SMTP id b10-20020a0564021f0a00b004590b29d896mr5198437edb.9.1668760442600; Fri, 18 Nov 2022 00:34:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760442; cv=none; d=google.com; s=arc-20160816; b=0cP/DOLxSk9aa8BIYDjv62iAYp9VdO29CtDhkpJ2nXi/caSX3nwzi/nH13A8UiCcg0 Jhsop+cd5GcZLlGks6DOTtUTuPZgXVrUlbii5OIaTeIzLuPbs82d2xugPi09RaS1jqhd mrIVNsUrUghDFuTgs+Ii8MA+UAS1xdXS9Fz+KgNAFkIEXyoEa3vcFqsxkAM8J4Is3zfD +oA+linNJJZZiRSS2bAEeMbgUBj3eyzH9lp2HL/DL1klzm7OXX8rMk5wZBeBuQ4fe2gh lqm3QJmpC9gwRPMpxicNSJW+mcSjUzAZCnYGUFwoZXMuACKH/0PQwaJ9pF/6PjaY5K5x IAcA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D4lOfs3jEXz7VgvJwYfq9STuCy05ymCHQVn4TWpZBBg=; b=BST+urLtD4jfpzoufajrIo+5UrSF0DJEmb9A0a1bQlPk5kTd7TPWu3uuhuUlovm6fS 3GstKKL9tsOm+PCLNAcMnaHW9N1yQbHx/X3/V0eXxtrFHmiq/HkLmNQFYA3HNHpv8IMl 5wTHCOaRQ0whIliBy2Kzld8cjHQvfCw6V+DXVH+5jD4ibIFU9lq5dqMkJSk5OD4XxbGy 5D3KXHa1DSDl43q4BnwBEtNslVb3BZkbwPj4YgdC4hf1LNPE69aHCMRebIeD+fKqM5aV bA6ZMR4LUrLvtkTRLJZqpZO2pPJ8nOpgqCWgXpOP3xF+N6i9Y+vD7jL1TWbvbfpAaknZ oJjw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170906340d00b007adbc807ca8si2123619ejb.137.2022.11.18.00.33.37; Fri, 18 Nov 2022 00:34:02 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241510AbiKRIdI (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241470AbiKRIcY (ORCPT ); Fri, 18 Nov 2022 03:32:24 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4105C56ECC; Fri, 18 Nov 2022 00:31:45 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5aT9f003217; Fri, 18 Nov 2022 03:31:37 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stpa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:37 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8VaPK041458 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:36 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Fri, 18 Nov 2022 03:31:35 -0500 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; Fri, 18 Nov 2022 03:31:35 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVH021746; Fri, 18 Nov 2022 03:31:31 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 04/10] iio: accel: adis16209: Call '__adis_initial_startup()' in probe Date: Fri, 18 Nov 2022 10:31:12 +0200 Message-ID: <20221118083118.9641-5-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: Kth3UHX8DMcqUw4iZSBjYCH6AvVO7aqr X-Proofpoint-GUID: Kth3UHX8DMcqUw4iZSBjYCH6AvVO7aqr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822149654747765?= X-GMAIL-MSGID: =?utf-8?q?1749822149654747765?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16209_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/iio/accel/adis16209.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/adis16209.c b/drivers/iio/accel/adis16209.c index 5a9c6e2296f1..0035e4f4db63 100644 --- a/drivers/iio/accel/adis16209.c +++ b/drivers/iio/accel/adis16209.c @@ -291,7 +291,7 @@ static int adis16209_probe(struct spi_device *spi) if (ret) return ret; - ret = adis_initial_startup(st); + ret = __adis_initial_startup(st); if (ret) return ret; From patchwork Fri Nov 18 08:31:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22181 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65196wrr; Fri, 18 Nov 2022 00:33:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZMAlHuGp+eIka+tvjd3TtoCunPXK+54gekHXrvMGzPwSX1LB7kjb7HwiG5fU+UqRAq54k X-Received: by 2002:aa7:c6c3:0:b0:469:646:97ff with SMTP id b3-20020aa7c6c3000000b00469064697ffmr2202118eds.402.1668760419777; Fri, 18 Nov 2022 00:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760419; cv=none; d=google.com; s=arc-20160816; b=USG/2bpPLQoXiz6oqgZz9+Qtgxn+ZrAMcZtVox39m3ZygwiizKMEX0VU3v2D7Bw/bZ X9Mh6eBZTK6QW9duyl36/HKNrGvZZMdnxn0ObGXwadn+UyFTAn2aEaY2RsI0QLcmLxjB Rd+l2fLQhOtXaJwu/LdoQc2mWL1kXqSGxqNYak8PAGKOHck5X++agdq7VdLJs6Gcylkd jLaVDHtr50nykgZe7Oaxd4R0PWd2I+SmD2k6Bqk6FnQWtcM40vSBNNGUwHJJb/upTxXH QVBIgkzIYXgR0gvOmhOiA6ZoFAcX8aRTph1upfRkTIvB7GF2owcYQ1878Gc+4jQzuVsY +48w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pMGf9WShBkKAO/C2oVppodXlTZUHlqbT28/hR1wfZds=; b=lYTKPi3trumImRI3HysighG6tcqtnZDsyhqLDzA+YFMHDMIwpw5Lc4D1jb89x5oZUZ 06NDZjDTEJ5z9EPbkV2gLc29Z8zHSIVLW7mMHbfL7h8fBUqYSILAc6gjbp01tXRcH8Wr sdW56PAn+yx19yNUN7XiUwX2uZ2fKcFTH4YWv4qDyYmpX2VolSkCfjvvTrXjvt9iA2KT ZxQEAtcuecci/abhmFVPHuit/elOoV/FvBdH0pyzQrvY1lAd9Wp++4+E8H2VZmdyhbEr vAmFgJcNRcM1/lW8DCAoymG4VjaYF52xMkHC2TRn1QUEvXGgOIJ4iODXzvh9AoFepdDf 545Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa6-20020a1709076d0600b007882936242fsi2703637ejc.769.2022.11.18.00.33.15; Fri, 18 Nov 2022 00:33:39 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241180AbiKRIcw (ORCPT + 99 others); Fri, 18 Nov 2022 03:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241459AbiKRIcW (ORCPT ); Fri, 18 Nov 2022 03:32:22 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0740532C2; Fri, 18 Nov 2022 00:31:40 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5QKd9003183; Fri, 18 Nov 2022 03:31:39 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:38 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8Vbg4041469 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:37 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Fri, 18 Nov 2022 03:31:36 -0500 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; Fri, 18 Nov 2022 03:31:36 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVI021746; Fri, 18 Nov 2022 03:31:32 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 05/10] iio: gyro: adis16136: Call '__adis_initial_startup()' in probe Date: Fri, 18 Nov 2022 10:31:13 +0200 Message-ID: <20221118083118.9641-6-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: khYNCUotvYYnvICxiwd4j-HzMaPrwkDL X-Proofpoint-GUID: khYNCUotvYYnvICxiwd4j-HzMaPrwkDL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822125953468580?= X-GMAIL-MSGID: =?utf-8?q?1749822125953468580?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16136_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/iio/gyro/adis16136.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/gyro/adis16136.c b/drivers/iio/gyro/adis16136.c index 71295709f2b9..c95cf41be34b 100644 --- a/drivers/iio/gyro/adis16136.c +++ b/drivers/iio/gyro/adis16136.c @@ -429,7 +429,7 @@ static int adis16136_initial_setup(struct iio_dev *indio_dev) uint16_t prod_id; int ret; - ret = adis_initial_startup(&adis16136->adis); + ret = __adis_initial_startup(&adis16136->adis); if (ret) return ret; From patchwork Fri Nov 18 08:31:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22185 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65684wrr; Fri, 18 Nov 2022 00:34:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+VAwJ7aanKf4Yf07ZsAGY4u5hUE2HRfHi7P333p5ifBAGPJHo/VxdJ5IFshpN9RyMVdX4 X-Received: by 2002:a17:906:32d9:b0:7ae:31a0:5727 with SMTP id k25-20020a17090632d900b007ae31a05727mr5202943ejk.540.1668760493098; Fri, 18 Nov 2022 00:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760493; cv=none; d=google.com; s=arc-20160816; b=WS0GrN8aHhP24pX9ZTdIZBYXPHcpbaoTTMe93HlOW2yDVehHE6hnyLpX+dgLkiV194 h9SQvTeu/WtA2zVJke01/9OK++oZ1oU2/gIWOv2dIEeLah2k8HIB1o88pJWLsEYeODoY B0s1LdiTzVVHZox3ofzTP8eCdL0n7SrPKRXD4CtDQq8ZgENlvmzU4dLZhy/Gp3hnG9Dr coN25oEsogNcodrb7T8aOj9kSu6btazUZaegqOtb4yGymDvojMaG6zJ227cEqT4ZAzTY 8nWk7fy/1vTq0ikXkiuJlWjpilY2KkEi6XK7Ld6nWA5nTwLtPyf2BvP87+s84fBi7xeN Qs5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VhXYKpwD2ofKcbyL8B+kqjtl9YqEmwjJCPOdQ3f0kY8=; b=PI2hRzf+q3VK6bjuLYNu0SivPaXUakOucUhxD6itTgOCjnnjOG4+6XGtMyYCzRm+r2 GgyKSlf//RsjLBPU6LH2Jtm7O5MY5NaWRVmTqiUFmQjyY5LyzMtET6MbgOZV8xOOINh9 OGud44LfyMujxVuF/DURkROLuBSe2LE4e8hRkgZrr/VLigNKOLxf6xfvrlrwoMgb5ZYj qk8dxDeNrN+xJtQzNoF3si0PLoU8zzqLVW6IEyWrDjoYhYkR+ccFjBYda7LxF4KbxmwN 1PWRTOxA2rG1Vr567C7S7DMZBphKqPt0+IK1sbVsxYg0zd5XU/MA2OBkd8RVqwX2WwAk 3Q5A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a05640251d100b0046356ff4d4esi2887568edd.593.2022.11.18.00.34.27; Fri, 18 Nov 2022 00:34:53 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241495AbiKRIdG (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241468AbiKRIcX (ORCPT ); Fri, 18 Nov 2022 03:32:23 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5668856ECB; Fri, 18 Nov 2022 00:31:44 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5OXqs026564; Fri, 18 Nov 2022 03:31:41 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0p7hrt8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:41 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8Vehp041480 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:40 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Fri, 18 Nov 2022 03:31:39 -0500 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; Fri, 18 Nov 2022 03:31:39 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVJ021746; Fri, 18 Nov 2022 03:31:34 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 06/10] iio: gyro: adis16260: Call '__adis_initial_startup()' in probe Date: Fri, 18 Nov 2022 10:31:14 +0200 Message-ID: <20221118083118.9641-7-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 7FGRoT-wnn81Z_Ycqj3dldvgY74M6-f8 X-Proofpoint-GUID: 7FGRoT-wnn81Z_Ycqj3dldvgY74M6-f8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822202876868659?= X-GMAIL-MSGID: =?utf-8?q?1749822202876868659?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16260_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/iio/gyro/adis16260.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/gyro/adis16260.c b/drivers/iio/gyro/adis16260.c index eaf57bd339ed..112d635b7dfd 100644 --- a/drivers/iio/gyro/adis16260.c +++ b/drivers/iio/gyro/adis16260.c @@ -395,7 +395,7 @@ static int adis16260_probe(struct spi_device *spi) return ret; /* Get the device into a sane initial state */ - ret = adis_initial_startup(&adis16260->adis); + ret = __adis_initial_startup(&adis16260->adis); if (ret) return ret; From patchwork Fri Nov 18 08:31:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22183 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65334wrr; Fri, 18 Nov 2022 00:33:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5P+P4kVNNdEQWTRKf64VLHfvXv7S5tLN1id6/9PviVKN3WHrSejAx9WG+u2Xey0tgc8WPo X-Received: by 2002:aa7:c6c3:0:b0:469:646:97ff with SMTP id b3-20020aa7c6c3000000b00469064697ffmr2202901eds.402.1668760439402; Fri, 18 Nov 2022 00:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760439; cv=none; d=google.com; s=arc-20160816; b=SOSBiyW7rtReV347FWWWkeu8B5DKvf3woGYKPtammbOSlfN2AZzHVNvhEISvnWZ4Mk VSDNHQV0/MK0i57ZE3tx3Ne/cTz+Vu9idNWRl5D89XOM64VuAIMAT/d3KqxG6mk6N6vx 1fgg+dOenNg6MhFICHIUhBjimRGlUTbEnKh7jTJ4F5p20pnjRmHaMawgaifCOrTWTh9F zPwmCkvtadoNHO1ZvZLY8ndg1tpJuBTB8Rz6H2FuRsAR/7txONBDXcxR9PTc/4cA+Inc tic2bMkdJ0YKZnxYcUxkRIiSnweKdHxS/X5O9d4bCKgV9idmg/3TIn1YYClyWJ1HXEQY oz8w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iqj4rO9CSN4Rra7bO5Pn1fSiGTjmcBEco2IDNMJ4bsU=; b=H04CWiybUAhVKCx/Uo6uGMOMq2DaOJnAyXMftaZJ2Lhs3hc1zknFxhaM5h0sofeZcj 8iXiiUykYPno1L9vabSMRQSPwjv7yJVfwQSWmL2+hP1AqK8zL4vZM9T5hrf1ZAtjhUuL 35w1w7FRLqLKXEGm+J+MQquErxx8WfQMD+jPq8k00KIphvBbBgPWB9YfIJLkJxII+84V Xa2tYRwky2DGCeIXcHH3ZFoZrg0ekkIr3W4opa3kyX1DJUNOTsfcIVv79kLxAahQ66VW QJV7uEmlPsjbhTg3NsSr4O8O5vWPd5cFgAkZKMKM5/7qu/AexQtQRVH9ROZ2N5D6QK13 3MIw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn14-20020a17090794ce00b0077d854aa10dsi2837988ejc.57.2022.11.18.00.33.34; Fri, 18 Nov 2022 00:33:59 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241477AbiKRIdC (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241467AbiKRIcX (ORCPT ); Fri, 18 Nov 2022 03:32:23 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7480056D42; Fri, 18 Nov 2022 00:31:43 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5TtKb003086; Fri, 18 Nov 2022 03:31:41 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stpw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:41 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8Ve2m041477 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:40 -0500 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; Fri, 18 Nov 2022 03:31:39 -0500 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; Fri, 18 Nov 2022 03:31:39 -0500 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; Fri, 18 Nov 2022 03:31:39 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVK021746; Fri, 18 Nov 2022 03:31:35 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 07/10] iio: imu: adis16400: Call '__adis_initial_startup()' in probe Date: Fri, 18 Nov 2022 10:31:15 +0200 Message-ID: <20221118083118.9641-8-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: AEwWphYVjE1pMZIhTntV2BduFVxh4AwC X-Proofpoint-GUID: AEwWphYVjE1pMZIhTntV2BduFVxh4AwC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822146629078254?= X-GMAIL-MSGID: =?utf-8?q?1749822146629078254?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16400_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/iio/imu/adis16400.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/adis16400.c b/drivers/iio/imu/adis16400.c index 17bb0c40a149..c02fc35dceb4 100644 --- a/drivers/iio/imu/adis16400.c +++ b/drivers/iio/imu/adis16400.c @@ -445,7 +445,7 @@ static int adis16400_initial_setup(struct iio_dev *indio_dev) st->adis.spi->mode = SPI_MODE_3; spi_setup(st->adis.spi); - ret = adis_initial_startup(&st->adis); + ret = __adis_initial_startup(&st->adis); if (ret) return ret; From patchwork Fri Nov 18 08:31:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22182 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65233wrr; Fri, 18 Nov 2022 00:33:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HLvEjFt6pEhUD9IuyJKH1e4InT/Fa8VNYifnu7RNWanmz1eUmn5eNyvRFVRvlwScsv0K+ X-Received: by 2002:a05:6a00:2b4:b0:537:51d3:db1b with SMTP id q20-20020a056a0002b400b0053751d3db1bmr6784429pfs.42.1668760424195; Fri, 18 Nov 2022 00:33:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760424; cv=none; d=google.com; s=arc-20160816; b=PeysRvWvsPZh4d6wRDI7P4qdamvvRfJ9qXlMNTTq/uus9EvIa7pqtticP2UE6L+3nx YBCDDyiViA2MiUcVig8l6uAEhLLtr+h9uiJODF1rOskz+C94qNMnFC+EahWi6oMVkcJm oXIwOO2icXOEQrgWTdMSgAKwPQmb9/eNOtLYV8o3Du2PveTjzptAVuvXe35p3Q6fVBgV RXQcsNOvfzsNI+kRIFTSKAk8xYrmYQ+RQc4Q10n3f+ndhTApVaEdCC8ki9u5xun9beb9 lM8WrKofUfmKy7HxRKguswwei71wvOfBCvwi4/ow4o8bRUHFmm+M7XnqIzJ5RajTfsPd c69A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/aPELs6Wr++DpO3clV8rliiJ6hMAtz5D+6tACmoxwOY=; b=h+k0OmnNLS9KIQWKW6UNeClgweXlDnbZ9pD5gPf1dew73rBKJl4UMF0tYIbfZRYSt9 TqRd7fLwMDtnGw1DCJ3Ff7/+ly7pNP1zTiRfl6zL3rl6AsxJAXmqB2VD15agTvl9XBps SflUN2FPyvJhUQigJGaMWFXx2asgaC2z9891D4KLCZHu8mP+nooLPOCXi0SvfRMgae37 KY6DW54dB5lrh1uprmm7VkiFmauz1Swp1LEJbHfnmOy9euVvOtKgD+8YQA2/89gmSEZx vrUxEUpFjLfeeifCFj9YSy5osAYLD3YzBbssxZuQuVA7UQs4a5H4LMcV+HdFiv/BHI16 wibw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a056a0010c800b00557e3e7c420si3358348pfu.213.2022.11.18.00.33.31; Fri, 18 Nov 2022 00:33:44 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241450AbiKRIc7 (ORCPT + 99 others); Fri, 18 Nov 2022 03:32:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241464AbiKRIcX (ORCPT ); Fri, 18 Nov 2022 03:32:23 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD7D56D6F; Fri, 18 Nov 2022 00:31:44 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5V7xW026679; Fri, 18 Nov 2022 03:31:42 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0p7hrtc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:42 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8Vf4I041485 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:41 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Fri, 18 Nov 2022 03:31:40 -0500 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; Fri, 18 Nov 2022 03:31:40 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVL021746; Fri, 18 Nov 2022 03:31:36 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 08/10] staging: iio: accel: adis16203: Call '__adis_initial_startup()' Date: Fri, 18 Nov 2022 10:31:16 +0200 Message-ID: <20221118083118.9641-9-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: cu_ASXfzuebfWlGIdU8qyZcntWE218H2 X-Proofpoint-GUID: cu_ASXfzuebfWlGIdU8qyZcntWE218H2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822130495851670?= X-GMAIL-MSGID: =?utf-8?q?1749822130495851670?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16203_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/staging/iio/accel/adis16203.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c index 62d5397ff1f9..c0e4c9266b5f 100644 --- a/drivers/staging/iio/accel/adis16203.c +++ b/drivers/staging/iio/accel/adis16203.c @@ -285,7 +285,7 @@ static int adis16203_probe(struct spi_device *spi) return ret; /* Get the device into a sane initial state */ - ret = adis_initial_startup(st); + ret = __adis_initial_startup(st); if (ret) return ret; From patchwork Fri Nov 18 08:31:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22187 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65925wrr; Fri, 18 Nov 2022 00:35:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7p5+Dg1db0MoMY/WfbAhyyy6smrI18RP89jEMgeeoOnebJv6HCJkR2a5ujcn1Q5duUhTOF X-Received: by 2002:a17:90a:d58a:b0:20d:48bc:6666 with SMTP id v10-20020a17090ad58a00b0020d48bc6666mr6723077pju.98.1668760533460; Fri, 18 Nov 2022 00:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760533; cv=none; d=google.com; s=arc-20160816; b=m0kLlM0y9Z/B/Gvg7OYfx74uUTlfqwh43BD0Hp9uM81djTtwz2axDF5GdCMGPAz7lj KagOAXJkGCjtRITl3qjuTS3wFaZRi7z+0EuCkXBuVUJuqVjITLx/4Es8kIlrsz7l0bxm JpK9x6FAOgAghBjajWLPcEUmOgqN4s1dlvXqQCJAuOZOp/kSql2ihP1q0UnNrwqQ7FRL 5zf6p/YELsUlHd6Tc2UsJY3DiQ2IHygmJ4FGiCiulKTA7IgWdTGvI9I1h7Mupp/nqw/8 qNOcaVWNOJeJggt/k2rdyCiUDsI8naMZ6IL45H1Sju0b2s7evFnyyb/xXlpIEsYDz4FL XDuQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ESHkC3hybJHEIGPIuQ9rotKEQwvPVKOBZEb9LXTbvMA=; b=VaTFMQj62eWmkBGNuq9xCGycz2sDnzjIinBSgKaTFbp1pk7jJIsMu8oM0IUWslnqM/ t+jlByYvwLxPRmyBuKy6cnoM9cZMrLaX4UDDgLE0qphrs8sfm1SUMbFbhuWpk+t0SmIp NWeLHdatomEdzwZdnF0OJUBO0qRIuT7VdUsoFaRB7+MNnp6yHFX7XaWxKKaJ3SsF6odb VZbFW1s9vnuSY8fkijCavqhDcNRXtdqT0ORW9NzfoBaXmL8Z7q1QQD3CoZEnjW5hwWYY SQgU0wYoQ/is8TdUFoIjv9NsmL1yUX6UasBJpQb3OwR3yRLaOVHP5xzFrwjYFns5MWkB IVBw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020a65530b000000b00473d2c2c06bsi3307601pgq.423.2022.11.18.00.34.55; Fri, 18 Nov 2022 00:35:33 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240943AbiKRIdZ (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235176AbiKRIcY (ORCPT ); Fri, 18 Nov 2022 03:32:24 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF0868686; Fri, 18 Nov 2022 00:31:47 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5fmMp026664; Fri, 18 Nov 2022 03:31:45 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0p7hrtr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:45 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8ViJB041494 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:44 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Fri, 18 Nov 2022 03:31:43 -0500 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; Fri, 18 Nov 2022 03:31:43 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVM021746; Fri, 18 Nov 2022 03:31:37 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 09/10] staging: iio: accel: adis16240: Call '__adis_initial_startup()' Date: Fri, 18 Nov 2022 10:31:17 +0200 Message-ID: <20221118083118.9641-10-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: EMFa5Cmly7oqk0GhPrTgjRCB5xjS8hFU X-Proofpoint-GUID: EMFa5Cmly7oqk0GhPrTgjRCB5xjS8hFU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822245100993890?= X-GMAIL-MSGID: =?utf-8?q?1749822245100993890?= Call '__adis_initial_startup()' instead of its locked variant in 'adis16240_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca --- drivers/staging/iio/accel/adis16240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c index bca857eef92e..337492785f04 100644 --- a/drivers/staging/iio/accel/adis16240.c +++ b/drivers/staging/iio/accel/adis16240.c @@ -414,7 +414,7 @@ static int adis16240_probe(struct spi_device *spi) return ret; /* Get the device into a sane initial state */ - ret = adis_initial_startup(st); + ret = __adis_initial_startup(st); if (ret) return ret; From patchwork Fri Nov 18 08:31:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 22186 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp65767wrr; Fri, 18 Nov 2022 00:35:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf42B6R/7ZmBBuu/gsqbWrBYeCWKNvKdTeL3O6qggGh8D+GIi01OP/l1jq96D68Ffsbc3Per X-Received: by 2002:a17:906:d85:b0:7ae:3a88:9487 with SMTP id m5-20020a1709060d8500b007ae3a889487mr5041314eji.193.1668760508117; Fri, 18 Nov 2022 00:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760508; cv=none; d=google.com; s=arc-20160816; b=kf9UaDqv20x9FDoBeamQ2LuLpsh5jJB9Q8H3DTJEpMbL49LXWrPdy/dd+d0zo1Fkiv I+PILVBs1w/xfnuUOYkjdtND4RiHP37QYI2+6qumOtmiRpeBsJwsMQzeE7ErGmNQgI03 Eq83XGrrHpAYtbsTPgph5XtEi4Ej2vjgGpj+41JkdExPER5x5uRkSPFYNyyduSzDF0AN u7pq/EMuvetOxsAJbzvAH9mJsOJWxHvFmmCRzRrhL7W/SSrAi5te6h17n9GrCrjmw5xb LbgTTM/P0/L8VKbbcvpSEn+u+cff19XxaPUnRIYm8g/U2LUxnelgyCZa3RSqAMvW4mP4 fLTw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hy6NO08MYLpc8PzwIugqm6nlFsK0vLCf8iDqMlnzR4E=; b=qP9/o0GuS8qtc+JGdPip7+ja0r/CdATG7Av9WWdP1XSUy4tjObg0/eOre21Tku/nAm Z8p7Lv8AIrjQjKwjUBU04r5H2VC2eqHuOnOsKfh/x6iiPZf0gIM3C9LL29hcJqJPQ6Mq 0GkUpkjbjgro1c4YR6lu8HPNxYQtdmdTPpr5Ec3Y7kAwkxSD3aKJgGcBJjZjUCbiYG2z mnYl5+VAvLTxSOyrKzu7oQyvp67oht/kYUHxTCcSU53+scR18Z5ESdAgCF34dcaG4tJV yjiPQtL4W1F/NoaBOQC/ja9k8fX7Vkftc30JMcEbRTmAk6AindmOwb0/iNNsAxw4rW7f JdUQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a056402524200b0045be16903d0si3271831edd.310.2022.11.18.00.34.39; Fri, 18 Nov 2022 00:35:08 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240846AbiKRIdQ (ORCPT + 99 others); Fri, 18 Nov 2022 03:33:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233999AbiKRIcY (ORCPT ); Fri, 18 Nov 2022 03:32:24 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA39E57B4C; Fri, 18 Nov 2022 00:31:46 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AI5QKdD003183; Fri, 18 Nov 2022 03:31:45 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kx0n9stqd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 03:31:45 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2AI8ViuT041491 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 03:31:44 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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; Fri, 18 Nov 2022 03:31:43 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Fri, 18 Nov 2022 03:31:43 -0500 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; Fri, 18 Nov 2022 03:31:42 -0500 Received: from rbolboac.ad.analog.com ([10.48.65.139]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AI8VMVN021746; Fri, 18 Nov 2022 03:31:38 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v3 10/10] iio: imu: adis: Remove adis_initial_startup function Date: Fri, 18 Nov 2022 10:31:18 +0200 Message-ID: <20221118083118.9641-11-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118083118.9641-1-ramona.bolboaca@analog.com> References: <20221118083118.9641-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: InpJEpZgS3sdAEmDrgOtqCKjKw4dgzdg X-Proofpoint-GUID: InpJEpZgS3sdAEmDrgOtqCKjKw4dgzdg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211180053 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822218865003482?= X-GMAIL-MSGID: =?utf-8?q?1749822218865003482?= Remove adis_initial_startup function since it is not used anymore. Signed-off-by: Ramona Bolboaca --- include/linux/iio/imu/adis.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/iio/imu/adis.h b/include/linux/iio/imu/adis.h index f5432f3b2b22..e39092ab6683 100644 --- a/include/linux/iio/imu/adis.h +++ b/include/linux/iio/imu/adis.h @@ -427,18 +427,6 @@ static inline int adis_check_status(struct adis *adis) return ret; } -/* locked version of __adis_initial_startup() */ -static inline int adis_initial_startup(struct adis *adis) -{ - int ret; - - mutex_lock(&adis->state_lock); - ret = __adis_initial_startup(adis); - mutex_unlock(&adis->state_lock); - - return ret; -} - static inline void adis_dev_lock(struct adis *adis) { mutex_lock(&adis->state_lock);