Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp297032rdb; Thu, 21 Dec 2023 09:19:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6hcQXH85k0XBY9e+9ofSZV2DjN9qq7nx5HbwYBdOcgkffcCrX3fg6JWwSb1LQKwmHYueO X-Received: by 2002:a05:6a00:178e:b0:6d9:390a:e76b with SMTP id s14-20020a056a00178e00b006d9390ae76bmr3091pfg.9.1703179182814; Thu, 21 Dec 2023 09:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703179182; cv=none; d=google.com; s=arc-20160816; b=YQObsvWfKfMCHA6axoTsxqL7L3ycaDlgjKxoDZuj32PBL7WAAIwfxcOCLZg3a3Zita cVHkC7bP5TnUx1i0mf6mHYWLMLnuZ8ePosmcVfFMxoTjcCH/uveYWtFDBOo7MD8y8qXX gsL9Cu+MsmzR/NiQ7Tvn593te5eHcxABXvTLu/cj9F9Rl3G3+IH7SRuZ3WCojc4jFtCX BHcefCCip/YkpmW1ecEQl8vcyNCC///Y56dWYzkMCSxLaxchKHGrulHo5cjDJLDacPRt pgjCSQtLrciLKVCPtP5uEqJ6HV+K3AfekdgyqbX3O4O/Qh9Nporpo3Cqh2C96wtRKF3r LGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BgBZbWMZd+VA3hJ7oSljor2xlVQUjvEGBVni4WlyI7s=; fh=a6VphbD9BiiB+KRjqOZlM72FkK3FmbSm0tNbp2FcBGM=; b=kelZ1hnxkSaLdQSd1B+z2vMwjqOPuZLxGzJV4jga+RKvXpDKNBWHuevZ1yeS4WGf4M L8NQDiviUaM6zDkYRbUpVT9VS2HZm1itHFTmoWzs/6iALp2KoZCk3vCe/KUWyMvSG5cj ofAt2Zu/B+XGvc0G6XUN5d550xEYBX4qAmnQZRQNRBgPYjTIb6GD/idjwVPV0CxWX415 Th1RK/tL1qU+y/7rIIoKeco3QT5+DcyGydWENhF+UWlkrVyRVN5exY2OPKuGdDkAwSTO evcar4RpIVhQUegyBu0nlkRHGB438pPti4GZOF+H6VDaijm6iWgnc2boRjYqLNoWaqtj 9jTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uHRMUumz; spf=pass (google.com: domain of linux-kernel+bounces-8836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w19-20020aa78593000000b006d6342a5d1dsi1796701pfn.261.2023.12.21.09.19.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 09:19:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uHRMUumz; spf=pass (google.com: domain of linux-kernel+bounces-8836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 04F91281D50 for ; Thu, 21 Dec 2023 17:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB28C64A92; Thu, 21 Dec 2023 17:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uHRMUumz" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26AD759919; Thu, 21 Dec 2023 17:18:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D0A4C433C7; Thu, 21 Dec 2023 17:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703179111; bh=na3rzBCDzzrE1fWEebLVq6pSc/yHaENpPtcr9w+HKlI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uHRMUumzUMZZWeQO/k4+2dNxy0QYbAaj+36VW+cCckTP54f3NYd9tQDEoCLeWysgd VkKhwvKJxRhUzuX+o3o3uWFrK1rgJmkQUlba2NScFDUUIQZGivoJpkh+A8wSTM0ePt JhqokoK+6ZUFWeR5qGGfGG3fWcqTnYzp6WtaT6cc0gdE8u0YIhDNYlynNbumJahigV NIFbuOlu1E5gxO33K7kGv3bZZD06MWYKssQde/3Zpiww1tV55BJ3Qw9N19uUNNaFKj bSOjgNwx+mWqM6OIy2XWLpGotgWE735d0yy2zwMf3f3rr0ZmZTm8b/k6zHs+hf9alE gY8A6+nfI8oGw== Date: Thu, 21 Dec 2023 22:48:27 +0530 From: Vinod Koul To: Amelie Delaunay Cc: Fenghua Yu , Dave Jiang , linux-stm32@st-md-mailman.stormreply.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: add channel device name to channel registration Message-ID: References: <20231213174021.3074759-1-amelie.delaunay@foss.st.com> <5e007fe4-d6cd-4ec3-b9c1-ef7841e29851@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e007fe4-d6cd-4ec3-b9c1-ef7841e29851@foss.st.com> On 21-12-23, 18:11, Amelie Delaunay wrote: > Hi Vinod, > > On 12/21/23 17:13, Vinod Koul wrote: > > On 13-12-23, 18:40, Amelie Delaunay wrote: > > > Channel device name is used for sysfs, but also by dmatest filter function. > > > > > > With dynamic channel registration, channels can be registered after dma > > > controller registration. Users may want to have specific channel names. > > > > > > If name is NULL, the channel name relies on previous implementation, > > > dmachan. > > > > lgtm, where is the user for this..? > > > > I'll send beginning of next year a DMA controller driver for STM32MP25 SoC > family. It relies on the dynamic channel registration. It will be a user of > this dma_async_device_channel_register(struct dma_device *device, struct > dma_chan *chan, const char *name). Okay, I prefer to add a API with the user. Thnx -- ~Vinod