From patchwork Fri Oct 17 17:16:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38989 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7B4B7202DB for ; Fri, 17 Oct 2014 17:20:12 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf719771lbi.10 for ; Fri, 17 Oct 2014 10:20:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=IQ1cb+g/dUpp7xncUBxKzkSb0W97oKMdwAzqN8QCpJU=; b=hzS0SdkbaL8usSMYU+CpoFDQFl8wUi9qVwEYVowkdX4cSEW9zQ5+hg1Diu+QNHznMy z70nHFdxC4NtBG7IvcEdBCehzQUW6luKST6yr8CdSC2+NjB/lZd5JxqvQWOsQFfp2tv5 bLo4yG2G5j9jmR1xtHKP2XkCbsBE0E5w/c3PeH7egZtyaqi5/CVsWoMZCGqMyI721g54 BKtPgy3ACUhc7EPgfffEep5wxUQMvJf2gWqxFrLB1eJP8SlQmOOCe1AN+Q8ztq7GJrIZ aXuLMeeZZLcgt4lYnbd/S54V6YFETeLVrb2sUXTthZC6eXxt6frKTuNyGt2rTRETx0Te wFiA== X-Gm-Message-State: ALoCoQkEfVbqywvTikF1IPp0nQNXWupEiKBtUcyM0n7R4TMWhfEkl19qUNLyrGCb4FfYolMJJKLV X-Received: by 10.112.140.132 with SMTP id rg4mr652141lbb.12.1413566411320; Fri, 17 Oct 2014 10:20:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.80 with SMTP id be16ls288120lab.107.gmail; Fri, 17 Oct 2014 10:20:11 -0700 (PDT) X-Received: by 10.152.27.67 with SMTP id r3mr10187497lag.19.1413566411092; Fri, 17 Oct 2014 10:20:11 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id rq6si3043454lbb.21.2014.10.17.10.20.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id w7so1034648lbi.23 for ; Fri, 17 Oct 2014 10:20:11 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr10298564lah.56.1413566410996; Fri, 17 Oct 2014 10:20:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp268440lbz; Fri, 17 Oct 2014 10:20:10 -0700 (PDT) X-Received: by 10.69.11.69 with SMTP id eg5mr9983846pbd.2.1413566409474; Fri, 17 Oct 2014 10:20:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gv6si1574384pac.208.2014.10.17.10.20.08 for ; Fri, 17 Oct 2014 10:20:09 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753408AbaJQRRu (ORCPT + 3 others); Fri, 17 Oct 2014 13:17:50 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:55754 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753263AbaJQRRn (ORCPT ); Fri, 17 Oct 2014 13:17:43 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHS7K011680; Fri, 17 Oct 2014 12:17:28 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHSdf000619; Fri, 17 Oct 2014 12:17:28 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:28 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHRJc029788; Fri, 17 Oct 2014 12:17:28 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Heikki Krogerus , Felipe Balbi Subject: [PATCH 03/67] ACPI: platform: provide default DMA mask Date: Fri, 17 Oct 2014 12:16:10 -0500 Message-ID: <1413566234-13537-4-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Heikki Krogerus 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. Acked-by: Rafael J. Wysocki Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi --- 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",