summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2013-01-04 11:49:05 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:49:15 -0700
commit4cf3b5be9ebc6f20ca62b352ea8191b83216d372 (patch)
tree80890c3334f53bd3bed2b36c6dda38b8629487df
parent95284e361cddc287b7575e359a94ff54b2548915 (diff)
usb: host: tegra: remove dma buffer sync
Remove the dma_sync_* functions for usb transfer when DMA is used. Bug 953885 Bug 1192878 Change-Id: I12455ef3390799921db6efc2ae901515089fa45d Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-on: http://git-master/r/189052 Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Tested-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> GVS: Gerrit_Virtual_Submit
-rw-r--r--drivers/usb/host/ehci-tegra.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 4e826162090d..cf28874b8b23 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -2,7 +2,7 @@
* EHCI-compliant USB host controller driver for NVIDIA Tegra SoCs
*
* Copyright (c) 2010 Google, Inc.
- * Copyright (c) 2009-2012 NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2009-2013 NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -145,21 +145,6 @@ static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd,
ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags);
- /* Control packets over dma */
- if (urb->setup_dma)
- dma_sync_single_for_device(hcd->self.controller,
- urb->setup_dma, sizeof(struct usb_ctrlrequest),
- DMA_TO_DEVICE);
-
- /* urb buffers over dma */
- if (urb->transfer_dma) {
- enum dma_data_direction dir;
- dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE;
-
- dma_sync_single_for_device(hcd->self.controller,
- urb->transfer_dma, urb->transfer_buffer_length, dir);
- }
-
if (ret)
free_align_buffer(urb, hcd);
@@ -169,16 +154,6 @@ static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd,
static void tegra_ehci_unmap_urb_for_dma(struct usb_hcd *hcd,
struct urb *urb)
{
-
- if (urb->transfer_dma) {
- enum dma_data_direction dir;
- dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE;
- if (dir == DMA_FROM_DEVICE)
- dma_sync_single_for_cpu(hcd->self.controller,
- urb->transfer_dma, urb->transfer_buffer_length,
- DMA_FROM_DEVICE);
- }
-
usb_hcd_unmap_urb_for_dma(hcd, urb);
free_align_buffer(urb, hcd);
}