
Dear Yuri,
On Fri, Aug 15, 2008 at 03:45:02PM +0200, u-boot@bugs.denx.de wrote:
Some of multi-function USB controllers (e.g. ISP1562) allow root hub resetting only via EHCI registers. So, this patch adds the corresponding kind of reset to OHCI's hc_reset() if the newly introduced CONFIG_PCI_EHCI_DEVNO option is set (e.g. for Socrates board).
Signed-off-by: Yuri Tikhonov yur@emcraft.com
Added to GNATS database as unassigned-patches/25
Responsible: patch-coord Message-Id: 1218807733-26929-3-git-send-email-dzu@denx.de In-Reply-To: 1218807733-26929-2-git-send-email-dzu@denx.de References: 1218807733-26929-1-git-send-email-dzu@denx.de 1218807733-26929-2-git-send-email-dzu@denx.de Patch-Date: Fri Aug 15 15:42:10 +0200 2008
drivers/usb/usb_ohci.c | 31 +++++++++++++++++++++++++++++++ drivers/usb/usb_ohci.h | 3 +++ include/configs/socrates.h | 1 + 3 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c index fd60edb..0f5bd06 100644 --- a/drivers/usb/usb_ohci.c +++ b/drivers/usb/usb_ohci.c @@ -1571,11 +1571,42 @@ int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
static int hc_reset (ohci_t *ohci) { +#ifdef CONFIG_PCI_EHCI_DEVNO
- pci_dev_t pdev;
- struct pci_device_id ehci_pci_ids[] = {
{0x1131, 0x1562}, /* Philips 1562 PCI EHCI module ids */
{0, 0}
- };
Please move this out of the function, preferrably next to the OHCI device ids.
Thanks!
Best regards
Markus