From: Felipe Balbi <balbi@ti.com>
To: "Govindraj.R" <govindraj.raja@ti.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
Felipe Balbi <balbi@ti.com>,
Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask
Date: Wed, 15 Feb 2012 13:17:05 +0200 [thread overview]
Message-ID: <20120215111704.GA15346@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <1329301414-31003-2-git-send-email-govindraj.raja@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]
On Wed, Feb 15, 2012 at 03:53:33PM +0530, Govindraj.R wrote:
> 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);
while at that, you could use dma_set_coherent_mask();
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-02-15 11:17 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 ` [PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask Govindraj.R
2012-02-15 11:17 ` Felipe Balbi [this message]
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=20120215111704.GA15346@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=govindraj.raja@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).