lkml.org 
[lkml]   [2014]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [resend PATCH 1/3] ACPI / platform: provide default DMA mask
On 24/09/14 16:49, Rafael J. Wysocki wrote:
> On Wednesday, September 24, 2014 11:00:37 AM Heikki Krogerus wrote:
>> Most devices are configured for 32-bit DMA addresses.
>> Setting the mask to 32-bit here removes the need for the
>> drivers to do it separately.
>>
>> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
>> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
>
> ACK

Hi

I need this for another driver. Did this patch go anywhere?
Note Heikki is away at the moment.

Regards
Adrian

>
>> ---
>> drivers/acpi/acpi_platform.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c
>> index 2bf9082..8d099e6 100644
>> --- a/drivers/acpi/acpi_platform.c
>> +++ b/drivers/acpi/acpi_platform.c
>> @@ -16,6 +16,7 @@
>> #include <linux/err.h>
>> #include <linux/kernel.h>
>> #include <linux/module.h>
>> +#include <linux/dma-mapping.h>
>> #include <linux/platform_device.h>
>>
>> #include "internal.h"
>> @@ -102,6 +103,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev)
>> pdevinfo.res = resources;
>> pdevinfo.num_res = count;
>> pdevinfo.acpi_node.companion = adev;
>> + pdevinfo.dma_mask = DMA_BIT_MASK(32);
>> pdev = platform_device_register_full(&pdevinfo);
>> if (IS_ERR(pdev))
>> dev_err(&adev->dev, "platform device creation failed: %ld\n",
>>
>



\
 
 \ /
  Last update: 2014-10-21 14:41    [W:1.948 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site