From patchwork Tue Nov 22 08:27: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: 24191 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2076592wrr; Tue, 22 Nov 2022 00:30:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AW9I+3U2pAye/nuKT5g/Jry1QTqeit4zYZBLbz0cM4PV6BdxcB8MnECSm6Dr1k/IE8Ptr X-Received: by 2002:a17:907:2b15:b0:78d:51c0:d4d1 with SMTP id gc21-20020a1709072b1500b0078d51c0d4d1mr18507541ejc.161.1669105808525; Tue, 22 Nov 2022 00:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105808; cv=none; d=google.com; s=arc-20160816; b=NDTOPEcfZXznOZUopmI8CuGGezaRHIZf8aVoVL4dA7w9P2svzdJ13KAALKNTdq0+LE MuLi2zZf7rDPRK/Xw4Gr2s3QzwQmtELDlZQu/WirbCeuFcmwcMX2JtWRucX8e7HYvEpU rdoLJvhlqUCmm3Y32Q+iQ2+9ZClVl9T5BKmvbA0rp1cOcyQQsQU3AzLRlFGvUKgohZD8 A7nt4RuaCSRObJW0LLS7Pu9IpCH4qzN4Nkypcy2n/TYDZVW4k85KUkoGRHjxi8yNwMYa cRlRUUSird+k+5z3pVltHxDJK325cY8Gsmwlwr6FEHZ1++mlALtMHCqRVcbDcHqynxes LB3A== 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=x53oCQNiMViH1/AXbFaYK6eoX/a5Vf9dj1/YXAMrGsU=; b=ZDSDyl/gO1YWv5epOIeZX0LYpRc1EHdRHfpHiUS3bQNxLlSfqLQeyRV9KECHtsH9q7 ZjMFiYLxHYxQI3fJsgQk0U2WbPh8Ko5J9l8y9vTLUyARMNiLCo/rmkgkXS2U+AaO8Ppi aGvQt3p75gFKNJqS/SKNiApi6//V+J6TIpoFFclmk3l8hEcf4C6eRFw7RIECatHGrP9A Z/qNfHHfYoezIIa3z7aU9tSXs+2kPNvv7XviODI447V1ZW5lpYEOsaR7Vo/g8FCENgyi hLgpyKr2vNTa4IrUEfPokDzIeyOizKD6tJd8FEGy5CaBfr7fDtFgDUohw6ib0+iyjPt0 N4Mg== 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 fj10-20020a0564022b8a00b00461f7a83e58si10424694edb.46.2022.11.22.00.29.45; Tue, 22 Nov 2022 00:30: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 S232800AbiKVI2r (ORCPT + 99 others); Tue, 22 Nov 2022 03:28:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232707AbiKVI2d (ORCPT ); Tue, 22 Nov 2022 03:28:33 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F44827DDF; Tue, 22 Nov 2022 00:28:32 -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 2AM6Kt6s026886; Tue, 22 Nov 2022 03:28:30 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvxa17pg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:30 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2AM8STT7046736 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:29 -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; Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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 2AM8SFcX016751; Tue, 22 Nov 2022 03:28:21 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 1/9] iio: adis: add '__adis_enable_irq()' implementation Date: Tue, 22 Nov 2022 10:27:49 +0200 Message-ID: <20221122082757.449452-2-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: IvnYifdcJGceA5_eh5AF3bznawy_Ck3r X-Proofpoint-ORIG-GUID: IvnYifdcJGceA5_eh5AF3bznawy_Ck3r 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-22_04,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-2211220062 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?1750184292285034451?= X-GMAIL-MSGID: =?utf-8?q?1750184292285034451?= 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. This fix is needed to remove a deadlock for all devices which are using 'adis_initial_startup()'. The deadlock occurs because the same mutex is acquired twice, without releasing it. The mutex is acquired once inside 'adis_initial_startup()', before calling '__adis_initial_startup()', and once inside 'adis_enable_irq()', which is called by '__adis_initial_startup()'. The deadlock is removed by calling '__adis_enable_irq()', instead of 'adis_enable_irq()' from within '__adis_initial_startup()'. 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 | 13 ++++++++++++- 2 files changed, 22 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..d789ecf8d0c8 100644 --- a/include/linux/iio/imu/adis.h +++ b/include/linux/iio/imu/adis.h @@ -402,9 +402,20 @@ 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, enable); + mutex_unlock(&adis->state_lock); + + return ret; +} + int __adis_check_status(struct adis *adis); int __adis_initial_startup(struct adis *adis); +int __adis_enable_irq(struct adis *adis, bool enable); static inline int adis_check_status(struct adis *adis) { From patchwork Tue Nov 22 08:27: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: 24190 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2076380wrr; Tue, 22 Nov 2022 00:29:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf63Eb+f7xQVVv6hAH/C3mlc7ZFiImIbBh4Lp7Ir9Kj07agTEn2W5dLUVks/NpMNsFIfuA6U X-Received: by 2002:a05:6402:4286:b0:458:7489:34ea with SMTP id g6-20020a056402428600b00458748934eamr6482103edc.264.1669105774523; Tue, 22 Nov 2022 00:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105774; cv=none; d=google.com; s=arc-20160816; b=SRMI398UA5odtVvHmQBbEM5bQygE9V6AuI2ey4/lOYxYPZNQNbx5Zk8mfBI3FJOvH8 U1bz5++kX3KLPgy/BZZii5i5Jex/AfhupSwjppIjvqQWmur0BOO141lb9KTCcTsEqI6C MmSoLGo6kMsgp2SF2yASIjj5kCBm5uAXiT33syAJZatkUrizQ3HNAxoKYiQhE0F3auXd oVXUqO7uhf23Q77aag4NxFZMOo/xakE0ldx08DITW36M5ngolXrsfc+5lzSdCt3qzvPF DD2TP0p+xr5Kyq2N3ldN3itilhhussdGzcWa1KFYX35TQ2t+EwkIa+RATurGrJ8POlAR xUpw== 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=grkEeVoHYQUDsldzYvaqBGjRO5RaqU9PcJCt27zZcZkixJNGPAj2KglW13v4EcrBNC 97eWF8r74k9JaesRms8ijafaOFHuYyOeFxizublGp1T/9DDvtyeWJ6zYZfx//d7+I6lT 8Vk9orHHBtJ7fru8WUa+MgdffoA2rEgaLNr2KWbmRmYdm/5A3NuNCjji3vugAwC8KCti AWjCmTuN+gwAXstGb2SENAI/43MZwG1nScVQmSlFtO52BqsZRFqK41ElsK3MpWBg3gtx Sm0Xy1PDqOXxtFlnTV254UHR11X1EhL1hjXWNZnVq2UydTKiPqWr6dECBmU9dn2ZZzCQ 5Diw== 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 v15-20020aa7cd4f000000b00462dca18096si4753846edw.520.2022.11.22.00.29.11; Tue, 22 Nov 2022 00:29: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 S232774AbiKVI2l (ORCPT + 99 others); Tue, 22 Nov 2022 03:28:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232646AbiKVI2b (ORCPT ); Tue, 22 Nov 2022 03:28:31 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157B929C98; Tue, 22 Nov 2022 00:28:31 -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 2AM6UiaU026869; Tue, 22 Nov 2022 03:28:29 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvxa17pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:28 -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 2AM8SRbc028622 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:27 -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; Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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 2AM8SFcY016751; Tue, 22 Nov 2022 03:28:23 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 2/9] iio: accel: adis16201: Call '__adis_initial_startup()' in probe Date: Tue, 22 Nov 2022 10:27:50 +0200 Message-ID: <20221122082757.449452-3-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: a4P9aZcdY5KW4BSLqKHz2eRv_CresfrY X-Proofpoint-ORIG-GUID: a4P9aZcdY5KW4BSLqKHz2eRv_CresfrY 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-22_04,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-2211220062 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?1750184256632090150?= X-GMAIL-MSGID: =?utf-8?q?1750184256632090150?= 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 Tue Nov 22 08:27: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: 24192 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2076875wrr; Tue, 22 Nov 2022 00:30:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zpmXxuO0JGvpF08Un6yXqyjmdrd7me+ASWM+yvVYcdUiy9Swkl8lumvEHkHVoOE/Ly9Tk X-Received: by 2002:a17:906:4c92:b0:78d:ad29:396f with SMTP id q18-20020a1709064c9200b0078dad29396fmr18928077eju.165.1669105847176; Tue, 22 Nov 2022 00:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105847; cv=none; d=google.com; s=arc-20160816; b=vni/TAL2mVLddZT91cf9wwaDNdBaQf2G0esooe5MgZUIgraKN4GpxEBDWp1altLj0q T7ngOtaZsHSgx34Bcq5l3NQsjdvHo1YZfeKMLWrZi1Zi/Hj2rCN5yzExaNgaRxAEm3Ds 6jrqC22bRNZyt39V10nwmtpgnoG+C41Q1+dUsPlqCembuiSZqqfcZDBNCBc3bw1h9bU/ Fgr8ANRn2eCb4ItaR+wRgCx+v8HNRrXiDG7DUovvkUOz1I9b3i6bUouAi7db3wmTOUKp 2riTx/c0OmXv+7nqvjOMiXStKH04owHP3Qon/+YBHltn87e+mSk1WkpZz27xLQHtXpV/ o/ug== 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=XI9AgnPxJ1uURi0wdBpyamj1bmmC3en5DxCh/xU0DtKr3lyxYStWWRISRQWcH+9VrZ +4bMdHgCpaD1aVJnJ+vPDggXkT5dSDfW3CSDN4q61PJ0JrJnDaTzV6VlRp5FCWAfqOWD p3N0WTz12JBhr6v5KYrgqZH3ds4ybatUGFe8rxIWovdu3hDv03B3eV/jETaU07tf794j QsCmTkvRc52Dby/z9/9OmRGgP2oBt6k2qwV8GWHbL9/uRaxnoFcGAqN6dDhjt0Cu6G6W PhmOTFVymOYyddoeWPS/iAv235zW/sQMdxRSrdNkTpM7lufX5VrzFxLftwsoMt6drpgP M9Vg== 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 wv4-20020a170907080400b007ad855bc09csi12956296ejb.595.2022.11.22.00.30.23; Tue, 22 Nov 2022 00:30:47 -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 S232806AbiKVI2t (ORCPT + 99 others); Tue, 22 Nov 2022 03:28:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232716AbiKVI2d (ORCPT ); Tue, 22 Nov 2022 03:28:33 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D60B329C97; Tue, 22 Nov 2022 00:28: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 2AM7U3dj017047; Tue, 22 Nov 2022 03:28:30 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he3j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:30 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2AM8STWK046741 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28:28 -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; Tue, 22 Nov 2022 03:28:28 -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; Tue, 22 Nov 2022 03:28: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 2AM8SFcZ016751; Tue, 22 Nov 2022 03:28:24 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 3/9] iio: accel: adis16209: Call '__adis_initial_startup()' in probe Date: Tue, 22 Nov 2022 10:27:51 +0200 Message-ID: <20221122082757.449452-4-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: fOMFJHrMEogWabbvOFL7RKZBDrN6PmAW X-Proofpoint-ORIG-GUID: fOMFJHrMEogWabbvOFL7RKZBDrN6PmAW 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184332832013178?= X-GMAIL-MSGID: =?utf-8?q?1750184332832013178?= 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 Tue Nov 22 08:27: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: 24193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2076937wrr; Tue, 22 Nov 2022 00:30:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf59FmCywR7+RnDS26JSjSHUwu4gU4i+N4PKhJqjUgl3reMFdMo9p5AFz+jQHjO9feiqCccP X-Received: by 2002:a17:906:114b:b0:7ab:1b4c:ac6e with SMTP id i11-20020a170906114b00b007ab1b4cac6emr5502606eja.669.1669105855267; Tue, 22 Nov 2022 00:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105855; cv=none; d=google.com; s=arc-20160816; b=yK1bOfCBJ6C7SRmAYPLxKHTs/mxaRNBFxV7XOgzfSw1c87oonS3rfAYfrIKPYASuWz 62L6cldVbMT5vzWaZ7F58qlZHuPmf4XWvuBeq9qgVM4qq3g2Oe5l3hYB/GrDTC+x1nwt R06obCKmY76wGnm/zFqZ5OEppSaNc6JtS1glvWoPxEOcU7sHiNjmTxQ5dlntfqS54jGa p6RjYAiN4R2bMAiee+8l0hunFF7YPmhHj5+WHXUNEoIk2uU9F98bf0yQNtQzWdo4Qes7 RXpcMX/V9/XLxNillkt9hzu250gXBfqVZEQyDceq4tK9VC2jsKsHi2pl9O6hoEVNn/LN kMkg== 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=xFIkh+fMYkxAvGQUTySVbZpNDXRM9OVmrmw1vlADOKzSlZgRzgdwAXhxEJvjzwklPg m8tDmlbIIgfMkkBSfFoFfSy5/lEy9TTbjBa6n/ywyt10Sdkf9F2bDXqTuEFUscJq17kh U9ANkJCvC8fZ/aybE8VPqSI6WJuNYwdN5NhB/SWZHsOL7zz/pWTlmVs3winfv5kLWVI5 oZp0sHc0wnI5r4cC0gptUaz5QxnE/khfZvo1s5GV0wdfHFrk+yhKIqqsn+WdpmRAH3l7 sTqre+QYx1QEc2jzZ7szVey+coPl6mcui327uJ+5XVaxffLbnYUahBoW/cVTNK5wUvXN /R2Q== 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 nc31-20020a1709071c1f00b007ae74740f8bsi12694404ejc.386.2022.11.22.00.30.31; Tue, 22 Nov 2022 00:30:55 -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 S232818AbiKVI2z (ORCPT + 99 others); Tue, 22 Nov 2022 03:28:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232755AbiKVI2h (ORCPT ); Tue, 22 Nov 2022 03:28:37 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197521F9DA; Tue, 22 Nov 2022 00:28:36 -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 2AM7VCMR017058; Tue, 22 Nov 2022 03:28:34 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he40-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:34 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2AM8SXFL046744 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:33 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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 2AM8SFca016751; Tue, 22 Nov 2022 03:28:26 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 4/9] iio: gyro: adis16136: Call '__adis_initial_startup()' in probe Date: Tue, 22 Nov 2022 10:27:52 +0200 Message-ID: <20221122082757.449452-5-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: Fg5BH13uCpDEvocycsv3D2_HV9Ew23BB X-Proofpoint-ORIG-GUID: Fg5BH13uCpDEvocycsv3D2_HV9Ew23BB 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184341178475409?= X-GMAIL-MSGID: =?utf-8?q?1750184341178475409?= 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 Tue Nov 22 08:27: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: 24194 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2077032wrr; Tue, 22 Nov 2022 00:31:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JtCKVACTcLxP1dtwxWuqNA2AgUcXmgj4sJ/xfqQjb487PcyMGy/T5s5OZ/IaeGMq5rHvo X-Received: by 2002:a17:907:cf84:b0:78d:4795:ff1f with SMTP id ux4-20020a170907cf8400b0078d4795ff1fmr19546580ejc.331.1669105867756; Tue, 22 Nov 2022 00:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105867; cv=none; d=google.com; s=arc-20160816; b=CRW/BKf6EFzIuchSzeyJZVSAui7tE5Lm9wsnfO/wZUVzGvqH2EG5ufr+eFC43bjp0j VX6BW5G0TDjx9xJz19rV1xLD6OoG0LCftIBBSPf9i0mFA/34iaPF7ohYEekr3ZgZqLph U/P2BXMhAbtr26nOsnk0Pb1iefADh2F7+iqKpO2rqX2L1P1kXmGNvDemFnyh2N4U2NnP sOGyF1oIUpOXNhc+kFpXvlLij+Jvou/sTQKce4QMa3u+bkgW6GmVJvLf1OoQlxGX0wJS Kt3yQY4bkHlrOLOac6mKxzvhcJsoaN1bRb0KJMObWGJoQL4LBPatssuk508DnVnz013R T1mA== 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=YV/QqJUS11mGe4e4QdXiPzGhiyK5F4Dd/NoL39cKsWaokd8ajgXjiu7gmILy5UteYs i7NTWd3HqSl5l5mqkgjDJvUzgIbd8y4FKv/xiAPv25Q9UnP+dXosl1aGs+LoqIhY8SQN tmQDi+6X/0Ajs9tKZpJvXxNhkkG2XzoDe/qu1Njz2LnO8+2FTs9+SlKpysrkIBt68LbP NX4srjtX0galwb8o1a++IwJP0/R9ftQ6ZvdYFklFZHYnsvdvAWvoAGCOJgccCB7klFfp f9C7glagLkSgsqMardAoyZcVlh31fk2nS6DBEbDyKctVotQfc0/73D/ia0xTDhGs2y6y wOfw== 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 t20-20020a056402525400b004661bfac392si13220119edd.311.2022.11.22.00.30.44; Tue, 22 Nov 2022 00:31:07 -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 S232727AbiKVI26 (ORCPT + 99 others); Tue, 22 Nov 2022 03:28:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232754AbiKVI2h (ORCPT ); Tue, 22 Nov 2022 03:28:37 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2328421256; Tue, 22 Nov 2022 00:28:36 -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 2AM7ffdF017045; Tue, 22 Nov 2022 03:28:34 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he3x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:34 -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 2AM8SWav028632 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:32 -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; Tue, 22 Nov 2022 03:28:31 -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; Tue, 22 Nov 2022 03:28:31 -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 2AM8SFcb016751; Tue, 22 Nov 2022 03:28:27 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 5/9] iio: gyro: adis16260: Call '__adis_initial_startup()' in probe Date: Tue, 22 Nov 2022 10:27:53 +0200 Message-ID: <20221122082757.449452-6-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: AzG9yT56cMRhRMR0xdIy5a-0jMLYDjWB X-Proofpoint-ORIG-GUID: AzG9yT56cMRhRMR0xdIy5a-0jMLYDjWB 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184353877032184?= X-GMAIL-MSGID: =?utf-8?q?1750184353877032184?= 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 Tue Nov 22 08:27: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: 24198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2077204wrr; Tue, 22 Nov 2022 00:31:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dT5frqu5LLMPUCsK2SY2HT0Z5UKRGERnGVxLeOmQFS5OqKpDZIUe8uVNWyf2ThglcS7zg X-Received: by 2002:a17:906:f204:b0:79e:8f4a:c5b3 with SMTP id gt4-20020a170906f20400b0079e8f4ac5b3mr3178509ejb.223.1669105889132; Tue, 22 Nov 2022 00:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105889; cv=none; d=google.com; s=arc-20160816; b=gKALFAkOLHaUujIaPdkLQ6NAkC3U7BdMTlppZK3aE9oPiPK7Lq2Aqf8HjnE0JsiIFG 2L8l+5fVwMr8H5Js01Sn8y8i/I2ltKGlXnv0GDsOJ6cObpqCQ3x4pu3Qm0MieK6kufDF 3A42846f6DylIebzC8NuOKCIJR2SMqsJEumtes5QTNWfR6c03v8dN0ZNm/JVUJ5OnSRl 1vjxKWgnYFbbclTwNYwWo5sdKpvzybhRlDrns50vzTqnzcD7Clruk0l89IEWr4yZ5ASP VcZyTOup/dG8nG0ce0XsJK1BibAo+xwFuhdIGz8BQZpBQbSUiB3gwPn9FQNbJFvcbSJ+ /xBg== 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=LR82ZapZUFHkffh2WPl/H+1bSNGe+lbx9Kcqnvol3apLPFqTe4yz1vYbi7krDy6n3T 2zcislC2maBhQiC8d9mP4BpD6XdazkMwYC2gXzSXFAo/GGIRAICEgT37+unjn1h6xZly jbtJnqpKRj6g8ZZ1cfttCRm4wmGjLlPwGC2IuyCmsPLwGrdo8WmHjKNz7HOIty9uujGh G6ynBcpfcHPpRmsFAFoWt0YUbDFXBaaBIGysBOVraAXXSz+3TVURGgoAgqqo4L9ol/EJ 1bL5rLzN7G0ug29GGAnnewZ3gao6hA3VL9MEeCMwU4TC9X3G+NrBJe5XpmHzpko2ZOZH 9chA== 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 e18-20020a056402191200b00468310367c5si13147029edz.214.2022.11.22.00.31.05; Tue, 22 Nov 2022 00:31:29 -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 S232854AbiKVI3L (ORCPT + 99 others); Tue, 22 Nov 2022 03:29:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232771AbiKVI2l (ORCPT ); Tue, 22 Nov 2022 03:28:41 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB6D827DDF; Tue, 22 Nov 2022 00:28:39 -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 2AM7ffdG017045; Tue, 22 Nov 2022 03:28:38 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he47-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28: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 2AM8Saii028641 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:36 -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; Tue, 22 Nov 2022 03:28:35 -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; Tue, 22 Nov 2022 03:28:35 -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; Tue, 22 Nov 2022 03:28: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 2AM8SFcc016751; Tue, 22 Nov 2022 03:28:29 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 6/9] iio: imu: adis16400: Call '__adis_initial_startup()' in probe Date: Tue, 22 Nov 2022 10:27:54 +0200 Message-ID: <20221122082757.449452-7-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: GmjEh4rxLOkkNUJ2ZlgLjN4UHn34I9db X-Proofpoint-ORIG-GUID: GmjEh4rxLOkkNUJ2ZlgLjN4UHn34I9db 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184376463280495?= X-GMAIL-MSGID: =?utf-8?q?1750184376463280495?= 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 Tue Nov 22 08:27: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: 24195 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2077092wrr; Tue, 22 Nov 2022 00:31:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf78UVFeJp4EMPKr30s7BHE17iRr1/+wNXJlhD0vMIO/dIMMvDmNYIEiWvND7uV2g6CtQ1O1 X-Received: by 2002:a17:90a:880f:b0:212:e996:704a with SMTP id s15-20020a17090a880f00b00212e996704amr29851212pjn.13.1669105873280; Tue, 22 Nov 2022 00:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105873; cv=none; d=google.com; s=arc-20160816; b=AJHAy/8qePxb6TKzwrC+KuyJHNBhkILoCEJsmwlkbfTVin4Quz1xLi0H89y+hTH1n2 NV/nXHYnOSZx84hnOz4cvpIUcOmsSldZneVdweAfAXwMUatB5yNQYbZcNYGYHTjZEwa/ kKr09UGepexXVEmv0bVfCD953ttDG0DBRzE21w5Q6wmitFDXBGYHesYHh+7GlrShJ+Na o5yRAS35GeX3qv1YxlAIXe+36NczwfFGTuFFKlQc4LuaWs51ivyizgn3Oj4mcjQzeQ4p iFy2wz9OWWaIY95nysjhgLrbSOsmhWcBJijQWzRHinIGNXAksCXpoJZ/PwLHd61nqzhB mNrg== 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=uIe/Lkhp/ECEGC7THBenvC1bqmWCYAxni+C4SA9Wp13k4b8m/6Gu6mAIoHxg4B7lGL P982x37L8D8hbkQOe7fZ9GlnhYz97EBlT+rXUEWztp05HlVd/+Yi7EFWVyxdscNz2/im +Gh87q7nzCqSYID48qdm/HZvmRcvTbw8EUjqhAK89UcC8j6QqWrWmqyj4l5EH4brbHtv 0I7akb3aet8lSbS3VZLGDQM0bPL22nnstmnsCQHGt28Mw1wC65gzcUw8PDJSiObZKFNN 3cQih0Z1rAOx0FPO2cFqsxWj+yxDgzRmNbzhlds1iF2EDWzUqdbcOOzrDC7cHMAPzRss 4CCA== 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 9-20020a630c49000000b00473c5330abbsi13656839pgm.158.2022.11.22.00.30.59; Tue, 22 Nov 2022 00:31:13 -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 S232837AbiKVI3F (ORCPT + 99 others); Tue, 22 Nov 2022 03:29:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232769AbiKVI2l (ORCPT ); Tue, 22 Nov 2022 03:28:41 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444B221256; Tue, 22 Nov 2022 00:28:39 -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 2AM7nfhh017048; Tue, 22 Nov 2022 03:28:37 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28: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 2AM8SaBn028638 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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 2AM8SFcd016751; Tue, 22 Nov 2022 03:28:31 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 7/9] staging: iio: accel: adis16203: Call '__adis_initial_startup()' Date: Tue, 22 Nov 2022 10:27:55 +0200 Message-ID: <20221122082757.449452-8-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 3qqxbe8IGiSj75_q0_M9-9EGXLDnVg2G X-Proofpoint-ORIG-GUID: 3qqxbe8IGiSj75_q0_M9-9EGXLDnVg2G 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184359992521920?= X-GMAIL-MSGID: =?utf-8?q?1750184359992521920?= 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 Tue Nov 22 08:27:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 24197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2077186wrr; Tue, 22 Nov 2022 00:31:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6nUvhrVXkXxzrJcfSsBU11SIo2gV8IAI6rfmNgYR3xb0zivIx/XcvnRu9hbA9hCdb4wq/7 X-Received: by 2002:aa7:c04f:0:b0:45c:f13b:4b96 with SMTP id k15-20020aa7c04f000000b0045cf13b4b96mr20074831edo.129.1669105885360; Tue, 22 Nov 2022 00:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105885; cv=none; d=google.com; s=arc-20160816; b=marYlvVTBxSl78OqzIJya81axMiETPDlEEKLCEXDAS2CiKm3K0hdc3VKkyPQd/x3j+ Cl/IU7XaqUSGxOwZ1c7zjoxOdvtNXEZdjdTi9BmiPsAnn2T51PEdUefaUO57VRePgrwg 1ilb6vnGqjlq+iR+EE/m2YYTJ9qf92hrFdpoq0NF/NSW0+WV4VywD4TKVLJo8d+WG1Cc fTNjfr4uEHvsseVHmscMHUipUDFhgrSo+hzNhXAeUxLr8zxK/sYEtsPUxhAWq1DReHTh YDsmYFmefYHm1mpVzznEmXK/n7fdY7UttkoOSoRljfijlf1c1CECb0XJSLucYAg8ha/Y Gvtg== 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=oEQEq//egv1tuKsPsKEZjB6O34PVfxt+rBACTPuXt4C7l121xkZeaKI1wmrewptT4b jPlNfqNuNcA31whwIM5x2qX8XhN297Ta9heSsTkUHHYmEHwkLTP8JB1sFlPYmNdNbEFI GxFJsPvmfSDLijx7gtpR5s3+IDXmhtzjglrl2sC1iRsQvknFF62SvPe3MmQ5QKg85yx2 njv9eoxkyS8ukLFb4xWmsmPceb52Uzbm1WUCHURBk7Wvw8CUWsTV3gSKK91MLdSb+Q3P t74vWLvnK8bjBVt+L71f1dtQvgDJBwmKoqNzqnh/6665A3YfsQSew7DdB/MZIw8DguL2 1+8g== 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 g6-20020aa7c586000000b004696e8f74cbsi5569550edq.537.2022.11.22.00.31.01; Tue, 22 Nov 2022 00:31: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 S232817AbiKVI3I (ORCPT + 99 others); Tue, 22 Nov 2022 03:29:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232772AbiKVI2l (ORCPT ); Tue, 22 Nov 2022 03:28:41 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2392A278; Tue, 22 Nov 2022 00:28: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 2AM7ffdH017045; Tue, 22 Nov 2022 03:28:38 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23he4a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28:38 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2AM8SbSD046750 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28:37 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Tue, 22 Nov 2022 03:28:36 -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; Tue, 22 Nov 2022 03:28: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 2AM8SFce016751; Tue, 22 Nov 2022 03:28:32 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 8/9] staging: iio: accel: adis16240: Call '__adis_initial_startup()' Date: Tue, 22 Nov 2022 10:27:56 +0200 Message-ID: <20221122082757.449452-9-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: kJEx912ThKY2xQ4yihXBddAwesFe9_Us X-Proofpoint-ORIG-GUID: kJEx912ThKY2xQ4yihXBddAwesFe9_Us 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-22_04,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220062 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?1750184372817309567?= X-GMAIL-MSGID: =?utf-8?q?1750184372817309567?= 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 Tue Nov 22 08:27:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ramona Bolboaca X-Patchwork-Id: 24196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2077132wrr; Tue, 22 Nov 2022 00:31:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SD2dWQGWY1hqxUMkpGtNRyJ6xSo9oiBPH+KYYA3LIKobmX3jhrcOJE5wrcSmyKIlqTANh X-Received: by 2002:a17:902:c409:b0:182:bccf:619f with SMTP id k9-20020a170902c40900b00182bccf619fmr15934971plk.9.1669105879319; Tue, 22 Nov 2022 00:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669105879; cv=none; d=google.com; s=arc-20160816; b=FvQZ0xJDYS1nMB6QFFfYzV3YwWwoPtVag+LtEgb6X52CCgFl66r4HISMUQqNr6lH/O WhNKB75dubF9RVj17msEHll0biHFdO1MJzV1zdHptZIrcr/lJOccuwIoe/g9dHhmN2q9 HmjBJW7vjwPUH6t2EQC2ad2m5rLxJCOsGto+S0Wfu3bosTXexrXsChkdtPm+4zFbfQ8u jQc3ljaGwXEAeckuiRHupsijpY1HbA1vrOQhvkp/Yn5AiJvkKFEJ20eae5YmnoZ7Ztbq 3bIJaFuH7HpmuSmTBIHtbCWKhOtntIZRg7eRsXTX+XMdecOeZzpsZMnwWr+5IX5hyguh UcWQ== 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=sFeJXMQdxLge7G8Ww4IuJPCVvK3/eMC17SYEHzn4w/0=; b=m54ZBKhnJFJnaK4VHOVLsXr3vqoIllbpz7I00M4kmDZRJM6XmDsMJd5k9rKi5QNX+i G3UhzwQsbkosGyoQYjNCDne8Sy5U8PnjPeTvVqKgVcb5r8e76Bb3EInXzndUGRrV28py IA8ELmMJUFPhcJRbp2eacKvA+U+UHAFS/7ypK+SqY9btpwpOFUewIdsyVx9o3mGcx7ab hARBAzSRObuDUdlsBsCtkeJxx807Ike1AhL7ck7qlEG+C1BBE6pjeZf05miaPhr6+nLo 9NW/bbsi5iEZl6TXXCGKSeakT0OG1GUg8sHkzK5EJL+u7Q5Gc514GYx2k5xXX7nUGdB/ IA7g== 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 g8-20020a63e608000000b004703be83ebesi1819492pgh.79.2022.11.22.00.31.04; Tue, 22 Nov 2022 00:31:19 -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 S232828AbiKVI3B (ORCPT + 99 others); Tue, 22 Nov 2022 03:29:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbiKVI2o (ORCPT ); Tue, 22 Nov 2022 03:28:44 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1513FBB0; Tue, 22 Nov 2022 00:28:43 -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 2AM6Kt6v026886; Tue, 22 Nov 2022 03:28:41 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3kxvxa17qc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 03:28: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 2AM8Sepu028651 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28:39 -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; Tue, 22 Nov 2022 03:28: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; Tue, 22 Nov 2022 03:28: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 2AM8SFcf016751; Tue, 22 Nov 2022 03:28:34 -0500 From: Ramona Bolboaca To: , , , CC: Ramona Bolboaca Subject: [PATCH v6 9/9] iio: imu: adis: Remove adis_initial_startup function Date: Tue, 22 Nov 2022 10:27:57 +0200 Message-ID: <20221122082757.449452-10-ramona.bolboaca@analog.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122082757.449452-1-ramona.bolboaca@analog.com> References: <20221122082757.449452-1-ramona.bolboaca@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 1SPcOEHy2fIBAY01plPUJlPxZrOR-e5k X-Proofpoint-ORIG-GUID: 1SPcOEHy2fIBAY01plPUJlPxZrOR-e5k 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-22_04,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-2211220062 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?1750184366687233919?= X-GMAIL-MSGID: =?utf-8?q?1750184366687233919?= 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 d789ecf8d0c8..0ace8738552b 100644 --- a/include/linux/iio/imu/adis.h +++ b/include/linux/iio/imu/adis.h @@ -428,18 +428,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);