Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1236908rdb; Sat, 7 Oct 2023 20:31:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7zs+6h0IquNGmk4CBM1hSTuYtG++LlqUAyjRj5HKZL4EEIa8jk3JCnK6nfYkPakbnK9DN X-Received: by 2002:a17:902:720a:b0:1c5:a7b7:291c with SMTP id ba10-20020a170902720a00b001c5a7b7291cmr12778288plb.12.1696735873396; Sat, 07 Oct 2023 20:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696735873; cv=none; d=google.com; s=arc-20160816; b=sy0mysjpb6o3yJ9peGjncJpphfOljWK22H1Efxoy5ErnDt4Vq8TvbT4bcRY8sK4KvQ /6vgD0jwdbB6hOKloW2WJteMmbFuyCD8Lx1Cruv++H7YX58MM2goSq28I74nNiTAFBMv BWr3oEXc8+Nm5habpBZLdKiv2iRvfISLYjDyMFj4K8TFzSddywzXC0Z0p0EcVcV8FRr1 kqeYK3zOVPHMLzSUpl3NGrqfSydc59Aqgp4hLmjbtjNhWpm7DV/PQnqoQ0K0IAqJm7aa niWgtwI8KeFLzdIQmCpcjrarVy6xqW8FNStxNQgN8MU74eZ/tzAaJl/bjnkszbjVOsOb tcFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Po8IwO3ZNX4Frjy8MjMqPcYZOoaeDikNFLkcWX7OJPI=; fh=O1gLjBiFoYdBDS0p3MUtVCnM1sDneLCNdXg7lxiE98o=; b=sVOc4kYG3aZaxOjmcXH4hc0CBAKH+eR5SHAqHrN8uhiCYhNaH966re851uA8bGLrb+ o5wADBH4EQYFvnGcKwcsmtrt97m6iZmcxdAjW2G+2y6PWxgT76G1IEPDSI8OyN1askqn YayRPpm2APuyVzsToPbWnADd40yjejRlM/d/i9O3tE8B6bdo9jF7gfVYPn7KcoEbLYze NiMVT88GYe01SltOxLYLGsWo7aGf9Ag8VipnrNcCq3LVWaedHHnMqu15ylmvGKGsFxtb cfLbhwFcOAO2oI/m/4p8NCwSkN8c6THvgyfcwt8U/swFxnfMQzVHHvYfVDIUAgOmy4zx kVhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aG6fKP51; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d8-20020a170902654800b001c3e9b0baeasi6936226pln.430.2023.10.07.20.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 20:31:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aG6fKP51; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6A77F8051B38; Sat, 7 Oct 2023 20:31:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344345AbjJHDaw (ORCPT + 99 others); Sat, 7 Oct 2023 23:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344300AbjJHDav (ORCPT ); Sat, 7 Oct 2023 23:30:51 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5586BBD; Sat, 7 Oct 2023 20:30:50 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-564b6276941so2564434a12.3; Sat, 07 Oct 2023 20:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696735850; x=1697340650; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Po8IwO3ZNX4Frjy8MjMqPcYZOoaeDikNFLkcWX7OJPI=; b=aG6fKP51RMfTWAlgvxtKXhpBNXmpkCPIiuCMoxFA2hB3X8qijRIxng5ThY8bwaSgrI m7fWe90kAv131Yli09x0WeiLkSLietgcPEnf6Pah8Wpt0Ru6mtvD7gCOE3LB4n+HF79A fvaOwwPxZrVrOgqtrEHEmF+qppyGpdwQ1v+DjmeLLU2JNDLAifKxxRhAWnN7DqIT6N4K kFw+W8sNxgLGNJ/LCdcaQHy5Fg/BEFAAUgyOfMCuoOuN0Mr08hZonJlvvcoZkWb1VOiM M8t06f0zXWM3UUJvdJPTzyPxAASXbjmfAENkcI1MSEqbkw0p3eOMA7Kp7o5pwP3F3i+p z3UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696735850; x=1697340650; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Po8IwO3ZNX4Frjy8MjMqPcYZOoaeDikNFLkcWX7OJPI=; b=PC1KClDuKo8gt1UqoAa0cxmkru30O2hltg65cR6fS2k3MGWfRn0ibBHpuFurJzoIww uDqNmmKEmHZEG396T7tK2ttUAvp/otRpHTdKH35IVCnOtq316lB31jXrO3hgfw6CO2Om 9ZfQgFUGPoS4FQROHMAbLKpP4gku3RPTo2yVPFdM31bTExvFtOC0IUbU07I3sEjRcYsx Xje+qcMiZpGIZAV5A6pgTwsd+MvYq2oHJXk+jTbe+FNDUk7Iw6lyhZHtJmpGURRQZKZo KjXl9HMQ3QwMNQ/kOz5mMG0o5J8j4XeygKULi0wROIKTQ7icc/xz2aHFPQUwbTGvCjgr mgew== X-Gm-Message-State: AOJu0YyxkB5SCvWAIHJ2odr93IR3r95ntMBVUm5GVBUmUyFt0D7WHLHW xIWvjZvqY9Duv3yHi+iCxL2U3n9c6LZZBxNqJ8A= X-Received: by 2002:a05:6a20:6a1a:b0:154:fb34:5f09 with SMTP id p26-20020a056a206a1a00b00154fb345f09mr14826314pzk.15.1696735849741; Sat, 07 Oct 2023 20:30:49 -0700 (PDT) MIME-Version: 1.0 References: <1695891619-32393-1-git-send-email-shengjiu.wang@nxp.com> <1695891619-32393-2-git-send-email-shengjiu.wang@nxp.com> <7af54654-d4d5-498e-bd53-78ad54e6d818@sirena.org.uk> In-Reply-To: <7af54654-d4d5-498e-bd53-78ad54e6d818@sirena.org.uk> From: Shengjiu Wang Date: Sun, 8 Oct 2023 11:30:38 +0800 Message-ID: Subject: Re: [RFC PATCH v5 01/11] ASoC: fsl_asrc: define functions for memory to memory usage To: Mark Brown Cc: Shengjiu Wang , hverkuil@xs4all.nl, sakari.ailus@iki.fi, tfiga@chromium.org, m.szyprowski@samsung.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 07 Oct 2023 20:31:11 -0700 (PDT) X-Spam-Level: ** Hi On Mon, Oct 2, 2023 at 11:08=E2=80=AFPM Mark Brown wro= te: > > On Thu, Sep 28, 2023 at 05:00:09PM +0800, Shengjiu Wang wrote: > > > m2m_start_part_one: first part of the start steps > > m2m_start_part_two: second part of the start steps > > m2m_stop_part_one: first part of stop steps > > m2m_stop_part_two: second part of stop steps, optional > > The part_one/two naming isn't amazing here. Looking at the rest of the > code it looks like this is a prepare/trigger type distinction where the > first part is configuring things prior to DMA setup and the second part > is actually starting the transfer. Perhaps _config()/_start() instead? Ok, I will use m2m_prepare/m2m_unprepare to replace m2m_start_part_one/m2m_stop_part_one, and use m2m_start/m2m_stop to replace m2m_start_part_two/m2m_stop_part_two. Best regards Wang shengjiu