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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E750EB64D7 for ; Fri, 23 Jun 2023 10:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cea8qOnXf4kVu7NMKx+GefoLg3L5Fn9hqQOZJWLvq9E=; b=G+ntglGvHVc5O6XpvQGi+qZd9E 51OMyyL9mbuK05JWIQTF/NeSRnHS7UmY4cQw57Pv1C/vPfA56FNXm0291e4lppzCFxUai7MbYJ7Ai XiE9zs1GIp+DJqVubjfyaplEVBVJgT+m5N2PDOGCYm/ooYQVxlBwN7Di9+K2v3ajM7rLI0mNRbzzy NnDVp9RUDBD4Qq5q96XPKJwFB/bn9nX999g1I7Qeh5b/EUEiMOjQV6HppnWcEtTHCml/0IvjJJCAA JEGVa+poyoqOvhQx4EFUwR9m/xsPGVMvCKBSbHoV6YBaf41Mf5Kv4OUYFbv9esqjWJFD/5KXiLMYC zWAktf/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCe6r-003GWp-36; Fri, 23 Jun 2023 10:33:45 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCe6o-003GRH-2L for linux-arm-kernel@lists.infradead.org; Fri, 23 Jun 2023 10:33:43 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E3515619DA; Fri, 23 Jun 2023 10:33:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7137C433C0; Fri, 23 Jun 2023 10:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687516417; bh=sfFnaH25gpS9v0cJjOQk7EIROwbjYpko9ASJcwzrEhc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=boBrJZWqR4cqNFXYKB2+LifLXTAABU48JqZrimo5aUe/KEwbyVHQnSQXUP7jjTern u29kc/41kLgjFEy588K6k+AZT5Ax0wr5Sgx78rKzankDx2K9Nm8c4WUMZtuFhPIHS3 FJb9oq4/syOf70YWA45zzw0ywf/tL+rdaKpSfhkyJWj5Chr2JnGHlZLQGJX9g6Yc/7 JrQLLTKx5xmSMNPHX54v4aGT/U1WlBUwaqP71+Ip7IJnYCRirjR77jJEIp1nLQRUyv QENo56jbyb5xqRbmIZkCFUw01WnipGREXGrtEi4m/8UNtx1bcV6KFaNeC/FzziA2vK 9gZTnMygAkVhw== Date: Fri, 23 Jun 2023 12:33:33 +0200 From: Wolfram Sang To: Sean Nyekjaer Cc: Pierre-Yves MORDRET , Alain Volmat , Maxime Coquelin , Alexandre Torgue , linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: stm32f7: Add atomic_xfer method to driver Message-ID: Mail-Followup-To: Wolfram Sang , Sean Nyekjaer , Pierre-Yves MORDRET , Alain Volmat , Maxime Coquelin , Alexandre Torgue , linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230509132159.4160984-1-sean@geanix.com> MIME-Version: 1.0 In-Reply-To: <20230509132159.4160984-1-sean@geanix.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230623_033342_840425_3C5BC512 X-CRM114-Status: GOOD ( 16.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0124547910193404327==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0124547910193404327== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uknG7jZmb7sNlYPD" Content-Disposition: inline --uknG7jZmb7sNlYPD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 09, 2023 at 03:21:59PM +0200, Sean Nyekjaer wrote: > Add an atomic_xfer method to the driver so that it behaves correctly > when controlling a PMIC that is responsible for device shutdown. >=20 > The atomic_xfer method added is similar to the one from the i2c-mv64xxx > driver. When running an atomic_xfer a bool flag in the driver data is > set, the interrupt is not unmasked on transfer start, and the IRQ > handler is manually invoked while waiting for pending transfers to > complete. >=20 > Signed-off-by: Sean Nyekjaer Pierre-Yves, Alain, any further comments to this patch? > Is it okay to keep the DMA transfer in atomic? Will DMA actually run in atomic mode? --uknG7jZmb7sNlYPD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmSVdPkACgkQFA3kzBSg KbbxjQ/+K79nV1aTGPrTZkz9DkQ84yocXtzQ/Qw8yJMmWIe7Ld2ELs8iW0iVABTR lhD9nUCcVe4pT8h+lXoxJPEg8AsDD3dM6nLWTd95SIXk+wK2k68QMYCnH9Ej/lDW syrfeqqV3pW3rfCAdPQHPB/BDeAwqkOZ6KU8d8Ulkc6za4KFBB6UueOO0WOvcm4a wTwEM0jJuEijsOPcv3xR0YtDQ1wG6hlEo8xQoRv2dF8mSVvhLFBOZVjVmdCXP20K 70ctiTHnht1Eqbxue8XvgGhJ07WPxmIG840vEpEcEkdfjYtE/v/4Ivo2T1fd6bLy mJheZ0gAJxZ6Ze0D93JHCDawP7i1DsOcxld4+KgnTBKRiMtpAlbsa+AbHTkX2tM/ DM0zcoprB3V0BPOx3cgfa9Yf87BsMvFxhG5OIPEiJJNEtReiA0rG6iopE1PMB9xY smdddrd0KvMYS60Xql14vje2AbgP7SzDwxrMLOLemFqhs85pydtwRMFFl8sW9Lm0 1XHMKyE6OkmS+hR+rK8NVRPuZ8kSTvzVXxa5pcGNvlyfY0LtbWaIln24HOfKeo2Q wfOEDSKPFxJuroFXm8Dzt2w919cw+GipDEhxVteUDkauuc2yveqjmKOJOJJ4K9h0 EmdrZbmNefnsLyLaReTG46cViZ+4OwVL5yutM/ow8m+FYitRS4o= =JfaG -----END PGP SIGNATURE----- --uknG7jZmb7sNlYPD-- --===============0124547910193404327== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0124547910193404327==--