Re: [PATCH v4 3/5] USB: EHCI: improve ehci_endpoint_disable

2013-07-02 Thread Alan Stern
On Tue, 2 Jul 2013, Ming Lei wrote: The patch does the below improvement: - think QH_STATE_COMPLETING as unlinking state since all URBs on the endpoint should be in unlinking or unlinked when doing endpoint_disable() - add WARN_ON(!list_empty(qh-qtd_list)); if qh-qh_state is

[PATCH v4 3/5] USB: EHCI: improve ehci_endpoint_disable

2013-07-01 Thread Ming Lei
The patch does the below improvement: - think QH_STATE_COMPLETING as unlinking state since all URBs on the endpoint should be in unlinking or unlinked when doing endpoint_disable() - add WARN_ON(!list_empty(qh-qtd_list)); if qh-qh_state is QH_STATE_LINKED because there shouldn't be any active