From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755589AbaJUSh4 (ORCPT ); Tue, 21 Oct 2014 14:37:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:41157 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754764AbaJUShy (ORCPT ); Tue, 21 Oct 2014 14:37:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,762,1406617200"; d="scan'208";a="593088543" Message-ID: <54465C0E.50801@intel.com> Date: Tue, 21 Oct 2014 16:13:50 +0300 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: "Rafael J. Wysocki" CC: Felipe Balbi , Heikki Krogerus , linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [resend PATCH 1/3] ACPI / platform: provide default DMA mask References: <1411545639-18741-1-git-send-email-heikki.krogerus@linux.intel.com> <2261149.pJ2DW810R9@vostro.rjw.lan> <54465141.1080408@intel.com> <1885056.A9IZAntn96@vostro.rjw.lan> In-Reply-To: <1885056.A9IZAntn96@vostro.rjw.lan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/10/14 16:08, Rafael J. Wysocki wrote: > On Tuesday, October 21, 2014 03:27:45 PM Adrian Hunter wrote: >> 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 >>>> Cc: "Rafael J. Wysocki" >>> >>> ACK >> >> Hi >> >> I need this for another driver. Did this patch go anywhere? > > It's not in 3.18-rc1 as far as I can say. > >> Note Heikki is away at the moment. > > That's OK. I guess I can queue up this one for you. > > When do you need this to get into the Linus' tree? My patches are aiming for 3.19 > > >>>> --- >>>> 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 >>>> #include >>>> #include >>>> +#include >>>> #include >>>> >>>> #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", >>>> >>> >> >