From patchwork Tue Mar 15 15:24:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mian Yousaf Kaukab X-Patchwork-Id: 584 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:43:59 -0000 Delivered-To: patches@linaro.org Received: by 10.151.46.5 with SMTP id y5cs73612ybj; Tue, 15 Mar 2011 08:26:33 -0700 (PDT) Received: by 10.213.110.196 with SMTP id o4mr2339313ebp.114.1300202793569; Tue, 15 Mar 2011 08:26:33 -0700 (PDT) Received: from eu1sys200aog106.obsmtp.com (eu1sys200aog106.obsmtp.com [207.126.144.121]) by mx.google.com with SMTP id b15si20274034eei.53.2011.03.15.08.26.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 08:26:33 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.121 is neither permitted nor denied by best guess record for domain of mian.yousaf.kaukab@stericsson.com) client-ip=207.126.144.121; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.121 is neither permitted nor denied by best guess record for domain of mian.yousaf.kaukab@stericsson.com) smtp.mail=mian.yousaf.kaukab@stericsson.com Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob106.postini.com ([207.126.147.11]) with SMTP ID DSNKTX+FJQI3TwvW0ktU9r7XDPIvlp2WmiHs@postini.com; Tue, 15 Mar 2011 15:26:33 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 58191115; Tue, 15 Mar 2011 15:26:28 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EE5962632; Tue, 15 Mar 2011 15:26:27 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id C02FCA80AF; Tue, 15 Mar 2011 16:25:51 +0100 (CET) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.2.254.0; Tue, 15 Mar 2011 16:25:57 +0100 From: Mian Yousaf Kaukab To: Felipe Balbi , Cc: Lee Jones , Mian Yousaf Kaukab Subject: [PATCH 6/8] usb: musb: ux500: copy dma mask from platform device to musb device Date: Tue, 15 Mar 2011 16:24:29 +0100 Message-ID: <1300202671-12818-7-git-send-email-mian.yousaf.kaukab@stericsson.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1300202671-12818-1-git-send-email-mian.yousaf.kaukab@stericsson.com> References: <1300202671-12818-1-git-send-email-mian.yousaf.kaukab@stericsson.com> MIME-Version: 1.0 musb code checks dma mask before calling dma hooks. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/musb/ux500.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index d6384e4..f7e04bf 100644 --- a/drivers/usb/musb/ux500.c +++ b/drivers/usb/musb/ux500.c @@ -93,6 +93,8 @@ static int __init ux500_probe(struct platform_device *pdev) } musb->dev.parent = &pdev->dev; + musb->dev.dma_mask = pdev->dev.dma_mask; + musb->dev.coherent_dma_mask = pdev->dev.coherent_dma_mask; glue->dev = &pdev->dev; glue->musb = musb;