Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1222050
| From | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 09/21] ARM: davinci: Add set dma_mask to eDMA devices |
| Date | 2015-09-10 11:20 +0200 |
| Message-ID | <q76bn-5y3-3@gated-at.bofh.it> (permalink) |
| References | <q75yF-4zn-13@gated-at.bofh.it> <q75yH-4zn-35@gated-at.bofh.it> <q75Im-4L3-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/10/2015 11:45 AM, Arnd Bergmann wrote:
> On Thursday 10 September 2015 11:37:38 Peter Ujfalusi wrote:
>> +static u64 da8xx_edma0_dmamask = DMA_BIT_MASK(32);
>> +
>> static struct platform_device da8xx_edma0_device = {
>> .name = "edma",
>> .id = 0,
>> .dev = {
>> .platform_data = &da8xx_edma0_pdata,
>> + .dma_mask = &da8xx_edma0_dmamask,
>> + .coherent_dma_mask = DMA_BIT_MASK(32),
>> },
>> .num_resources = ARRAY_SIZE(da8xx_edma0_resources),
>> .resource = da8xx_edma0_resources,
>> };
>
> While this is technically correct for all I can tell, could you
> convert it to use __initconst platform_device_info and
> platform_device_register_full() instead?
Yes, I can do that for the eDMAs. I was also thought about this, but looking
around the mach-davinci, I thought to stick with this mode.
> statically declaring platform_devices has been frowned upon for a long
> time (even though a lot of arm platforms still do it), and statically
> declaring the dma mask seems worse to me (and yes, I realize we also
> do that elsewhere).
Will be part of v2.
--
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 09/21] ARM: davinci: Add set dma_mask to eDMA devices Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-09-10 10:40 +0200
Re: [PATCH 09/21] ARM: davinci: Add set dma_mask to eDMA devices Arnd Bergmann <arnd@arndb.de> - 2015-09-10 10:50 +0200
Re: [PATCH 09/21] ARM: davinci: Add set dma_mask to eDMA devices Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-09-10 11:20 +0200
csiph-web