From patchwork Mon Nov 21 12:26:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554154wrr; Mon, 21 Nov 2022 04:28:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7D0nRPV2DYabllf6o7HK/XezobeJDePcM9Icpo/FmD9R3YfNR4zGCX9tuJGZt4yehvrs/3 X-Received: by 2002:a05:6402:1744:b0:459:2d37:dfbd with SMTP id v4-20020a056402174400b004592d37dfbdmr1357026edx.336.1669033715861; Mon, 21 Nov 2022 04:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033715; cv=none; d=google.com; s=arc-20160816; b=NN3FO97NTDVtuLAwIOFEbOT/9ToxELHOqTvhFG+0OQoxu518+KwL2hCvhGsRsaW46y MjGP6O5HSPpd8fJQCetB0f0QHyLA+G9CbYVjDOdFgMOd/7WrDlDx/GaVob0y6YuzuSVY OXB/3Xv3KWHuYaJXpiV+pf6/rlDORxfthtG8j/fGlNsizJ+UVGTbB5Z+YUmzJlbLog37 /5cIEtNQpiP0JLDd+Tu2Wkw0cIYnEeYqujaFihakzqr2THz8GRpSt9cyUqztmWoMU3a2 4vVMXId8TnDcMujp8eltL7PNLr7ugQflaGFLjWW2inIP4NldyrPMoHUAhPkMJuiDFEGQ /Ibw== 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=90VQCUAM9Whzrh6HP5bxd1MchK4jjJfuJmSZ5FVs7To=; b=rlHLC+Lj6JH5eltfOkRiXmz9hQIpLHvSFyGboeEuccZaIhxct4EVO0ZH8Qq013o8ht rC+92Q7qxAmQWBBq7WKmitV/WG2HUgf5HwJWSvpenSL7pokyBPA3PyM/jKuZlMwzDQiA BjEA8OnD7BeRYMaHni70pdglzs5osdBoZgFrgdgwryu2Ma0WhC0L8y15OS5oOHRLkbn1 YgrrFT/jaGJMXWWDE/gAotRpjo7aBE8jqMcd6xPG1q8Iw6BB2um36HUi5BOFjZk3rpWq cFnmN2ovlgZ7V0hkTipDINydoDASsJDH8i9eET4YMWsydWGTaLdzTYiGlkEGgOL8vpFy NE+g== 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 og17-20020a1709071dd100b0079ed0a585c2si7273936ejc.261.2022.11.21.04.28.01; Mon, 21 Nov 2022 04:28: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 S229919AbiKUM13 (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiKUM1Z (ORCPT ); Mon, 21 Nov 2022 07:27:25 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C4DA65AC; Mon, 21 Nov 2022 04:27:24 -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 2ALAt8rH021572; Mon, 21 Nov 2022 07:27:22 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav40q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:21 -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 2ALCRKgx004958 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:20 -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; Mon, 21 Nov 2022 07:27:20 -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; Mon, 21 Nov 2022 07:27:19 -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; Mon, 21 Nov 2022 07:27:19 -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 2ALCR74p020739; Mon, 21 Nov 2022 07:27:15 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 1/9] iio: adis: add '__adis_enable_irq()' implementation Date: Mon, 21 Nov 2022 14:26:47 +0200 Message-ID: <20221121122655.48268-2-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: cAT5b4vGNS5-OK2P9qoJ4tqPniVm0Yew X-Proofpoint-ORIG-GUID: cAT5b4vGNS5-OK2P9qoJ4tqPniVm0Yew 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108697814498455?= X-GMAIL-MSGID: =?utf-8?q?1750108697814498455?= Add '__adis_enable_irq()' implementation which is the unlocked version of 'adis_enable_irq()'. 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 Reviewed-by: Nuno Sá --- drivers/iio/imu/adis.c | 28 ++++++++++------------------ include/linux/iio/imu/adis.h | 12 +++++++++++- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index f7fcfd04f659..bc40240b29e2 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) @@ -445,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; 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 Mon Nov 21 12:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1553953wrr; Mon, 21 Nov 2022 04:28:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ExFfD60w2wZY3Xsn8LY9wMjYpD4NuxyFmepwHsnRPTZyUf7sbxzhApzyuIJCBFC14QB4O X-Received: by 2002:a62:f252:0:b0:56d:a243:7d86 with SMTP id y18-20020a62f252000000b0056da2437d86mr313731pfl.38.1669033684786; Mon, 21 Nov 2022 04:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033684; cv=none; d=google.com; s=arc-20160816; b=Bv1+hlivTTldbq/ti8bNy6toO43lwQLekBVyvROfA9IR7uRd6f3XEhuu24w2ko9g5P wY3hFJwSl77g3W1c4irPBCw6YIf5eB82cRieAVWo7bgT0sCUYnmyt3Mg3BOStmBe+wwb oePVOBGEwTL9WLClHu04Guy58WkPRT3pOvlKt4lLg9nBOuy3s9H0J/WsI4hIj0cPBySM 88srwfIib+SKgIkk3EHLoZSZjxTi5CX4qC44+hmRZJMeKekIraWXCIukBGyA2m50LmLI UebXE45TXqJHIlPovlRAB5pW5LmXkmHxyMsJYNvG+Pm/H1q1hIqUyOyy0tqYnZV+Urvq aEXw== 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=djn/qtpQEy4A9Vq8oYmopqzqmWlgM3fapgwRPGAoq3c=; b=P7sR7QNLygd3n57GzwH+HwISQ2N4agrtYtAe7086PMgJuFgzuH/6xObJ8Z8MRFFWzo vhSTx/LkkF099a+KIqNS5eD1Bey62GQEFg6nEEkjEBA/b761mWahv+Vixg1pO69LKrNv Mx2KsjBik1HvwkCG6tr7K10KFG7GhwBGyii3RO8CD24oZH7HliVaATY45mXbGJOopAp+ uWT2phTAnq5tnfgTguxYvtcyh0x4OjZaUk8+whKU4WIASEX7r8OfyVH+SGbHmFmxM8iY lDvehVg9g4DGifvRevTVSQuYodYFwpy/boMnaMrY9LN5Tqh43BevLyoY3EKbySfze1q5 dQVA== 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 i18-20020a635852000000b0042aff6e2846si10862747pgm.251.2022.11.21.04.27.43; Mon, 21 Nov 2022 04:28:04 -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 S229735AbiKUM1g (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbiKUM1b (ORCPT ); Mon, 21 Nov 2022 07:27:31 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0EE38A7; Mon, 21 Nov 2022 04:27:27 -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 2ALBVYeQ026820; Mon, 21 Nov 2022 07:27:25 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvx9u00t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:25 -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 2ALCROGT004973 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:24 -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; Mon, 21 Nov 2022 07:27:23 -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; Mon, 21 Nov 2022 07:27:23 -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 2ALCR74q020739; Mon, 21 Nov 2022 07:27:16 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 2/9] iio: accel: adis16201: Call '__adis_initial_startup()' in probe Date: Mon, 21 Nov 2022 14:26:48 +0200 Message-ID: <20221121122655.48268-3-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 0DhlLljWwNhX0wgC46CTNgTvW_wP5Ffm X-Proofpoint-ORIG-GUID: 0DhlLljWwNhX0wgC46CTNgTvW_wP5Ffm 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-21_12,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108665269248285?= X-GMAIL-MSGID: =?utf-8?q?1750108665269248285?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23705 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554222wrr; Mon, 21 Nov 2022 04:28:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vawVtOWUFGC7SrBF85ZJvg6ilHb7oMnEmUomv3mpYak1apxPcqO7LMiteeFTD9xnPr9J7 X-Received: by 2002:a17:907:8d02:b0:7ad:f43a:cb07 with SMTP id tc2-20020a1709078d0200b007adf43acb07mr3088861ejc.562.1669033724778; Mon, 21 Nov 2022 04:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033724; cv=none; d=google.com; s=arc-20160816; b=IqGhrOlKqLlACD8tKnaYij+HwLQ17qR2u25Irqr1Ksm+ETn2hthMFRCHKyq9NBhrtg 4lHqC0KhTG5LSar/4PQGVlNPoNSRkmes7tTp1gaPgtKxUf+vYcy/LfELlrauKN/BO1KK UdPCF+UXNC8Z89GGzv40ZYmXPknyFH2NPkIDVFk3axpqvwE7V907oJMM0N46TYQr1n1z 4Z2W0Vliz0S0SdXYWJYAC1HKLPkaeGq2vtBgJo9NlYKfMx+MSf1kSIPJBHA09xnj824o iKBDY7Co2hwzGfRnzomfR8xojBSEcFuZhDNmH+8ndQKExkn8bHH6xEW/4W1YYZ67gZrV PyyA== 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=9bgWRT3kN49Xwiqiz2ejRqYxY/2R4vuNsEJuGm8WOEE=; b=xKxhQDRhdXsE5ohZxens9C0Rxw3IQvsIo/JnsLru2OWyEcUGapLHqCXoh0ZYgB2M9M x2goAMK/7hMVd8Hm62Ilv2Mw/kATUZ3IrBV1zWqNqsxmbitibSYEW6irinkG3BmookZh mdFhs/1bFREvAxnsxpksWRslcTCB/j+9so2pPyVewCg5VkS9+DIMqd09tSZFHer89sZ3 +x8gT/gyQVNJTV0fokkHIw/mZf5mpeA0ZNswIOz98RgJftvJW50OKaSR64eJfa1uA696 ZPAOWOze+/0F0e6mWCoUPHUylYEnJVjTq1slcl/NTpC7D6l7obaBJyRQu147EEy7ATC6 J3nA== 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 g14-20020a056402090e00b0045d4b7ad0e4si10105940edz.400.2022.11.21.04.28.14; Mon, 21 Nov 2022 04:28: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 S230319AbiKUM1r (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiKUM1d (ORCPT ); Mon, 21 Nov 2022 07:27:33 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B06FC640B; Mon, 21 Nov 2022 04:27:30 -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 2ALALF1v021981; Mon, 21 Nov 2022 07:27:28 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav41q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:28 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2ALCRRRe004988 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:27 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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, 21 Nov 2022 07:27:26 -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; Mon, 21 Nov 2022 07:27:26 -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; Mon, 21 Nov 2022 07:27:26 -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 2ALCR74r020739; Mon, 21 Nov 2022 07:27:17 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 3/9] iio: accel: adis16209: Call '__adis_initial_startup()' in probe Date: Mon, 21 Nov 2022 14:26:49 +0200 Message-ID: <20221121122655.48268-4-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: FBrNb1hoPjixBjVGFnBqelHevmNnhXrg X-Proofpoint-ORIG-GUID: FBrNb1hoPjixBjVGFnBqelHevmNnhXrg 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108706771619894?= X-GMAIL-MSGID: =?utf-8?q?1750108706771619894?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23702 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554084wrr; Mon, 21 Nov 2022 04:28:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lOj3+W7Jc8iVPYBa9g/SEeqO0/TbCUvx2krJif9OumqICkjsQSMJ9xar2SYxNmTTkSuxn X-Received: by 2002:aa7:d4d5:0:b0:458:7758:7ed1 with SMTP id t21-20020aa7d4d5000000b0045877587ed1mr15832616edr.315.1669033705406; Mon, 21 Nov 2022 04:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033705; cv=none; d=google.com; s=arc-20160816; b=FVX2J0CjKiUqpShG0/4RbQe6fKMJZTCNpJCDP9xSDLeFVqRbVHPP7xVvJ/W7HfoY5+ iPCM39jiD/FlQ1Avrnu3rQZdkOalIrz3WEN4UzM+rk11ZtXzyRU433bnzZDM8L3ce872 ctRi9V1/F8jvVCALxm79HRhR9xf59i8FgjVi6qqQhalBviN0JDOUPrpnZw2kF5TWqE7x bsMsT5uZxw2klXuQKdm/uTqMbXb65bx0QmZ8PSZStqSrvkf1agXEAPvLt+LEnyA9WTqa ORwrtDXFNVr3e16oFc1pN+HB6mRFIc0QrpgJTRzqceoJUGWx1nrkM13+zlpwtm3JTa5b 602g== 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=DkBYtWceZw8qA4sn7fctyKK/ZESSNQUPKAIG9YlQ84I=; b=sCDGpkKIqmD2S0RQNOzf27xMWAplu4l6CSaHRjyI7gC7ky92CqgeuEb1AqO7L67hn/ rS0ZzsZF1fxH1x+OE6aqulmlqk3Nf3CPgydfSxSDu00okCHQnYIMGca/SEb9u2FxnCZn V7cmKjFeRWlh+Xt4Jt/0ePg+q2OOZjojwYfRyWiT3BlX4ZpJm+Or3+wKTwFYZHVxgyik C01PqjxwIywhpnB6Xzt5GBfaU0L+lcqkVtkNYMIV2ts0LJE6G8vlUfQI0cAIiyA1P3ap M8Y7PVNKZlJ42eDZNsuAEKlChk93oiS7EScqDmoysSKcyyisw44hPXdPid71PRnKyxl7 D1xg== 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 s5-20020a056402520500b00468f6919522si10221355edd.564.2022.11.21.04.27.54; Mon, 21 Nov 2022 04:28:25 -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 S230180AbiKUM1j (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbiKUM1c (ORCPT ); Mon, 21 Nov 2022 07:27:32 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A44738AD; Mon, 21 Nov 2022 04:27:27 -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 2AL9wtjM026869; Mon, 21 Nov 2022 07:27:25 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvx9u00v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:25 -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 2ALCROFA004976 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:24 -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; Mon, 21 Nov 2022 07:27:23 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Mon, 21 Nov 2022 07:27:23 -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; Mon, 21 Nov 2022 07:27:23 -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 2ALCR74s020739; Mon, 21 Nov 2022 07:27:19 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 4/9] iio: gyro: adis16136: Call '__adis_initial_startup()' in probe Date: Mon, 21 Nov 2022 14:26:50 +0200 Message-ID: <20221121122655.48268-5-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: yTO5mSfo7Qw3Jpl-OWAuh9vzNSGAq_eo X-Proofpoint-ORIG-GUID: yTO5mSfo7Qw3Jpl-OWAuh9vzNSGAq_eo 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-21_12,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108686608654658?= X-GMAIL-MSGID: =?utf-8?q?1750108686608654658?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554161wrr; Mon, 21 Nov 2022 04:28:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf68DBOf/i3gOs4grkClBSvVIypnMQYrkOxckeZrp1K/jhlUXPuVgjF7QXw2nTwZolVfnoEa X-Received: by 2002:a17:906:381:b0:78c:b8b0:9d35 with SMTP id b1-20020a170906038100b0078cb8b09d35mr6730911eja.586.1669033716948; Mon, 21 Nov 2022 04:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033716; cv=none; d=google.com; s=arc-20160816; b=tajnelIpnkC25pRyBMrXCgrLSwOz74B8Ix0PXfjH57/e0KOGv7MR0/TUpk2pvdFPNu t1xL+i3Cj/Jpm/+TgCV2pssnZlmZz+/rb1oovSsqHnd1IFqmCLfb99VbDYsdke1nJu29 tKxBIR/KGUTnoNwD6mLKgAqNllXyBd5P3dpUaeaxOGYMz0Zk+T8LVfwbVEz5e3y23z+n UTLHO/tZeU62KUPWWVsAAzQEHNMP9Naqkr9eBZnbFUP9bbWYsEXIObKFsPv2ioUnutq+ DnuGeRzx8ETAK0zyGRHTgxZFSlyMX6DBueq2hHXh06c8SEKEgwwl+r2rnkUDSwLJzMQl UMjA== 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=bxWobhKsE8hN9EXMIXKUIpPSEamMV9105QpnlV0nUCU=; b=g1VFOdQErt7GZySZRoUjI3wt0P/u722h8Qb6sPo7kRGa3MuKpPb7iO0mnHp4DOx1bu vdAFRpsqZc0WSAB8K1EQPbfgW84GtwcbV8ea7ooj+GDSQTE9MmjgsE63rkP2AR2+yRIo v6yVIq0MrQgL1FMqoFUhvuZy1k/9DyXnrkMPld/11WOiRzeRfgnddaWJVruE1tzHy03t lvecci1qH2+uXf8pELB4WNB5EG9XFF02IDuG1MJmxssHrP4G0yPsd1OM/xdQgV85v44O i8DKfq3gJv9Vj2QgZniXsOyxqjvFqL912F7MNKzI9IFliLRxJzJfILXqTras9dBOK76H NTzQ== 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 dn12-20020a17090794cc00b00773db351c39si10158347ejc.64.2022.11.21.04.28.03; Mon, 21 Nov 2022 04:28:36 -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 S230006AbiKUM1n (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiKUM1d (ORCPT ); Mon, 21 Nov 2022 07:27:33 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B61F63AB; Mon, 21 Nov 2022 04:27:29 -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 2ALBobC8022011; Mon, 21 Nov 2022 07:27:28 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav41m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:27 -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 2ALCRQKG004981 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:26 -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; Mon, 21 Nov 2022 07:27:25 -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; Mon, 21 Nov 2022 07:27:25 -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 2ALCR74t020739; Mon, 21 Nov 2022 07:27:20 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 5/9] iio: gyro: adis16260: Call '__adis_initial_startup()' in probe Date: Mon, 21 Nov 2022 14:26:51 +0200 Message-ID: <20221121122655.48268-6-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: MYo-9tg12XwzLT1z4uKpPPONvetR6eJc X-Proofpoint-ORIG-GUID: MYo-9tg12XwzLT1z4uKpPPONvetR6eJc 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108698637791777?= X-GMAIL-MSGID: =?utf-8?q?1750108698637791777?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1555123wrr; Mon, 21 Nov 2022 04:30:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OY+ZDnyi7Yp1vaXVBJUB3MnCXgs/2+0CK2SBpcBTTAncC0doLHNBIz6/KLvKs5SuTFz91 X-Received: by 2002:a17:906:b17:b0:7ad:821f:a3e6 with SMTP id u23-20020a1709060b1700b007ad821fa3e6mr1395914ejg.688.1669033834853; Mon, 21 Nov 2022 04:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033834; cv=none; d=google.com; s=arc-20160816; b=DvG2eENh70gLBIvWdebSEOl1mdScwChfx16GvjJ6fiwU0XRHiIWR7to3yYMmZJvaWV amXR3QRsN7cxLL/gehQk6G1U3XCRVWiS+bWw0RvAyOYHrwHuw4m8ay3QvOZV5/CC4cPS Xh/IJ0kPKTyHgNSOMnwhwXibpxa6GzhqTOQT7T8lpWwzX5KSDE7ZoB8JdIp+knpRftXj px+ahezwwpOiWa4tNXsnBA6+1/vTQ+mLK3rWQNWcKo5FBjBDQw4uVFIJdwj/3AJPXsMr OmFLToIrw+CgxyLkruBpT8KgzAuHd9t+/mLqL1Kv0J3nQOIRTq/z9Igg13VL3ihx2uD4 KT7w== 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=j5XxmW1Tu1CpRw/o2/TYu4Dk70It+0ijHkDg8T34HUg=; b=uPhJGhH/gAWwmme8nWGvXn529VwEnAFEpIwa1LR6Oa9aG37WHQnEvQhyaxXFpyOqq2 +fuk6zPSkRPF1xLDiiXKcIbBObs7vTW9UV8iPz7jmO09m6QQ2uKhnT905K3QiH5hq8yG /kOZ/h9h/9ygD0ugSqgV5y6ILIDJpEODw54wuUh9+GesPkwM1wo4xsU1ELWuSufwOkND Sspfunj2CmN+f4EI/wtG+SPAAYDNAJkj7g1owCpt26ZQztszBDVrR1op7OHDmeneirsX JqFagB8qy8EVVgViZ+hrhKuVKAXEHnTRMMOvyVIxPowp6X/dvASjkg3JdmE6X+BgMbOT 5LVg== 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 f21-20020a0564021e9500b0045c3f6adb7csi10356956edf.215.2022.11.21.04.30.07; Mon, 21 Nov 2022 04:30:34 -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 S230380AbiKUM1t (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiKUM1f (ORCPT ); Mon, 21 Nov 2022 07:27:35 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A7C6411; Mon, 21 Nov 2022 04:27:30 -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 2ALC1QgA026852; Mon, 21 Nov 2022 07:27:28 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvx9u01a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:28 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2ALCRQll004984 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:27 -0500 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; Mon, 21 Nov 2022 07:27:26 -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; Mon, 21 Nov 2022 07:27:26 -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 2ALCR74u020739; Mon, 21 Nov 2022 07:27:21 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 6/9] iio: imu: adis16400: Call '__adis_initial_startup()' in probe Date: Mon, 21 Nov 2022 14:26:52 +0200 Message-ID: <20221121122655.48268-7-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: LZZNoYFK6t07i3WPZDrE2kcWjPtSdrCQ X-Proofpoint-ORIG-GUID: LZZNoYFK6t07i3WPZDrE2kcWjPtSdrCQ 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-21_12,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108822513760586?= X-GMAIL-MSGID: =?utf-8?q?1750108822513760586?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554489wrr; Mon, 21 Nov 2022 04:29:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf70zbMkES0DtvkGPp/aPQzfwrcGAGLTWCAdU87p4CzXkR0j+4CntYZVW2dIsXYJX39GNnQH X-Received: by 2002:a17:906:fad8:b0:7ad:caf4:9e92 with SMTP id lu24-20020a170906fad800b007adcaf49e92mr15371079ejb.510.1669033763771; Mon, 21 Nov 2022 04:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033763; cv=none; d=google.com; s=arc-20160816; b=THQCh+z9YbonK18wh+eu7uO5slBtKev02eX4N4xkIwb9PMNNJMAVc5QAOtCELt+y/z GYzpFLeAFz0INI4il4WhZIiCaM1GAEY896Tl5qdhA+gEJyfaQZ40NIOKw6qMDbxC4WMs pwiqD8Po8C4ByJE6fRSv4zDCeY9p6wY1rLJUyWmNkrg8wubRWZrE0iJ3NkLi2AMrrwHX d3vaySOSg6M9s7NlYEcTVKhIbkA8LS9vO3jpAw+Klz+uawcPH0AhW8DuPV8ZENP6KBcg SyB7Pg84RbBFTb3yN+kn3rQX9502QNZI9FahN7xkp9kjVcbcTMd13WZurzmLlqMWoeG7 ujUg== 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=5f9dMgwe6oMEyOe5omFa19C6n81Xe6wB1fIJw25lcgg=; b=ba5wD17Zo9z930A6xup5mVqXaICkyZaTVtrvolq25Qz7gk1ta1Mm9joE4XJDLweRnV UEYfO0liIy8IcZVEma2zp5m8WQS12HkRQofLMXbBsHArgWwWVu0l9le70kNKusoh/vdl +f3qT9372UpKKQHXxKJCfya4pJskS4vPkp0fD4RivLSaHCcMfr4sVMf9sZAVLntl67ge Zyhyw7GVYY+mOhW69c8zUX616itBwypUmJ68h0U+RYEClzT8DfJSYmUeRlkdFe9OvR8A Z7w4NHWfYwSvmjLp9mcCQX2xgrguV6G4Aoe/T5zq1D/o1GFOEI4s9zADEQdbxPGqre/r s3zg== 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 g3-20020a1709065d0300b0073866c0672asi12639783ejt.73.2022.11.21.04.28.56; Mon, 21 Nov 2022 04:29:23 -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 S230459AbiKUM1w (ORCPT + 99 others); Mon, 21 Nov 2022 07:27:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbiKUM1h (ORCPT ); Mon, 21 Nov 2022 07:27:37 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0022C751; Mon, 21 Nov 2022 04:27:32 -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 2ALAB9BX022765; Mon, 21 Nov 2022 07:27:31 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav422-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:31 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2ALCRT5G004993 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:29 -0500 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, 21 Nov 2022 07:27:29 -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; Mon, 21 Nov 2022 07:27:28 -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; Mon, 21 Nov 2022 07:27:28 -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 2ALCR74v020739; Mon, 21 Nov 2022 07:27:22 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 7/9] staging: iio: accel: adis16203: Call '__adis_initial_startup()' Date: Mon, 21 Nov 2022 14:26:53 +0200 Message-ID: <20221121122655.48268-8-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: Owt_W0de-OV5D2tPxLxk1knTvzLV4ky2 X-Proofpoint-ORIG-GUID: Owt_W0de-OV5D2tPxLxk1knTvzLV4ky2 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108747666352074?= X-GMAIL-MSGID: =?utf-8?q?1750108747666352074?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554656wrr; Mon, 21 Nov 2022 04:29:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gB1WVXvyPd1dgxSdkn75m8SAjFpvAyrj9cFP41ac6nJhIIqUf667nObJqPMLDA2MWu/Eu X-Received: by 2002:a17:906:f6da:b0:7ad:86f9:1d70 with SMTP id jo26-20020a170906f6da00b007ad86f91d70mr1612054ejb.179.1669033780657; Mon, 21 Nov 2022 04:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033780; cv=none; d=google.com; s=arc-20160816; b=qNyGz+tGnyaJ+2xeSH3rOq43ID0BuQ96uYMmNATQcEqjoG8JvZJnUi3HpkicRtPc+M 1DrsrjT2jkXM9biL5+Ue/GpAXaM8SSXsyf3E0hV4yeWV4DPZuNMWeD2EPgWmELzTUkCy HRBqTfiQ4+FMFISAKDXrNXd8p9TsO3xqLA9hm0mSI8ZxHoNGrkK6jEG2viR+TjxgpiPS wmlZfHUUkWGQ10TFxsMD/PymzXwH8j0JjyR+bH+3ab2Hf0JokWHJlY5rVbrpXCifVxKu VJWy56h82aiGhb6Yp1MpdSL8oJ7/BwRkz4Pme5v6NJYGJZRr7jYwSXD3xaWUSnB+K4y3 GAsQ== 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=6SmFFlTKiQV3vL/BpqKmARyu/+0g94t8j/ycghkmZw0=; b=sXfHDv0ref2rEJJsHQMSumhj/r6YiZVcCTWeqtBjdsNHf3Y1+iJSHtNL+k6YvETCVh jGjV6StkJ7FrkDPhCNg0Hpdd7DHE8Jsvn+PbuZV4uU5/gM9JxAIYZQUMMMMlroH6Be6k 3n1wkRqCBWDg4ojYHxt9OiBN804URKqfQV6D1q5G/MsKQp4PKWxcFjssbScHGpUYE7ua b58X8lWMw9gbkMwgqF+LnzfA3iSn7u4AKkMgVMJMPpA3HmeiqLHvTHCnOGVn89OvOqgp qwxT0JJrHYMHzPG4qhbboHsl8+r5mKpbKZMAcd28L6G1KzNi6l/PLyH8qFCRf/T+xAkE jnaw== 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 v4-20020a056402174400b004617f587912si8477642edx.279.2022.11.21.04.29.11; Mon, 21 Nov 2022 04:29:40 -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 S231205AbiKUM2O (ORCPT + 99 others); Mon, 21 Nov 2022 07:28:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiKUM1j (ORCPT ); Mon, 21 Nov 2022 07:27:39 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9F5D136; Mon, 21 Nov 2022 04:27:34 -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 2ALAWZwl022658; Mon, 21 Nov 2022 07:27:32 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav428-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:32 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 2ALCRVob005000 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:31 -0500 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; Mon, 21 Nov 2022 07:27:30 -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; Mon, 21 Nov 2022 07:27:30 -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 2ALCR74w020739; Mon, 21 Nov 2022 07:27:24 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 8/9] staging: iio: accel: adis16240: Call '__adis_initial_startup()' Date: Mon, 21 Nov 2022 14:26:54 +0200 Message-ID: <20221121122655.48268-9-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: LYugPcoV3mP0dpRhgkDqecnPD7P_fyoO X-Proofpoint-ORIG-GUID: LYugPcoV3mP0dpRhgkDqecnPD7P_fyoO 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108765154905288?= X-GMAIL-MSGID: =?utf-8?q?1750108765154905288?= 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 Reviewed-by: Nuno Sá --- 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 Mon Nov 21 12:26:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 23707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1554596wrr; Mon, 21 Nov 2022 04:29:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SgplOzxxK0HYqPY82wfoZ/WmoygCaMjRT3E+9i7dLYpBw690mrzVX+BP3WBR4XGnn2E0O X-Received: by 2002:a17:906:ce28:b0:780:8c5d:f86 with SMTP id sd8-20020a170906ce2800b007808c5d0f86mr15193248ejb.391.1669033773589; Mon, 21 Nov 2022 04:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033773; cv=none; d=google.com; s=arc-20160816; b=B94Q7RZeLs714hq8e99EO5JmOZFd0DsYh1+qYI1DdLJ7wRbGwyAzm5RLgmOtN7B3ie JtqG1BfDrf/cSTnUUlzx4MsNQ/LwyS3kESYWjamAY+uILuLoqbL2RIy6RPRu5c7xZxHr Rq47Bpp9WQ8mWGnDaP14GsQP50CJmAe/LaMPbmn6BYL26cDYIb2cqT6MoSgtJwUaMMcB qMw4yVrYo5dLmiBBHemECgo8dGS1z7qAAlmx+HpmWswH/e1uTG5TBzzhah8awrUNQdV6 8aG/buyWMd7STxO7ye8gZVfHpJZhloWUw0AmmidyO+GiDkTp7zMKbGhqDEFnquR/56l+ 5h0w== 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=Td8PZu6stLMXGtFiOUaTXOheVtHVH5+eBuqYgCY7PKc=; b=pv6bu8hQNOCjFXWqZq7yx6VVwVjrr0PJSnv+HZZ0G9YhqS4vlxEdPSLjq+9O9GEFkW +RzdFK+cvmLHqICuDiX7fXySFaKvnBlAPaMEsa8SOyShDv19Kpw3ImaVQGCMeku4qpUQ rCZlSNooqsyJ3EMzp/n5xAPea9pJujM5P75XLw+509kuVDXH7u0CcHLoGzqndzhM+RjC qJH4FRy4XZh91VRRvveLXr21M0Cr2jznzxh+SL7BU67LcJIf3uiYkWURMadhVPFqOepv OpSLnp4CYcKUcTvhbExyZW+MzQ03N4HGOPULeVsEwtUH5zlkUc+CsTm/odsFE95amIza Nm/w== 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 hs36-20020a1709073ea400b00791bcf8aa5esi10149898ejc.739.2022.11.21.04.29.06; Mon, 21 Nov 2022 04:29: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 S231168AbiKUM2C (ORCPT + 99 others); Mon, 21 Nov 2022 07:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbiKUM1h (ORCPT ); Mon, 21 Nov 2022 07:27:37 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AC4C768; Mon, 21 Nov 2022 04:27:34 -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 2ALALF1w021981; Mon, 21 Nov 2022 07:27:32 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxsvav426-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 07:27:31 -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 2ALCRUPs004996 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Nov 2022 07:27:30 -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; Mon, 21 Nov 2022 07:27:29 -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; Mon, 21 Nov 2022 07:27:29 -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; Mon, 21 Nov 2022 07:27:29 -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 2ALCR74x020739; Mon, 21 Nov 2022 07:27:25 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v4 9/9] iio: imu: adis: Remove adis_initial_startup function Date: Mon, 21 Nov 2022 14:26:55 +0200 Message-ID: <20221121122655.48268-10-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121122655.48268-1-ramona.bolboaca@analog.com> References: <20221121122655.48268-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: wwIKFKtk5DIoqmi9gb0P0fbcee220HRm X-Proofpoint-ORIG-GUID: wwIKFKtk5DIoqmi9gb0P0fbcee220HRm 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-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210097 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?1750108758515714695?= X-GMAIL-MSGID: =?utf-8?q?1750108758515714695?= Remove adis_initial_startup function since it is not used anymore. Signed-off-by: Ramona Bolboaca Reviewed-by: Nuno Sá --- 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);