From: Mathias Nyman Date: Thu, 8 May 2014 16:26:01 +0000 (+0300) Subject: xhci: Add a global command queue X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~174 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9aa1a2de4cbf7d0db6012fbf86b6ee0c3719470;p=pandora-kernel.git xhci: Add a global command queue Create a list to store command structures, add a structure to it every time a command is submitted, and remove it from the list once we get a command completion event matching the command. Callers that wait for completion will free their command structures themselves. The other command structures are freed in the command completion event handler. Also add a check that prevents queuing commands if host is dying Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed