From: Hans de Goede Date: Fri, 16 Jan 2015 15:54:02 +0000 (+0200) Subject: xhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messages X-Git-Tag: fixes-v4.0-rc1~102^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6134136d938ed9298f15e865e4a035f9c0eeb9c;p=pandora-kernel.git xhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messages When re-applying the configuration after a successful usb device reset, xhci_discover_or_reset_device has already dropped the endpoints, and free-ed the rings. The endpoints already being dropped is expected, and should not lead to warnings. Use the fact that the rings are also free-ed in this scenario to detect this, and suppress the "xHCI xhci_drop_endpoint called with disabled ep ..." message in this case. Signed-off-by: Hans de Goede -- Changes in v2: Move the ring check to only guard the xhci_warn, so as to avoid side-effects in case we have a scenario where the rings are free-ed, but the endpoint is not yet dropped. Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed