Thread (13 messages) 13 messages, 3 authors, 2021-08-29

Re: [PATCH V5] dmaengine: Loongson1: Add Loongson1 dmaengine driver

flat view

From: Vinod Koul <vkoul@kernel.org>
Date: 2021-07-20 11:47:29
Also in: lkml

On 17-07-21, 19:39, Greg KH wrote:
On Sat, Jul 17, 2021 at 08:09:45PM +0530, Vinod Koul wrote:
quoted
On 17-07-21, 18:57, Kelvin Cheung wrote:
quoted
Vinod Koul [off-list ref] 于2021年7月14日周三 下午1:14写道:
quoted
On 04-07-21, 23:33, Keguang Zhang wrote:
quoted
+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.

[1]: https://patchwork.kernel.org/patch/12281691

So is [1] the correct approach or should this be fixed?

-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help