All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH 1/4] musb: get rid of unneeded musb->config->dyn_fifo
Date: Tue, 15 Dec 2009 09:39:50 -0800	[thread overview]
Message-ID: <20091215173950.GI4575@atomide.com> (raw)
In-Reply-To: <1260883909-26836-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>

* Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org> [091215 05:31]:
> We can get dynamic FIFO information from CONFIGDATA register and
> thus there is no need for any user defiend dyn_fifo.

Have you tested this?

$ grep dyn_fifo arch/arm/mach-omap2/*.c
arch/arm/mach-omap2/usb-musb.c: .dyn_fifo       = 1,

Tony
 
> 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-omap" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
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

  parent reply	other threads:[~2009-12-15 17:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Tony Lindgren [this message]
     [not found]     ` <20091215173950.GI4575-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2009-12-16  5:06       ` [PATCH 1/4] musb: get rid of unneeded musb->config->dyn_fifo Gupta, Ajay Kumar

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=20091215173950.GI4575@atomide.com \
    --to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
    --cc=ajay.gupta-l0cyMroinI0@public.gmane.org \
    --cc=felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.