From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6036C433F5 for ; Sun, 9 Oct 2022 11:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbiJIL4r (ORCPT ); Sun, 9 Oct 2022 07:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiJIL4q (ORCPT ); Sun, 9 Oct 2022 07:56:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BB527FD6 for ; Sun, 9 Oct 2022 04:56:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1BBD4B80C69 for ; Sun, 9 Oct 2022 11:56:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D55AC433C1; Sun, 9 Oct 2022 11:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665316602; bh=JuwAGyYUq+0tY/jXJqv6WkGInPS/MccBTwHv0B2XuPo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Jr7eFuNqvfRqmwaBri6OAi3LG/0ExX+msNdFrzzW6sJRFzZZQGSUy34t2cyJW8F++ 0h5aJK4KAP16xCcUqsCO+qtmkBqzAxGRtlxEMb5gMm5vKLo84+wyibmn5/slZW5MvO P0NHgX1exk3kb4ObHRGRaB6Rt9gZCvwaMPDdz5LZVDVYlsJh1ECzP2spUyDRdnkUxb Wz+QDhVX3vCUkLpAuMqhKvmEuRSaiSUCAVpP8BGPkPqel4JAEBYwhEPPDV8E4Cd8th 8bd/LCcIRqF+6/LCKzp7BFNyF3SqVWnFm4BTBF8xdn6jP6/RA6MP5gTtgL8v1VCihC Bf16hOHMV10wQ== Date: Sun, 9 Oct 2022 12:56:58 +0100 From: Jonathan Cameron To: Bough Chen Cc: Nuno =?UTF-8?B?U8Oh?= , "linux-amlogic@lists.infradead.org" , dl-linux-imx , "linux-iio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rockchip@lists.infradead.org" , Heiko Stuebner , Martin Blumenstingl , Neil Armstrong , Shawn Guo , Lars-Peter Clausen , Jyoti Bhayana , Hans de Goede , Andriy Tryshnivskyy , Pengutronix Kernel Team , Miquel Raynal , Cixi Geng , Baolin Wang , Ciprian Regus , Fabio Estevam , Sascha Hauer , Alexandru Ardelean , Florian Boor , Michael Hennerich , Orson Zhai , Chen-Yu Tsai , Chunyan Zhang , Vladimir Zapolskiy , Andy Shevchenko , Jerome Brunet , Kevin Hilman Subject: Re: [PATCH v2 03/16] iio: adc: imx7d_adc: do not use internal iio_dev lock Message-ID: <20221009125658.7ad8e57d@jic23-huawei> In-Reply-To: References: <20221004134909.1692021-1-nuno.sa@analog.com> <20221004134909.1692021-4-nuno.sa@analog.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Sun, 9 Oct 2022 02:00:22 +0000 Bough Chen wrote: > > -----Original Message----- > > From: Nuno S=C3=A1 > > Sent: 2022=E5=B9=B410=E6=9C=884=E6=97=A5 21:49 > > To: linux-amlogic@lists.infradead.org; dl-linux-imx ; > > linux-iio@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > linux-rockchip@lists.infradead.org > > Cc: Heiko Stuebner ; Martin Blumenstingl > > ; Neil Armstrong > > ; Shawn Guo ; Lars-Peter > > Clausen ; Jyoti Bhayana ; Hans de > > Goede ; Andriy Tryshnivskyy > > ; Pengutronix Kernel Team > > ; Miquel Raynal ; Cixi > > Geng ; Baolin Wang > > ; Ciprian Regus ; > > Fabio Estevam ; Nuno S=C3=A1 ; > > Sascha Hauer ; Alexandru Ardelean > > ; Florian Boor ; > > Michael Hennerich ; Orson Zhai > > ; Chen-Yu Tsai ; Chunyan Zhang > > ; Vladimir Zapolskiy ; Andy > > Shevchenko ; Jerome Brunet > > ; Bough Chen ; Kevin Hilman > > ; Jonathan Cameron > > Subject: [PATCH v2 03/16] iio: adc: imx7d_adc: do not use internal iio_= dev lock > >=20 > > The iio_device lock is only meant for internal use. Hence define a devi= ce local > > lock to protect against concurrent accesses. > >=20 > > While at it, properly include "mutex.h" for mutex related APIs. > >=20 > > Signed-off-by: Nuno S=C3=A1 =20 >=20 > Reviewed-by: Haibo Chen Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look at it. Note I'll be rebasing on rc1 once available. Thanks, Jonathan