From: "Govindraj.R" <govindraj.raja@ti.com>
To: Samuel Ortiz <sameo@linux.intel.com>, linux-usb@vger.kernel.org
Cc: linux-omap@vger.kernel.org, Felipe Balbi <balbi@ti.com>,
Alan Stern <stern@rowland.harvard.edu>,
"Govindraj.R" <govindraj.raja@ti.com>
Subject: [PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask
Date: Wed, 15 Feb 2012 15:53:33 +0530 [thread overview]
Message-ID: <1329301414-31003-2-git-send-email-govindraj.raja@ti.com> (raw)
In-Reply-To: <1329301414-31003-1-git-send-email-govindraj.raja@ti.com>
From: "Govindraj.R" <govindraj.raja@ti.com>
Remove the hardcoded magic values for dma mask and use the dma
mask macros available.
CC: Felipe Balbi <balbi@ti.com>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
---
drivers/mfd/omap-usb-host.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 68ac2c5..3109b0a 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -170,7 +170,7 @@ struct usbhs_hcd_omap {
/*-------------------------------------------------------------------------*/
const char usbhs_driver_name[] = USBHS_DRIVER_NAME;
-static u64 usbhs_dmamask = ~(u32)0;
+static u64 usbhs_dmamask = DMA_BIT_MASK(32);
/*-------------------------------------------------------------------------*/
@@ -223,7 +223,7 @@ static struct platform_device *omap_usbhs_alloc_child(const char *name,
}
child->dev.dma_mask = &usbhs_dmamask;
- child->dev.coherent_dma_mask = 0xffffffff;
+ child->dev.coherent_dma_mask = DMA_BIT_MASK(32);
child->dev.parent = dev;
ret = platform_device_add(child);
--
1.7.5.4
next prev parent reply other threads:[~2012-02-15 10:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 10:23 [PATCH 0/2] mfd: omap-usb-host: Minor omap-usb host fixes Govindraj.R
2012-02-15 10:23 ` Govindraj.R [this message]
2012-02-15 11:17 ` [PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask Felipe Balbi
2012-02-15 15:01 ` Govindraj
2012-02-15 15:56 ` Felipe Balbi
2012-02-15 10:23 ` [PATCH 2/2] mfd: omap-usb-host: Move usbhs init before allocing child dev Govindraj.R
[not found] ` <1329301414-31003-3-git-send-email-govindraj.raja-l0cyMroinI0@public.gmane.org>
2012-02-15 11:17 ` Felipe Balbi
[not found] ` <1329301414-31003-1-git-send-email-govindraj.raja-l0cyMroinI0@public.gmane.org>
2012-02-23 15:45 ` [PATCH 0/2] mfd: omap-usb-host: Minor omap-usb host fixes Samuel Ortiz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329301414-31003-2-git-send-email-govindraj.raja@ti.com \
--to=govindraj.raja@ti.com \
--cc=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).