Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5494853pxv; Wed, 21 Jul 2021 06:56:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnIRy3KXgaEyFlHnUanGK75xstDSzR0GWP4/SVjaYV4mvp38F3S+P8KkrA+x+9tmLVMoYP X-Received: by 2002:a17:906:4098:: with SMTP id u24mr38502623ejj.462.1626875819127; Wed, 21 Jul 2021 06:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626875819; cv=none; d=google.com; s=arc-20160816; b=JuKAtOZRhSaa1eB6u4k0AQVVv7C5hyRfmoQfqYzhNtXTkxRh3qTW+ApDnCMBZCvve6 JyfJ7DSXH8IOBVysxMBdMZm9nbOGh4ekgl+xpTaYwUxIkBl4cZDVWiuDzRY9+w1c1WRX KlkjYGChIry9fan8QdjMgtRapjKDmlcoMZVEqn8m5rJp0CVWTUjeFzt1CRwZhGjoswu0 9tzMTd9QRAN1JoSCmmqyblqWf2vDKs2S1YedRXIhCFDto6fAB9TpVKLb6q3DyC5FPJSY ZjhO8tomYzATZ5FF43t+C9MEWA5x8F2KXG7J8OvR5tzx+r5i8fi+PLu/KkYDXLqlNVb3 UUWQ== 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=Pg7bD+390UpqjI+zQBvxj/TSzQC4X2004JklWBEs0bY=; b=TVLz3vjzZF45gTpNkMklZMBLYtAiQbK88lQsEyoA517k+lK1EGmB1Bxl+Ot9W2DdJ5 ol2Qt4vkK/oLKYgD+/DPrRSD6LQSHtycU5XiN44gDo3DuzaVUVJqoD0c6VvV5Q/zqanR Wk1z/MNdGecCTBXyRDdVBD5zZTXyRhyTR3e5BQfr4gQduZXRB1+nPWBsgDwdEObtcEfu zq480onQ3HwW1sKjNNikYQs+1dO5gzVImafftCYr/NNQR7l8y6LzGDmTsR5T15yuJpuN wjGPTzcYE+NiVolqhqWNyfZokgYD9uK2E2CE9LXpOuKxYxLZfDaaP3+28dOu7VXXutT5 15Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LUib2Wex; 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 dc28si26661289edb.444.2021.07.21.06.56.35; Wed, 21 Jul 2021 06:56:59 -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=LUib2Wex; 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 S237376AbhGULlt (ORCPT + 99 others); Wed, 21 Jul 2021 07:41:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbhGULls (ORCPT ); Wed, 21 Jul 2021 07:41:48 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F94C061574; Wed, 21 Jul 2021 05:22:24 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id v6so2848678lfp.6; Wed, 21 Jul 2021 05:22:24 -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=Pg7bD+390UpqjI+zQBvxj/TSzQC4X2004JklWBEs0bY=; b=LUib2WexrgHs6dHS2ImFFSKnys6Z4IfUNURmd3L3rcrbu/qM2k/pxZk6isFvvjjtO9 Rx6VnzE7dnFUW6klXr879NaXvYj98sDikoJPMv3vKcslqo7FjDHw0l0jkfzjKRruIcXY JC5TGQa3SEby+2Wzl98tK8rfo71NEu9livn5zu8+5h7YUqeg8hXgYc99TOsBGPVCA7Ev yYYmXOzcp7Ifr30MYgAKAYIdALKMyYliOaGMGo4IWC9BiFhQuxqq+PeUdG9bxLq6WV/v CQB//583m0ixI9tuMz29LCRx5NkppMsfr0+mbwBzT/Pyy+8GYv01TSnWsD1Z2EJOG46r F/9g== 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=Pg7bD+390UpqjI+zQBvxj/TSzQC4X2004JklWBEs0bY=; b=pGZ3F25F45EuaxHb50MItReJkV0Db5mFtkaczvPaNxwhaRMaU1IfxxQnUDiRYtRU6x vWegiGz0UOZAk58KaOM6EqX1IVC5bLDtbmBTJO5t1HALx5TX6n88oOivQ0NPFiAFc8By t78+FE9IeGSVp7fxTyzpv8wZg/QLuSaLi69P6Km/nTJq+atnnvl7wowf6tr1xqYH3DG3 7idnKDubhuIxKmkXOvvI2ZDa0nxhtoZJKRL/x6+wvP51Wsz9l/g/NGQpMZCZyXKZ11Ns GCeEz2febfXjyNowLJF/ZbnEaZtk2a2boimgGcDD6JO+rTKy1d7RWv1agdo0dMkpuXsD bnSg== X-Gm-Message-State: AOAM530TN/+zTMiuJL5zz9Wsw01aQD+soqRZ+4Oe7w3CiVtioHM8TzXr JxmN9hbePMrpFBQmWgelLQPchr1tvNMWpXT9anQ= X-Received: by 2002:a05:6512:33af:: with SMTP id i15mr26072779lfg.25.1626870142549; Wed, 21 Jul 2021 05:22:22 -0700 (PDT) MIME-Version: 1.0 References: <20210704153314.6995-1-keguang.zhang@gmail.com> In-Reply-To: From: Kelvin Cheung Date: Wed, 21 Jul 2021 20:22:10 +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 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=881= 4=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.org= /patch/12281691 > > > > > > > > > > Greg, looks like the above patch creates platform devices in mips= , 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 platfo= rm > > > device. I asked about the platform device and was told that [1] creat= es > > > the platform device. I am not sure if that is the recommended way giv= en > > > 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 resource= s > > 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 platfor= m > > 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. > > -- > ~Vinod --=20 Best regards, Kelvin Cheung