The usb_message() and usb_stream() functions currently check for port->speed==USB_SPEED_NONE to determine whether or not a device has been unplugged. This test will give a false negative result if a new device has been plugged in before the hotplug mechanism has finished handling the removal of the old device. Fix by checking instead the port->disconnected flag, which is now cleared only after completing the removal of the old device. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
| 485 |
|
485 |
|
| 486 |
|
486 |
|
| 487 |
|
487 |
|
| 488 |
|
|
|
|
488 |
|
|
| 489 |
|
489 |
|
| 490 |
|
490 |
|
| 491 |
|
491 |
|
|
|
||
| 534 |
|
534 |
|
| 535 |
|
535 |
|
| 536 |
|
536 |
|
| 537 |
|
|
|
|
537 |
|
|
| 538 |
|
538 |
|
| 539 |
|
539 |
|
| 540 |
|
540 |
|
|
|
||
| 1717 |
|
1717 |
|
| 1718 |
|
1718 |
|
| 1719 |
|
1719 |
|
| 1720 |
|
|
|
|
1720 |
|
|
|
1721 |
|
|
|
1722 |
|
|
| 1721 |
|
1723 |
|
| 1722 |
|
1724 |
|
| 1723 |
|
1725 |
|
| 1724 |
|
1726 |
|
| 1725 |
|
1727 |
|
| 1726 |
|
1728 |
|
|
1729 |
|
|
|
1730 |
|
|
|
1731 |
|
|
| 1727 |
|
1732 |
|
| 1728 |
|
1733 |
|
| 1729 |
|
1734 |
|
| 1730 |
|
|
|
|
1735 |
|
|
| 1731 |
|
1736 |
|
| 1732 |
|
|
|
| 1733 |
|
|
|
| 1734 |
|
|
|
| 1735 |
|
|
|
| 1736 |
|
|
|
|
1737 |
|
|
| 1737 |
|
1738 |
|
| 1738 |
|
1739 |
|
| 1739 |
|
1740 |
|
|
|
||
| 496 |
|
496 |
|
| 497 |
|
497 |
|
| 498 |
|
498 |
|
| 499 |
|
|
|
|
499 |
|
|
| 500 |
|
500 |
|
| 501 |
|
501 |
|
|
502 |
|
|
| 502 |
|
503 |
|
| 503 |
|
504 |
|
| 504 |
|
505 |
|