Re: [PATCH 5/5] xhci: Remove recursive call to xhci_handle_event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 25-03-2011 10:44, Matt Evans wrote:

Make the caller loop while there are events to handle, instead.

Signed-off-by: Matt Evans<matt@xxxxxxxxxx>
---
  drivers/usb/host/xhci-ring.c |   16 +++++++++-------
  1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index b46efd9..97bedd6 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
[...]
@@ -2277,7 +2279,7 @@ hw_died:
  	/* FIXME this should be a delayed service routine
  	 * that clears the EHB.
  	 */
-	xhci_handle_event(xhci);
+	while (xhci_handle_event(xhci)) {};

   Semicolon not needed after }. Perhaps the committer could change this...

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux