Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1262337lqt; Tue, 19 Mar 2024 19:28:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyhIUKfY2qst5RFxykoiKKtOVfKbyqIhJS5cystDFWcxuDp0Xtu3AcpDqlFLQmci19aeg1kCQJAF0DgEJsIawpDzekbuJSgsbrJrEA8g== X-Google-Smtp-Source: AGHT+IE7YvU5BbDhvfmVm9pfpvKf/6Hg23MxyKM3THLzosTAkRfUdbN23O/wQnK8dBOJGC4tNzJX X-Received: by 2002:a17:90b:4f85:b0:29f:ad98:b7ac with SMTP id qe5-20020a17090b4f8500b0029fad98b7acmr6322271pjb.24.1710901702722; Tue, 19 Mar 2024 19:28:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710901702; cv=pass; d=google.com; s=arc-20160816; b=BJYf8vbD9hrzUjzHFDhF2/5BWf5O8NvmeISFvKL14PPjJe1hhQ98paeB6bJpn4dJcx IBlaQdkbvCbfOOvDAtbFnIA79IQPSRe6g+n5qqARFz01rsonV/P6IPQDemwQHOs3xs0m OYb+DWEbM5biWa9l26yA/RqVUSSPMmZh7cCG9ENpAnpXZ1qgF2+1pvXjPCSWTvAAWbfJ Z90jcPLfFuvBaUaSNIP2V/ugYcmNrNoqY77sBW/nYM/D83V6x2xLOKEo1yzjVDXyaEVB YSBnEg/CzpiWc3lIv7nWaCeT6qnWdJKZKG4QJQgmW/6d4W/67XJfayPqtg2j6LqaM8y6 UW+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=CrEDZNktWLaecr9rY/RqMJilDdld6VN4fBZu4A2CU4A=; fh=GkaG9eey+0rtMErBVCjvalW2VFsWXKrhMt4H6wAeMbk=; b=Cgi13oYbdcLDzMxSEXB73j4l9amhRyOyIfbNjU5lzJymjBy5Z5qisvEVcV2IX2IV0t FitEtZpv3tpEuTHG6fLnK5DgddRoLOpybVw7PxQ+AJ+LTLZZs3KSpwlPUoZGab3OkA96 MoX1h5vER7ECuS6n+yKmxuZdQS0EIChaKjJIVl+DurSD8roDTS6yuu7GAyDkzS0OqU5d JHLOYc8uRn4OSexmuPbVwn8qpCDvR1DncNFnw48Htf2FZ0fNRCsyuTXsHW8GHmPoHtQU t1FmZO9hL/2T0yPGzgcn3Nzll4b2rZE/FJSiC37f5pDuw20VUrINWzFaXq6st7pINDu5 agHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jWsnwBvu; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-108359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fy24-20020a17090b021800b0029bc3e9dd9esi445671pjb.104.2024.03.19.19.28.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 19:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jWsnwBvu; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-108359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 69F4CB21A59 for ; Wed, 20 Mar 2024 02:28:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20ED2F516; Wed, 20 Mar 2024 02:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jWsnwBvu" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8872E8C0B; Wed, 20 Mar 2024 02:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710901681; cv=none; b=k4p6PSDktVMvCqLITyf1n5/Ap3NYXddxqKfI/GFlTRQ1Re9M3/lZ0CToYI3BeQFlY/Io6u7BvAFZlB32VD40bXfbVxPVLDiGQJ0a/Njb4BVlF4WpQhoRdo+v3uf4pggpLtdmuB0sIqOSY+qUO4JPkMh+YdxDSc6XNM7ooBTiqO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710901681; c=relaxed/simple; bh=CrEDZNktWLaecr9rY/RqMJilDdld6VN4fBZu4A2CU4A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=I2pHXomeFIvk/LTinQ3G41/8VbyVgJskimDdBz7F6jWJSXSVRAyUKCOiy6WCy+Mg7k9WNSpnKwWvx8BLcfCwqV84Ji4Q8yXHWgisJeGs0/lMRwOZdsJW5WVHgHsFeK8kHIP+jmY1KOYEq4ctFC5h6rZ+OFCHCES6TDmAqq6no3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jWsnwBvu; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56a2bb1d84eso797699a12.1; Tue, 19 Mar 2024 19:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710901678; x=1711506478; 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=CrEDZNktWLaecr9rY/RqMJilDdld6VN4fBZu4A2CU4A=; b=jWsnwBvuUoWHGHVnDfaNmIDjd7pxM6Hv1OsVRUoo3Ghp7lLlvaQvF0r+rpTaSYgezO vqfRRas+vt+z7YnK272XaFKLgk72RRA99gsokPAvMu6b55ihsoeUDE37vPDNx810puDq IjsSPC0+cnkBxu9RzQd/NBc9jAqTpYcLxsv2/Py/LAi7l8mXpeJ5tCdiCI/dp9DhPHZU 2jnDhIX3AQX8uctCgufkk35YgUYo/a9Rbs7e3FdlfC8sH5xsi67KtDwW1B/rydi1vFR6 DsE07RIEcENBA/UBMaj0I3sftbIxUrrR2Jh0AQgh5+RQzS0PEiktKUQeL3CMFqRMDTDM f7tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710901678; x=1711506478; 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=CrEDZNktWLaecr9rY/RqMJilDdld6VN4fBZu4A2CU4A=; b=XPoobr/fu/jhLsQqrT2hku2wqD2kaNsLeggnjy6y1vk6ZrK3P0D4x+dnfKSagq5cTk 9O4WCOEMhO1Z8zqwWNx7SVw2TCNqaf1KiXqBb8hxQjYq9h6q6aryNOyKSEWNXtC1wp07 uu0ihCa+naayZcAeJAnN6t1/6EBEiVMcLaJxg/uvw1jYn7iQA3n+AdZm+hXbOHrP1qwD HHoRlFcXjc28lm+xeIohw1rl65X9rycTshd5k+X0qrdo+SH0sTOkxUIX01Vf+ILxgzuL 4DThtyc2oXoAZ5+2bJ/Ns8n77NeBZQIGz2wf+9EULMgruOHO+Q6GxsNPrZG+VB/FD4al nkhw== X-Forwarded-Encrypted: i=1; AJvYcCVnUAKtmtEiS+4RQ9TzFa/RELa+CfoM9HCH0jkM5uUoh5ikj5+vIiYwxknfGyZXzMTBgNExmaVPL43bBvfibc3+LsaPUR5HKVDGWf4TKuGTnCL7ze/kZq1KYpn9rQuEwSZ5nS6eQldFkPIOwca4aFsaVyJGFVi2hX/hmNyXABYlOz5t/CXLlOGuVBarns8+iPFbd0wYoc16Wx0/c8vq9Ao= X-Gm-Message-State: AOJu0YwYrjLTy9IWFY7tjftP7KARVI4UwfiqeECIc03Y3L2qSqQ/0sHt LI1HSLBFt7xzEkz7Pn7WIqeVCC8xtTmPSRj9NtXwk120ywSupjzdcPTRjBoMuyPYp4YqCKsNDow 5/q6PJmfz94it1kFyM15oIYteATM= X-Received: by 2002:a50:9e61:0:b0:568:a8f5:d47d with SMTP id z88-20020a509e61000000b00568a8f5d47dmr3899542ede.17.1710901677672; Tue, 19 Mar 2024 19:27:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> <20240318-average-likely-6a55c18db7bb@spud> <20240318-saxophone-sudden-ce0df3a953a8@spud> <20240319-trimester-manhole-3bd092f3343f@spud> In-Reply-To: <20240319-trimester-manhole-3bd092f3343f@spud> From: Keguang Zhang Date: Wed, 20 Mar 2024 10:27:21 +0800 Message-ID: Subject: Re: [PATCH v6 0/2] Add support for Loongson1 DMA To: Conor Dooley Cc: Huacai Chen , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 20, 2024 at 1:41=E2=80=AFAM Conor Dooley wro= te: > > On Tue, Mar 19, 2024 at 10:40:54AM +0800, Huacai Chen wrote: > > On Tue, Mar 19, 2024 at 10:32=E2=80=AFAM Keguang Zhang wrote: > > > > > > On Mon, Mar 18, 2024 at 11:42=E2=80=AFPM Conor Dooley wrote: > > > > > > > > On Mon, Mar 18, 2024 at 10:26:51PM +0800, Huacai Chen wrote: > > > > > Hi, Conor, > > > > > > > > > > On Mon, Mar 18, 2024 at 7:28=E2=80=AFPM Conor Dooley wrote: > > > > > > > > > > > > On Mon, Mar 18, 2024 at 03:31:59PM +0800, Huacai Chen wrote: > > > > > > > On Mon, Mar 18, 2024 at 10:08=E2=80=AFAM Keguang Zhang wrote: > > > > > > > > > > > > > > > > Hi Huacai, > > > > > > > > > > > > > > > > > Hi, Keguang, > > > > > > > > > > > > > > > > > > Sorry for the late reply, there is already a ls2x-apb-dma= driver, I'm > > > > > > > > > not sure but can they share the same code base? If not, c= an rename > > > > > > > > > this driver to ls1x-apb-dma for consistency? > > > > > > > > > > > > > > > > There are some differences between ls1x DMA and ls2x DMA, s= uch as > > > > > > > > registers and DMA descriptors. > > > > > > > > I will rename it to ls1x-apb-dma. > > > > > > > OK, please also rename the yaml file to keep consistency. > > > > > > > > > > > > No, the yaml file needs to match the (one of the) compatible st= rings. > > > > > OK, then I think we can also rename the compatible strings, if po= ssible. > > > > > > > > If there are no other types of dma controller on this device, I do = not > > > > see why would we add "apb" into the compatible as there is nothing = to > > > > differentiate this controller from. > > > > > > That's true. 1A/1B/1C only have one APB DMA. > > > Should I keep the compatible "ls1b-dma" and "ls1c-dma"? > > The name "apbdma" comes from the user manual, "exchange data between > > memory and apb devices", at present there are two drivers using this > > naming: tegra20-apb-dma.c and ls2x-apb-dma.c. > > I think it's unnessesary but I won't stand in your way. Then I will follow Huacai's suggestion. Thanks for your review, Conor and Huacai. --=20 Best regards, Keguang Zhang