ehci usb driver:

* make sure the PortEnable bit is disabled (specification page 28)
* 250ms is too long: USB 2.0 specifies only 50ms. This prevented one of my devices to be detected.
+alpha


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41658 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-05-22 18:43:29 +00:00
parent fed577d81d
commit cca52e7987

View File

@ -1043,8 +1043,9 @@ EHCI::ResetPort(uint8 index)
} }
// enable reset signaling // enable reset signaling
WriteOpReg(portRegister, portStatus | EHCI_PORTSC_PORTRESET); WriteOpReg(portRegister, (portStatus & ~EHCI_PORTSC_ENABLE)
snooze(250000); | EHCI_PORTSC_PORTRESET);
snooze(50000);
// disable reset signaling // disable reset signaling
portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK; portStatus = ReadOpReg(portRegister) & EHCI_PORTSC_DATAMASK;