From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B66DDC07E9A for ; Mon, 5 Jul 2021 03:49:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AD86613DA for ; Mon, 5 Jul 2021 03:49:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbhGEDvx (ORCPT ); Sun, 4 Jul 2021 23:51:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:36384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbhGEDvx (ORCPT ); Sun, 4 Jul 2021 23:51:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE11F6135E; Mon, 5 Jul 2021 03:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625456956; bh=pSWTYD7+rgxGLmQKw8kDoz3wh1zx9cykgZSMER+kE/c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AALlwd+apx3Rbawu+E16+x1jqReiMhNbLFREI5kP0/wjaa+evSt/QvZnHhh0dhHqz SSLmqR0JX6qDQiquf7kDmneTIrPGpqRZLoLW3vNqym6ickz2uyu55onDZTHH1BSzcm 5LKgTgXiQzsg84ER/9j32cVBnwy7v9Bed62Bbblw0L6yHJg2Cg1uWcVxMmO99AabJ6 fM42ZbiMumO8Pp3k/nyg+XxrOCC5ruP0OMslxZ0HCUegnrHZkeni0RW0j6eBnKZ4ni mi5SDyZUc8IqVTPe/9p40pUVffMUsW8M5u5bnzZV3YLzdnWze4oS0THiA+8C4KecRN BA0HyYGpPCMew== Date: Mon, 5 Jul 2021 09:19:12 +0530 From: Vinod Koul To: Kelvin Cheung Cc: dmaengine@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V4 RESEND] dmaengine: Loongson1: Add Loongson1 dmaengine driver Message-ID: References: <20210520230225.11911-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 04-07-21, 22:45, Kelvin Cheung wrote: > Vinod Koul 于2021年6月7日周一 下午7:07写道: > > > > On 21-05-21, 07:02, Keguang Zhang wrote: > > > > > +config LOONGSON1_DMA > > > + tristate "Loongson1 DMA support" > > > + depends on MACH_LOONGSON32 > > > > Why does it have to do that? The dma driver is generic.. > > This driver is only available for LOONGSON32 CPUs. the underlaying firmware would ensure this driver is probed if you have such a device, so why have this restriction? > > > +static struct platform_driver ls1x_dma_driver = { > > > + .probe = ls1x_dma_probe, > > > + .remove = ls1x_dma_remove, > > > + .driver = { > > > + .name = "ls1x-dma", > > > + }, > > > > No device tree? > > Because the LOONGSON32 platform doesn't support DT yet. Okay so how is the platform device created? -- ~Vinod