On Sun, 22 Jan 2006, Clay wrote:

> Alan,
> 
> Your code below seems to be missing a curly bracket.

No, it's correct.

>  A closing bracket 
> would be missing the block beginning with "if (pdev->vendor".

You mean the second line of new code?  The corresponding close brace is on 
the 7th line of new code.

>  If not the 
> first, then an opening bracket would be missing for the block beginning with 
> "if (pci_read_config".

No, that line has neither an opening nor a closing brace.  Perhaps you're 
confused by the way your email program has removed the leading tab 
characters.

> Please correct and repost if necessary.  I was able to manually patch 
> "ehci-pci.c" with the lines as originally provided.  Although I am 
> recompiling now, I will likely have problems if a bracket is missing.

And did you end up having a problem?

Alan Stern


> Index: l2615/drivers/usb/host/ehci-pci.c
> ===================================================================
> --- l2615.orig/drivers/usb/host/ehci-pci.c
> +++ l2615/drivers/usb/host/ehci-pci.c
> @@ -65,6 +65,14 @@ static int ehci_pci_reinit(struct ehci_h
>   int retval;
>   unsigned count = 256/4;
> 
> + /* Set VIA no-shutdown-on-babble config flag */
> + if (pdev->vendor == PCI_VENDOR_ID_VIA) {
> + u8 val;
> +
> + if (pci_read_config_byte(pdev, 0x40, &val) == 0)
> + pci_write_config_byte(pdev, 0x40, val | 0x40);
> + }
> +
>   /* optional debug port, normally in the first BAR */
>   temp = pci_find_capability(pdev, 0x0a);
>   if (temp) {



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to