Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4221166pxt; Wed, 11 Aug 2021 00:19:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFSIVaHOC7yreyFbXmpqoyKpl78cGL7tycr+PTeMlHgzWSPNsdAxEhpr3tjQ+19HsTSrGf X-Received: by 2002:a6b:2b44:: with SMTP id r65mr5242ior.99.1628666360494; Wed, 11 Aug 2021 00:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628666360; cv=none; d=google.com; s=arc-20160816; b=MlO6sM4oFFCYg0ZzZpz4ZPBexUgoCSeErnqw9mcs8b/FwRJB9qoJScGm+q1du7TIQi t0rMOGHI+kRluqHbYNUt/PK/ImoQDxP3kSppIWcPI80WCCyqiL4dAag1ggiyAY9Z7L8i gEfzd6vApHhczbP0R9ooC3OxR8qdEhIClPO7z83+AssLXkM8cpaGEnySQeedzDxhcUhX JPzyHrS2D3uKlnw8xB++xsVImTxV5RoV1pGHolBOJ0qrkhAwgx7wnPo8Y4e6xRwBHf7F e1CCIPZTkl9bFWRhLF3WJRRebUszBrxQlVln2JYnhgXKzd/g05oVtOhqFiKC7zV/e1qE iXGw== 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=dg6pLnPjVAtzxSVEs294XC4hAdURgggAJsxQwZ1ihAA=; b=ERdkwACh1P95smTEqz8OPheVnEv1lNQtGyGVcBd2yxPrOiqVTeLsXQShwu/cJnjqzn sNYqfERT9/BBneiRhV4K0PCrRzFTYfgKV4eGK3cUrHD97DmUf0YoP33/CIuhDaLTxsxu QSEMUs6+MFGJQFyx0Gwqb5hgXw02PlZDEArhhl13NPjy4tW8nkNK88ZSX8qT/r9W1GQS Ojt5TGS9kqxWQ/U/RD2LWD+9cdA7e9aMSw4t8WOZ6O9kty1MJxXmhlushHYE4Sl6b/yF HwK4ne2x/5IC45Rm7taTEUeBAeotzMdUP2QL7FlWjNBoMg3KurW6fukqLgXjJoi9jkuI Ft7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WiaozDn9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si20484205jac.69.2021.08.11.00.19.08; Wed, 11 Aug 2021 00:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WiaozDn9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235239AbhHKHSl (ORCPT + 99 others); Wed, 11 Aug 2021 03:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235109AbhHKHSk (ORCPT ); Wed, 11 Aug 2021 03:18:40 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46BF6C061765; Wed, 11 Aug 2021 00:18:17 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id y34so3616572lfa.8; Wed, 11 Aug 2021 00:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dg6pLnPjVAtzxSVEs294XC4hAdURgggAJsxQwZ1ihAA=; b=WiaozDn9hHTeG/WdotFQpHJfhhAXmNQ8JrHA7CTf/Op+uc/qOh9ShFDbEJmDkvdE5K KYa5Hb3Rho98p4Wf+atu3+9Th152uhjVGdQBCGguHnX2pxGUhKRtO998MA8YIkndZed+ F756ljUgA+dncph+CbxShWCDcLgSs3VWziwSrOkQ+DOd5j66AoEHp2Wn6aKc7L3GLqgQ r5frmMlbeA1xFJHuBES/6xSTJysq1ujdOGlHXAlcGeqyekjsW5IG3HM2IZ75j18H/Inl MEBo4Y7UtIhfhCfaFDyXWCDBrOYIGm+qlV9B91pu1lzRTF1J6KV50z/6ZfFkKV6f6GLm pqKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dg6pLnPjVAtzxSVEs294XC4hAdURgggAJsxQwZ1ihAA=; b=DLX9M/8Fk3jUQt+MWcclWSIzOb6PoauvS7peBqeOW3zIH98DblS7VK4CQyYPhg2yTW luPWzS4Zb/NLriUdKX06ToK3+nMRWbcP4p0KZPmIiv0ZwID3sfcg5xbFrEGOPzygZPxU xGeY0airwARf52v68JP+w9UXEn+f6YD7lNkx12BwXHUlkIvT86VaNDUXiBN6rML1+8m2 KRaLvPwh3CUmkaSKt9tn4CyrLWjz1u4fIkqTFtnWbvT69u6ARKVr5VBE0uxJQw3oycvw dEvk+DeaiefRIg4nkYYigerkByRphflY49xoN3X7asWqeGP07w4O2OjZVT7MKo8Dm2Wt wmOA== X-Gm-Message-State: AOAM531g/pwR0bbOkmcOjGn+oX4ZXqH4dazH3y3+5vKfqBdjkaWK89TQ bQL4a+SGMf0ch4NGjIt79VqOrl/kHzRWa4zpIFs= X-Received: by 2002:a05:6512:3408:: with SMTP id i8mr1495706lfr.525.1628666295694; Wed, 11 Aug 2021 00:18:15 -0700 (PDT) MIME-Version: 1.0 References: <20210704153314.6995-1-keguang.zhang@gmail.com> In-Reply-To: From: Kelvin Cheung Date: Wed, 11 Aug 2021 15:18:03 +0800 Message-ID: Subject: Re: [PATCH V5] dmaengine: Loongson1: Add Loongson1 dmaengine driver To: Vinod Koul Cc: Greg KH , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kelvin Cheung =E4=BA=8E2021=E5=B9=B47=E6=9C=8821= =E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=888:22=E5=86=99=E9=81=93=EF=BC= =9A > > Hi Vinod, Greg, > > Vinod Koul =E4=BA=8E2021=E5=B9=B47=E6=9C=8820=E6=97=A5= =E5=91=A8=E4=BA=8C =E4=B8=8B=E5=8D=888:18=E5=86=99=E9=81=93=EF=BC=9A > > > > On 20-07-21, 13:48, Greg KH wrote: > > > On Tue, Jul 20, 2021 at 05:13:53PM +0530, Vinod Koul wrote: > > > > On 17-07-21, 19:39, Greg KH wrote: > > > > > On Sat, Jul 17, 2021 at 08:09:45PM +0530, Vinod Koul wrote: > > > > > > On 17-07-21, 18:57, Kelvin Cheung wrote: > > > > > > > Vinod Koul =E4=BA=8E2021=E5=B9=B47=E6=9C= =8814=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=881:14=E5=86=99=E9=81=93= =EF=BC=9A > > > > > > > > > > > > > > > > On 04-07-21, 23:33, Keguang Zhang wrote: > > > > > > > > > > > > > > > > > +static struct platform_driver ls1x_dma_driver =3D { > > > > > > > > > + .probe =3D ls1x_dma_probe, > > > > > > > > > + .remove =3D ls1x_dma_remove, > > > > > > > > > + .driver =3D { > > > > > > > > > + .name =3D "ls1x-dma", > > > > > > > > > + }, > > > > > > > > > +}; > > > > > > > > > + > > > > > > > > > +module_platform_driver(ls1x_dma_driver); > > > > > > > > > > > > > > > > so my comment was left unanswered, who creates this device! > > > > > > > > > > > > > > Sorry! > > > > > > > This patch will create the device: https://patchwork.kernel.o= rg/patch/12281691 > > > > > > > > > > > > Greg, looks like the above patch creates platform devices in mi= ps, is > > > > > > that the right way..? > > > > > > > > > > I do not understand, what exactly is the question? > > > > > > > > So this patch was adding Loongson1 dmaengine driver which is a plat= form > > > > device. I asked about the platform device and was told that [1] cre= ates > > > > the platform device. I am not sure if that is the recommended way g= iven > > > > that you have been asking people to not use platform devices. > > > > > > Yes, but this link: > > > > > > > [1]: https://patchwork.kernel.org/patch/12281691 > > > > > > Does look like a "real" platform device in that you have fixed resour= ces > > > for the device and no way to discover it on your own. > > > > > > But why are you not using DT for this? That looks like the old platf= orm > > > data files. > > > > Apparently I was told that this platform does not use DT :( Looking at > > it it should.. Maybe Kelvin can explain why.. > > Yes, the DT support of Loongson32 is still on the way. > Therefore, I have to use the old way to let the driver work. > I will update this driver once this platform supports DT. > Hi Vinod, Is there anything to be improved? Perhaps this patch is acceptable now? Thanks! > > > > -- > > ~Vinod > > > > -- > Best regards, > > Kelvin Cheung --=20 Best regards, Kelvin Cheung