[lkml]   [2018]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectQuery about platform device registration

I am registering a device using platform_device_register_full().
In the above-mentioned api argument - 'struct platform_device_info', I set the parent device pointer, set_dma_mask from parent device etc.

The parent device is created by declaration in device tree and the relevant node has property 'dma-coherent'.
So I get dma_coherent attribute as 1 for the parent device. In other words, is_dev_dma_coherent() returns 1 for parent device.

But for the device registered using platform_device_register_full(), the dma_coherent is not set and is_dev_dma_coherent() returns 0.

Can someone please guide me, how to declare the newly registered device as 'dma_coherent'.



 \ /
  Last update: 2018-12-08 03:00    [W:0.061 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site