Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Anoop P.A <anoop.pa@gmail.com>
Cc: "gregkh@suse.de" <gregkh@suse.de>,
	"dbrownell@users.sourceforge.net"
	<dbrownell@users.sourceforge.net>,
	"stern@rowland.harvard.edu" <stern@rowland.harvard.edu>,
	"pkondeti@codeaurora.org" <pkondeti@codeaurora.org>,
	"jacob.jun.pan@intel.com" <jacob.jun.pan@intel.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"alek.du@intel.com" <alek.du@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"gadiyar@ti.com" <gadiyar@ti.com>,
	"ralf@linux-mips.org" <ralf@linux-mips.org>,
	"linux-mips@linux-mips.org" <linux-mips@linux-mips.org>,
	Greg KH <greg@kroah.com>
Subject: Re: [PATCH v4] EHCI bus glue for on-chip PMC MSP USB controller
Date: Tue, 15 Feb 2011 18:44:05 +0100	[thread overview]
Message-ID: <4D5ABB65.3090101@parrot.com> (raw)
In-Reply-To: <1297766591-11919-1-git-send-email-anoop.pa@gmail.com>

Anoop P.A a écrit :
> From: Anoop <paanoop1@paanoop1-desktop.(none)>
> 
> This patch add bus glue for USB controller commonly found in PMC-Sierra MSP71xx family of SoC's.
> Patch includes a tdi reset quirk as well .
> 
> Signed-off-by: Anoop P A <anoop.pa@gmail.com>
> Tested-by: Shane McDonald <mcdonald.shane@gmail.com>
> ---
> Changes.
>  ehci-pmcmsp.c is based on latest ehci-pci.c.Addressed some stylistic issue pointed by Greg.
>  Addressed review comments of Matthieu CASTET.
> 
>  config XPS_USB_HCD_XILINX
> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
> index cbf451a..913e7df 100644
> --- a/drivers/usb/host/ehci-hcd.c
> +++ b/drivers/usb/host/ehci-hcd.c
> @@ -260,6 +260,8 @@ static void tdi_reset (struct ehci_hcd *ehci)
>         if (ehci_big_endian_mmio(ehci))
>                 tmp |= USBMODE_BE;
>         ehci_writel(ehci, tmp, reg_ptr);
> +       if (ehci->pmc_msp_tdi)
> +               usb_hcd_tdi_set_mode(ehci);
>  }
> 
 > +#ifdef CONFIG_USB_EHCI_HCD_PMC_MSP
 > +extern void usb_hcd_tdi_set_mode(struct ehci_hcd *ehci);
 > +#else
 > +static inline void usb_hcd_tdi_set_mode(struct ehci_hcd *ehci)
 > +{ }
 > +#endif
 > +
 >  /* convert between an HCD pointer and the corresponding EHCI_HCD */
 >  static inline struct ehci_hcd *hcd_to_ehci (struct usb_hcd *hcd)
 >  {
 > --

This won't work it you build CONFIG_USB_EHCI_HCD_PMC_MSP and other ehci 
controller.

A better alternative could something like : 
http://article.gmane.org/gmane.linux.usb.general/42624




> +
> +/* host mode */
> +#define USB_CTRL_MODE_HOST             0x3
> +
> +/* big endian */
> +#define USB_CTRL_MODE_BIG_ENDIAN       0x4
> +
> +/* stream disable*/
> +#define USB_CTRL_MODE_STREAM_DISABLE   0x10
> +
This doesn't seem to be used anymore.


Matthieu

  reply	other threads:[~2011-02-15 17:44 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 11:06 [PATCH] EHCI support for on-chip PMC MSP USB controller Anoop P
2010-12-21 16:00 ` Alan Stern
2010-12-21 16:00   ` Alan Stern
2010-12-21 17:59   ` Greg KH
2010-12-22 14:34 ` [PATCH V2 0/2] " Anoop P.A
2010-12-22 14:36 ` [PATCH V2 1/2] " Anoop P.A
2010-12-22 14:58   ` Anoop P A
2010-12-24  9:44   ` Shane McDonald
2011-01-27 11:28     ` [PATCH v3] EHCI bus glue " Anoop P.A
2011-02-04 19:56       ` Greg KH
2011-02-09 14:12         ` Anoop P A
2011-02-09 17:20           ` Greg KH
2011-02-09 15:10       ` Matthieu CASTET
2011-02-09 15:44         ` Anoop P A
2011-02-15 10:43       ` [PATCH v4] " Anoop P.A
2011-02-15 17:44         ` Matthieu CASTET [this message]
2011-02-22 15:35           ` [PATCH v5] " Anoop P.A
2011-02-22 15:35             ` Anoop P.A
2011-02-22 20:04             ` Dan Carpenter
2011-02-22 20:04               ` Dan Carpenter
2011-02-23 13:22               ` Anoop P A
2011-02-23 13:22                 ` Anoop P A
2011-02-23 17:02                 ` Dan Carpenter
2011-02-23 17:02                   ` Dan Carpenter
2011-02-24 10:19                   ` Anoop P A
2011-02-24 10:19                     ` Anoop P A
2011-02-24 11:28                     ` Dan Carpenter
2011-02-24 11:28                       ` Dan Carpenter
2011-02-24 13:56                       ` [PATCH] " Anoop P.A
2011-02-24 13:56                         ` Anoop P.A
2010-12-22 14:36 ` [PATCH V2 2/2] MSP onchip root hub over current quirk Anoop P.A
2010-12-23  2:18   ` Alan Stern
2010-12-23  2:18     ` Alan Stern
2010-12-23  9:29     ` Anoop P A
2010-12-23 16:08       ` Alan Stern
2010-12-23 16:08         ` Alan Stern

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=4D5ABB65.3090101@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=alek.du@intel.com \
    --cc=anoop.pa@gmail.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=gadiyar@ti.com \
    --cc=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=jacob.jun.pan@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pkondeti@codeaurora.org \
    --cc=ralf@linux-mips.org \
    --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