On Thu, 18 May 2017, Shyam Sundar S K wrote:

> on AMD platforms with SNPS 3.1 USB controller has an issue
> if the stop EP command is issued when the controller is not
> in running state. If issued, it is leading to a critical RTL bug
> because of which controller goes into irrecoverable state.
> 
> This patch adds a appropriate checks to make sure that scenario
> does not happen.
> 
> Signed-off-by: Shyam Sundar S K <[email protected]>
> Signed-off-by: Nehal Shah <[email protected]>
> ---

> --- a/drivers/usb/host/xhci.h
> +++ b/drivers/usb/host/xhci.h
> @@ -1819,6 +1819,7 @@ struct xhci_hcd {
>  /* For controller with a broken Port Disable implementation */
>  #define XHCI_BROKEN_PORT_PED (1 << 25)
>  #define XHCI_LIMIT_ENDPOINT_INTERVAL_7       (1 << 26)
> +#define XHCI_BROKEN_STOP     (1 << 27)

Does there really need to be a quirk flag for this?  I should think 
that you never want to issue a STOP EP command while the controller is 
not running, no matter what kind of controller it is.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to