public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] musb: get rid of unneeded musb->config->dyn_fifo
@ 2009-12-15 13:31 Ajay Kumar Gupta
  2009-12-15 13:34 ` Felipe Balbi
       [not found] ` <1260883909-26836-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
  0 siblings, 2 replies; 17+ messages in thread
From: Ajay Kumar Gupta @ 2009-12-15 13:31 UTC (permalink / raw)
  To: linux-usb-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	felipe.balbi-xNZwKgViW5gAvxtiuMwx3w, Ajay Kumar Gupta

We can get dynamic FIFO information from CONFIGDATA register and
thus there is no need for any user defiend dyn_fifo.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
---
 drivers/usb/musb/musb_core.c |   19 ++++---------------
 include/linux/usb/musb.h     |    1 -
 2 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 49f2346..2858940 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1404,21 +1404,10 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb)
 	musb->nr_endpoints = 1;
 	musb->epmask = 1;
 
-	if (reg & MUSB_CONFIGDATA_DYNFIFO) {
-		if (musb->config->dyn_fifo)
-			status = ep_config_from_table(musb);
-		else {
-			ERR("reconfigure software for Dynamic FIFOs\n");
-			status = -ENODEV;
-		}
-	} else {
-		if (!musb->config->dyn_fifo)
-			status = ep_config_from_hw(musb);
-		else {
-			ERR("reconfigure software for static FIFOs\n");
-			return -ENODEV;
-		}
-	}
+	if (reg & MUSB_CONFIGDATA_DYNFIFO)
+		status = ep_config_from_table(musb);
+	else
+		status = ep_config_from_hw(musb);
 
 	if (status < 0)
 		return status;
diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h
index d437556..c5f006e 100644
--- a/include/linux/usb/musb.h
+++ b/include/linux/usb/musb.h
@@ -30,7 +30,6 @@ struct musb_hdrc_eps_bits {
 struct musb_hdrc_config {
 	/* MUSB configuration-specific details */
 	unsigned	multipoint:1;	/* multipoint device */
-	unsigned	dyn_fifo:1;	/* supports dynamic fifo sizing */
 	unsigned	soft_con:1;	/* soft connect required */
 	unsigned	utm_16:1;	/* utm data witdh is 16 bits */
 	unsigned	big_endian:1;	/* true if CPU uses big-endian */
-- 
1.6.2.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-12-18 11:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 13:31 [PATCH 1/4] musb: get rid of unneeded musb->config->dyn_fifo Ajay Kumar Gupta
2009-12-15 13:34 ` Felipe Balbi
     [not found]   ` <20091215133432.GN3689-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-12-15 13:48     ` Felipe Balbi
     [not found]       ` <20091215134857.GO3689-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-12-15 15:15         ` Gupta, Ajay Kumar
2009-12-17 13:01           ` Gupta, Ajay Kumar
     [not found]             ` <19F8576C6E063C45BE387C64729E73940449F4399B-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-12-17 13:10               ` Felipe Balbi
2009-12-17 13:12                 ` Gupta, Ajay Kumar
     [not found]                   ` <19F8576C6E063C45BE387C64729E73940449F439A1-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-12-17 13:29                     ` Felipe Balbi
     [not found] ` <1260883909-26836-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2009-12-15 13:31   ` [PATCH 2/4] musb: save dynfifo in musb struct Ajay Kumar Gupta
2009-12-15 13:31     ` [PATCH 3/4 v4] musb: Add context save and restore support Ajay Kumar Gupta
     [not found]       ` <1260883909-26836-3-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2009-12-15 13:31         ` [PATCH 4/4] musb: Add 'extvbus' in musb_hdrc_platform_data Ajay Kumar Gupta
2009-12-17 16:59           ` Felipe Balbi
2009-12-18 11:35         ` [PATCH 3/4 v4] musb: Add context save and restore support Felipe Balbi
2009-12-17 17:00       ` Felipe Balbi
2009-12-17 16:59     ` [PATCH 2/4] musb: save dynfifo in musb struct Felipe Balbi
2009-12-15 17:39   ` [PATCH 1/4] musb: get rid of unneeded musb->config->dyn_fifo Tony Lindgren
     [not found]     ` <20091215173950.GI4575-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2009-12-16  5:06       ` Gupta, Ajay Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox