From: Tony Lindgren <tony@atomide.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH 1/9] musb_hdrc: Search and replace USB_INVENTRA_FIFO with USB_MUSB_DISABLE_DMA
Date: Mon, 20 Aug 2007 02:10:19 -0700 [thread overview]
Message-ID: <11876010292224-git-send-email-tony@atomide.com> (raw)
In-Reply-To: <11876010273160-git-send-email-tony@atomide.com>
Search and replace USB_INVENTRA_FIFO with USB_MUSB_DISABLE_DMA
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
drivers/usb/musb/Kconfig | 8 ++++----
drivers/usb/musb/Makefile | 2 +-
drivers/usb/musb/dma.h | 2 +-
drivers/usb/musb/musb_gadget.c | 2 +-
drivers/usb/musb/musb_procfs.c | 2 +-
drivers/usb/musb/plat_uds.c | 12 ++++++------
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index a9bcd7e..8e5430a 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -129,7 +129,7 @@ config USB_MUSB_HDRC_HCD
default y
-config USB_INVENTRA_FIFO
+config USB_MUSB_DISABLE_DMA
bool 'Disable DMA (always use PIO)'
depends on USB_MUSB_HDRC
default y if USB_TUSB6010
@@ -144,21 +144,21 @@ config USB_INVENTRA_FIFO
config USB_INVENTRA_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !USB_MUSB_DISABLE_DMA
default ARCH_OMAP2430 || ARCH_OMAP343X
help
Enable DMA transfers using Mentor's engine.
config USB_TI_CPPI_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !USB_MUSB_DISABLE_DMA
default ARCH_DAVINCI
help
Enable DMA transfers when TI CPPI DMA is available.
config USB_TUSB_OMAP_DMA
bool
- depends on USB_MUSB_HDRC && !USB_INVENTRA_FIFO
+ depends on USB_MUSB_HDRC && !USB_MUSB_DISABLE_DMA
depends on USB_TUSB6010
depends on ARCH_OMAP
default y
diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile
index 535ba40..fbff415 100644
--- a/drivers/usb/musb/Makefile
+++ b/drivers/usb/musb/Makefile
@@ -31,7 +31,7 @@ endif
# PIO (INVENTRA_FIFO), or DMA (several potential schemes).
# though PIO is always there to back up DMA, and for ep0
-ifneq ($(CONFIG_USB_INVENTRA_FIFO),y)
+ifneq ($(CONFIG_USB_MUSB_DISABLE_DMA),y)
ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
musb_hdrc-objs += musbhsdma.o
diff --git a/drivers/usb/musb/dma.h b/drivers/usb/musb/dma.h
index 701d312..deef0c2 100644
--- a/drivers/usb/musb/dma.h
+++ b/drivers/usb/musb/dma.h
@@ -62,7 +62,7 @@ struct musb_hw_ep;
#define DMA_ADDR_INVALID (~(dma_addr_t)0)
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
#define is_dma_capable() (1)
#else
#define is_dma_capable() (0)
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 88757ce..5a4227e 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -291,7 +291,7 @@ static void txstate(struct musb *musb, struct musb_request *req)
epnum, musb_ep->packet_sz, fifo_count,
csr);
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
if (is_dma_capable() && musb_ep->dma) {
struct dma_controller *c = musb->dma_controller;
diff --git a/drivers/usb/musb/musb_procfs.c b/drivers/usb/musb/musb_procfs.c
index 1bc5c79..3144f34 100644
--- a/drivers/usb/musb/musb_procfs.c
+++ b/drivers/usb/musb/musb_procfs.c
@@ -508,7 +508,7 @@ static int dump_header_stats(struct musb *musb, char *buffer)
code = sprintf(buffer,
"Options: "
-#ifdef CONFIG_USB_INVENTRA_FIFO
+#ifdef CONFIG_USB_MUSB_DISABLE_DMA
"pio"
#elif defined(CONFIG_USB_TI_CPPI_DMA)
"cppi-dma"
diff --git a/drivers/usb/musb/plat_uds.c b/drivers/usb/musb/plat_uds.c
index dacf930..e544339 100644
--- a/drivers/usb/musb/plat_uds.c
+++ b/drivers/usb/musb/plat_uds.c
@@ -1536,7 +1536,7 @@ irqreturn_t musb_interrupt(struct musb *musb)
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
static int __initdata use_dma = 1;
/* "modprobe ... use_dma=0" etc */
@@ -1918,7 +1918,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
goto fail2;
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
if (use_dma && dev->dma_mask) {
struct dma_controller *c;
@@ -2047,7 +2047,7 @@ fail2:
* bridge to a platform device; this driver then suffices.
*/
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
static u64 *orig_dma_mask;
#endif
@@ -2068,7 +2068,7 @@ static int __init musb_probe(struct platform_device *pdev)
return -ENOMEM;
}
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
/* clobbered by use_dma=n */
orig_dma_mask = dev->dma_mask;
#endif
@@ -2094,7 +2094,7 @@ static int __devexit musb_remove(struct platform_device *pdev)
musb_free(musb);
iounmap(ctrl_base);
device_init_wakeup(&pdev->dev, 0);
-#ifndef CONFIG_USB_INVENTRA_FIFO
+#ifndef CONFIG_USB_MUSB_DISABLE_DMA
pdev->dev.dma_mask = orig_dma_mask;
#endif
return 0;
@@ -2180,7 +2180,7 @@ static int __init musb_init(void)
#endif
pr_info("%s: version " MUSB_VERSION ", "
-#ifdef CONFIG_USB_INVENTRA_FIFO
+#ifdef CONFIG_USB_MUSB_DISABLE_DMA
"pio"
#elif defined(CONFIG_USB_TI_CPPI_DMA)
"cppi-dma"
--
1.5.2.3
next prev parent reply other threads:[~2007-08-20 9:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 9:10 [PATCH 0/9] musb_hdrc: Unify naming and rename common files Tony Lindgren
2007-08-20 9:10 ` Tony Lindgren [this message]
2007-08-20 9:10 ` [PATCH 2/9] musb_hdrc: Search and replace USB_INVENTRA_HCD_LOGGING with USB_MUSB_LOGLEVEL Tony Lindgren
2007-08-20 9:10 ` [PATCH 3/9] musb_hdrc: Rename plat_uds.c to musb_core.c, plat_arc.h to musb_arch.h Tony Lindgren
2007-08-20 9:10 ` [PATCH 4/9] musb_hdrc: Rename musbhdrc.h to musb_regs.h Tony Lindgren
2007-08-20 9:10 ` [PATCH 5/9] musb_hdrc: Rename musbdefs.h to musb_core.h Tony Lindgren
2007-08-20 9:10 ` [PATCH 6/9] musb_hdrc: Rename dma.h to musb_dma.h Tony Lindgren
2007-08-20 9:10 ` [PATCH 7/9] musb_hdrc: Rename g_ep0.c musb_gadget_ep0.c Tony Lindgren
2007-08-20 9:10 ` [PATCH 8/9] musb_hdrc: Rename virthub.c musb_host_virthub.c Tony Lindgren
2007-08-20 9:10 ` [PATCH 9/9] musb_hdrc: Rename debug.h to musb_debug.h Tony Lindgren
2007-08-21 7:23 ` [PATCH 0/9] musb_hdrc: Unify naming and rename common files Tony Lindgren
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=11876010292224-git-send-email-tony@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap-open-source@linux.omap.com \
/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