Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25882946rwd; Mon, 3 Jul 2023 02:18:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCrA37C0j1jvSj/mPYaXR5ekr1sxCEN18Pv4QtDhdQ/H0mL576Gp8eKcoeCYcJP8kWvXlE X-Received: by 2002:a17:90a:4298:b0:260:e256:27c7 with SMTP id p24-20020a17090a429800b00260e25627c7mr8145735pjg.15.1688375925247; Mon, 03 Jul 2023 02:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688375925; cv=none; d=google.com; s=arc-20160816; b=ERCSoMC6X2cUE8AHabXx/Sj40Jecn9HtwEFDxniMdHdz3vXZ8J4e4980GqqjffCYhY LN4ByaOtDul6RRSttcCA1Y8DCQw9ZMpewchYsqufGzMDvuu7gtEgBS3CvHGumWZsV65P T0pIWeGxK3zMwgC9vTK0QWFnbrVlPbgTA4Uqmk3TjcNlSMTFsZDYYKEjcs3bufqZzKVY 1UhKdZOJy4rZfh+E6YdqZNGDvsmKih0az8Z3PknxIJg15fuhsp4Mj9VBN+7n9nfkTVNS 3vZNGVBfB8ZrtestDPF1p/MwYI4ZzNFZhlHnVoJtgXawM2YZ3EygmfENdTz1Gid7pmYy E7fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=s3S1d1mAF8fMxePjQb4GdgTmpVEFy5v/YG/rsY8z00g=; fh=K5r5Q+4rKnzIOJ3GJPzmZBb0Xg47tjXJG5evJS629/I=; b=RSBBIy7KSweHbkEpJd9TXY2rC+udm22uj1/nGTw68HHY9iQxOxBHM+tGDZ+udMq+pX mLaX+VhSLG2Pj/R1M3O6Q+cQbobx3Fr6RcUwP3T5O+6HatUD3iX/9ounO1Nok/I4FfXW A1vNmU3yrZbAmgbzdwQnXuwB6tl1vid67v7eLX52xHH5cG6NVhlKoOpzl+itCgdfAtor lKXUNAQvx9OWE7ba7yVzTWUbwzQ9eWWkRd0G70wOyl+/lNToWWqdXAgcYEmuzH6BzpIF iGV+m1ADArvR/bKWS/tvRivjVjlkzKTWRAcXrDc/krU70ftJMRzCk8VLIyZvmhbvpMF/ J7gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=borwZeNY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb17-20020a17090b4a5100b0025bae648cfcsi10971161pjb.176.2023.07.03.02.18.30; Mon, 03 Jul 2023 02:18:45 -0700 (PDT) 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; dkim=pass header.i=@geanix.com header.s=default2211 header.b=borwZeNY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbjGCJAs (ORCPT + 99 others); Mon, 3 Jul 2023 05:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGCJAq (ORCPT ); Mon, 3 Jul 2023 05:00:46 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B592394; Mon, 3 Jul 2023 02:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID; bh=s3S1d1mAF8fMxePjQb4GdgTmpVEFy5v/YG/rsY8z00g=; b=borwZeNYhMf70JYxVnxVQcu7MCBG2AsjMN6P33P7/loB6oHNCKymp7tvwbNGAOBUuohAfqkzQBz CgIs0DK4VfX379T188k/V2s0I4BIDwc7wNH0SCQg96DDo7j11IZz3EzS8RN43RsW/K+JJn+rnIYNv kZOZbvNMKyF4znag43vhaJAqxbPRYy/+13oVsiFfEdL8cojfAsYSYx8gjctvnx7Ec7XonojNB4U30 Zm/hAOQpPfThGev8ngVTsiJC+H2vOeWZdVdM5eIwW8oofoVsyjccrmWGWY0pPyG4kQyu331SXAK3I 6RQ6MvYUSdnjhqyYigGhjzocL4VRFxAlynfA==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qGFQJ-000BBH-0c; Mon, 03 Jul 2023 11:00:43 +0200 Received: from [185.17.218.86] (helo=smtpclient.apple) by sslproxy03.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1qGFQI-000QPD-I4; Mon, 03 Jul 2023 11:00:42 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: [PATCH] i2c: stm32f7: Add atomic_xfer method to driver From: Sean Nyekjaer In-Reply-To: Date: Mon, 3 Jul 2023 11:00:31 +0200 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 Content-Transfer-Encoding: quoted-printable Message-Id: <9BEDFE6D-AE5E-46F1-A1BF-A19C6F5130F6@geanix.com> References: <20230509132159.4160984-1-sean@geanix.com> To: Wolfram Sang X-Mailer: Apple Mail (2.3731.600.7) X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26958/Mon Jul 3 09:29:03 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 > On 23 Jun 2023, at 12.33, Wolfram Sang wrote: >=20 > 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 >=20 > Pierre-Yves, Alain, any further comments to this patch? >=20 >> Is it okay to keep the DMA transfer in atomic? >=20 > Will DMA actually run in atomic mode? >=20 Hi Wolfram, Atomic is mainly(only) used for writing a single register in the PMIC = for the stpmic. Guess that will not trigger any DMA use. But let=E2=80=99s wait for other comments=E2=80=A6 /Sean=