[SeaBIOS] : USB 3.0 port failed if a USB 3.0 device is attached when power up

Zheng Bao fishbaoz at hotmail.com
Wed Aug 26 05:53:05 CET 2015


The problem is solved.
Besides a AMD fch register setting, this patch is still needed.

XHCI_PORTSC_PED, 100) != 0)
             return -1;
+     msleep(20);
         portsc = readl(&xhci->pr[port].portsc);
         rc = speed_from_xhci[xhci_get_field(portsc, XHCI_PORTSC_SPEED)];
         break;
Zheng
From: fishbaoz at hotmail.com
To: kevin at koconnor.net
Date: Wed, 26 Aug 2015 01:50:49 +0000
CC: seabios at seabios.org
Subject: Re: [SeaBIOS] : USB 3.0 port failed if a USB 3.0 device is attached when power up




The patch doesn't work.

> Date: Tue, 25 Aug 2015 11:20:16 -0400
> From: kevin at koconnor.net
> To: fishbaoz at hotmail.com
> CC: vidwer at gmail.com; seabios at seabios.org
> Subject: Re: [SeaBIOS] : USB 3.0 port failed if a USB 3.0 device is attached when power up
> 
> On Tue, Aug 25, 2015 at 06:11:53AM +0000, Zheng Bao wrote:
> > I tried with Parmer, which I assume is close to ASUS F2A85-M, and got the same result.
> > :(
> 
> Does the patch below help?  (Make sure CONFIG_THREADS=y).
> 
> -Kevin
> 
> 
> --- a/src/hw/usb-xhci.c
> +++ b/src/hw/usb-xhci.c
> @@ -364,6 +364,7 @@ xhci_hub_reset(struct usbhub_s *hub, u32 port)
>          writel(&xhci->pr[port].portsc, portsc);
>          if (wait_bit(&xhci->pr[port].portsc, XHCI_PORTSC_PED, XHCI_PORTSC_PED, 100) != 0)
>              return -1;
> +        msleep(20);
>          portsc = readl(&xhci->pr[port].portsc);
>          rc = speed_from_xhci[xhci_get_field(portsc, XHCI_PORTSC_SPEED)];
>          break;
 		 	   		  

_______________________________________________
SeaBIOS mailing list
SeaBIOS at seabios.org
http://www.seabios.org/mailman/listinfo/seabios 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.seabios.org/pipermail/seabios/attachments/20150826/a0d535ee/attachment.html>


More information about the SeaBIOS mailing list