Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4480065pxv; Tue, 20 Jul 2021 04:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzabXdKXghN3VTJq+6QPcQIBptWOaqiRbMRCaPOjVlkN12liJ0NBoneGVl5VQ0WnL8Z+ovC X-Received: by 2002:a05:6602:2099:: with SMTP id a25mr4517104ioa.143.1626781936325; Tue, 20 Jul 2021 04:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626781936; cv=none; d=google.com; s=arc-20160816; b=L1ZbZTjIAOKfLN6cdPKhCkdofAT5bxXOpii12EzFhvKDbc7aon4PxgeuRxZo82i9Wn 0huM2jImeaJynA419TA7udLQaHF5vtpX8fdGmQRjtAxtK1aBX3FzP3+AlCKppxsuGd8d RRAvs35GO9Z0zZYO4icJLH0tDYPWJp6lcAJ9y3YlM/q3rkab19T6/MfefKuHFYWoqUdw +t+4LR2HAzc6OZ51RvSaIFWd8ldkmVG9D0sJCQyAx7ftzeF3cEkgwfgKT91x/hOQRm35 31GuSjjNnWui/7LvNIDI6BSjft6E7I68reKtlbbNgdLXoW/me/sW1wbV7Y3jPHPI2U6F 1SMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mSomKuRypeskgngSCkF/Vko3f2YhJH4hskOO9DxwdhI=; b=Oq3lfy0rJkoFq68/Pt74QKQM+yzddFjMgZms4AzJuA5Od2/iSKDa5h7NK3WO+wMeLc QiQTpeRZoNs0vQsoJI29QCdqmVlgrEskbsH4ncrK7HweT/DHLMMUp+nSbNEJJoEBT0ND X6TE8SZKkdIg+n8q7DWntajcQUJepV+66xnRLyYs1knb3PYVoLYbrxOKx2PnjRB7bXix ho9ojszDMHbteAtoJtI4OLFO6Qy98qG/3J+sqTo0cHTnLi3bTERqYBE/hsHCVeZFcpT4 NJRl5K4dk0yRQPHG9XabyH+WT7WQKCrbaoM6Xd+pd4b85F4Cxsvzjp/orVH5GWfjp6s1 PEcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZmlaK3l5; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i187si1321410iof.20.2021.07.20.04.52.05; Tue, 20 Jul 2021 04:52:16 -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=@linuxfoundation.org header.s=korg header.b=ZmlaK3l5; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237943AbhGTLJz (ORCPT + 99 others); Tue, 20 Jul 2021 07:09:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:49660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237648AbhGTLIM (ORCPT ); Tue, 20 Jul 2021 07:08:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0E0E600D1; Tue, 20 Jul 2021 11:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626781731; bh=OBvLrQnyZF2Svj2jZQUersvmOrA/Ciz1z2w++07BYns=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZmlaK3l5Sw3ZxBWCkPqBM/dD8n+JvI/23hhA77y6YbAP8/jrZXeEXkrIzSZLon5Ot cm0QyoRBh/zfMXbQzQ3/XcbqjCFoeTPzuy9aPu8T5sbsniB6Tg98xbyg9KZn5asHlE e5HhEaTWV6TCCjLRD4QcrD5DJUhIq8BIGag5YcBw= Date: Tue, 20 Jul 2021 13:48:48 +0200 From: Greg KH To: Vinod Koul Cc: Kelvin Cheung , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V5] dmaengine: Loongson1: Add Loongson1 dmaengine driver Message-ID: References: <20210704153314.6995-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: linux-kernel@vger.kernel.org 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 于2021年7月14日周三 下午1:14写道: > > > > > > > > > > On 04-07-21, 23:33, Keguang Zhang wrote: > > > > > > > > > > > +static struct platform_driver ls1x_dma_driver = { > > > > > > + .probe = ls1x_dma_probe, > > > > > > + .remove = ls1x_dma_remove, > > > > > > + .driver = { > > > > > > + .name = "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 platform > device. I asked about the platform device and was told that [1] creates > the platform device. I am not sure if that is the recommended way given > 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 resources 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 platform data files. thanks, greg k-h