From 07f816a3f9ad356cd39322767aa97f42f93e52bb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 20 Feb 2012 08:25:38 +0000 Subject: [PATCH] [USBOHCI] - Queue a work item to handle an enable status change condition svn path=/trunk/; revision=55739 --- reactos/drivers/usb/usbohci/hardware.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reactos/drivers/usb/usbohci/hardware.cpp b/reactos/drivers/usb/usbohci/hardware.cpp index f9c357fa913..3bd8b2594af 100644 --- a/reactos/drivers/usb/usbohci/hardware.cpp +++ b/reactos/drivers/usb/usbohci/hardware.cpp @@ -1634,6 +1634,18 @@ OhciDefferedRoutine( // QueueSCEWorkItem = TRUE; } + else if (PortStatus & OHCI_RH_PORTSTATUS_PESC) + { + // + // device disconnected or some error condition + // + ASSERT(!(PortStatus & OHCI_RH_PORTSTATUS_PES)); + + // + // work to do + // + QueueSCEWorkItem = TRUE; + } else if (PortStatus & OHCI_RH_PORTSTATUS_PRSC) { //