Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4500164pxv; Tue, 20 Jul 2021 05:19:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4EKgL5fTMv3g3uI0a+c4P+zfeSzDMQPYlBLOSzgxgiPioMqFzuSC0wFJXAGCEpPVWWMmG X-Received: by 2002:a02:908a:: with SMTP id x10mr25752146jaf.30.1626783569506; Tue, 20 Jul 2021 05:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626783569; cv=none; d=google.com; s=arc-20160816; b=Fw1njbHZSLrZ6kCerWxVC0IfJzKOMz+igFsDs+26BiSJssPnqreuuK42awgoP0/JQp SWQjpk4bVCfxA6FcwS/XY/6+XnBRBFPQfDoV/CUITcxPsKdHuCixUQVPpuAy6jd9u6mV xQKzGOzJE0ymbVjo3c7EJd5MRnonOqf5I06OoSD3T2rqT3s7Z+LMf7AW7kfh7262eVv2 ooEpelNeAjrt6LYbRrAC/m+rNn/gPe/gW09QML8Y1Kpa6oZvzBie7zSERA+M0R1OIaYG mPKhaIjQCrNQoX8HVkws/qyIQmfuso2qtp1fxKzghMVTWgv4hW3sN2c6YF0qeZVUViLf RYZw== 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=8IOyYfyx+y6kNAYVPqQjF8KQKNgbic9f50JjXfH46X8=; b=t7HxgvJ6yun/QFmbGLA1h6zJ/gReXtBIVkFQdw40UYjUXjx7eoG+5zZ7UjFbNpTOVe jgqXOhYUhQgg5hegjCsrPMJurAFZa2BwMtrhtgZsVRXvedHX3F619yK2HoPHiz8AujqZ bjF/xfGW11rb/NsN0V3LT8+o57tWpdIpgwX+pLKVQCBm7Eozv/H36kSEf3GseQfN4+x5 Ode7bPhiaqoohmAKe6lpxNLhqSdefv6oJs2QSuORAeFQcolieTz9VBO5cl+rRQQuTSK8 ED4llopFiuI5tFnvktK1/Kt74jU5MXjp7kBP19A60lYDdDjb35Tq+LRY2MMUX82OL29S 94Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q9kiumv2; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si19105531ilo.119.2021.07.20.05.19.09; Tue, 20 Jul 2021 05:19:29 -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=@kernel.org header.s=k20201202 header.b=q9kiumv2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236396AbhGTLhu (ORCPT + 99 others); Tue, 20 Jul 2021 07:37:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:59024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234417AbhGTLhr (ORCPT ); Tue, 20 Jul 2021 07:37:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D31B6113B; Tue, 20 Jul 2021 12:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626783505; bh=VIQnM/IKpMG9t235B8zbrp4hUhe5FWvYJ4Jx0VCgmh4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q9kiumv2VZXe4Bjzpjb/1THxPHpv0nZeR8RbhNvHwMRkBatuvXLGejbTlYjr/m4lH ctgUV94yu61G3yQISVN5+LTKycqI+XilAWRp1Ar/NiqmsHJMNXlE/KlxqG0Y+yGFgk /163Z3npgPrMurRMFzF662r0TlgHEqBxb8BWNOWbvxfsmaui7ZHIebj7/bNZS0YioQ 1ClnU9YJQTBolW8UEMi9lH71UK6nFmfNt36Z/VpiViaen735egkL0pCIgJIVzaJZqr cbBK7iDdQO0OFDd4w3PvKXlHy3jZ5T9m7ii4jHKaaU8B250FHKozwhTcSMX3O40gs0 QEgfX4rkQAr2w== Date: Tue, 20 Jul 2021 17:48:22 +0530 From: Vinod Koul To: Greg KH , Kelvin Cheung Cc: 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 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 于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. Apparently I was told that this platform does not use DT :( Looking at it it should.. Maybe Kelvin can explain why.. -- ~Vinod