Gerd Hoffmann cbf82fa01e ehci: clear suspend bit on detach
When a device is detached, clear the suspend bit (PORTSC_SUSPEND)
in the port status register.

The specs are not *that* clear what is supposed to happen in case
a suspended device is unplugged.  But the enable bit (PORTSC_PED)
is cleared, and the specs mention setting suspend with enable being
unset is undefined behavior.  So clearing them both looks reasonable,
and it actually fixes the reported bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1268879

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1445413462-18004-1-git-send-email-kraxel@redhat.com
2015-11-03 11:55:51 +01:00
..
2015-09-25 14:56:22 +02:00
2015-10-02 16:22:02 -03:00
2015-09-25 12:04:43 +02:00
2015-10-20 09:26:36 +02:00
2015-09-14 16:13:16 +01:00
2015-10-27 15:59:46 +00:00
2015-10-27 15:59:46 +00:00
2015-10-23 12:35:18 +11:00
2015-10-27 15:59:46 +00:00
2015-09-25 12:04:43 +02:00
2015-09-25 12:04:43 +02:00
2015-10-27 15:59:46 +00:00
2015-10-27 15:59:46 +00:00
2015-10-23 12:35:18 +11:00
2015-10-29 11:17:53 +02:00
2015-10-23 12:35:18 +11:00
2015-10-29 17:59:26 +00:00
2015-10-29 17:59:26 +00:00
2015-09-07 10:39:28 +01:00
2015-10-27 15:59:46 +00:00
2015-11-03 11:55:51 +01:00
2015-10-29 11:05:24 +02:00
2015-09-25 14:52:17 +02:00