lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <DB7PR04MB4252B09A076AD1A52BC3E92E8BAB0@DB7PR04MB4252.eurprd04.prod.outlook.com>
Date:   Sat, 8 Dec 2018 01:59:01 +0000
From:   Vakul Garg <vakul.garg@....com>
To:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Query about platform device registration

Hi

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'.

Regards

Vakul

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ