OSDN Git Service

hw/usb/ohci: Implement resume on connection status change
authorBALATON Zoltan <balaton@eik.bme.hu>
Mon, 20 Feb 2023 18:15:09 +0000 (19:15 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Mar 2023 23:37:48 +0000 (00:37 +0100)
commit0c38e9ddd7ba0fcbada0b1f1d4d11e7b5b0dcbe3
tree2ce00b9764eb5d6b124becbea782a2bfc2b23b54
parenteb604411a78b82c468e2b8d81a9401eb8b9c7658
hw/usb/ohci: Implement resume on connection status change

If certain bit is set remote wake up should change state from
suspended to resume and generate interrupt. There was a todo comment
for this, implement that by moving existing resume logic to a function
and call that.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <35c4d4ccf2f73e6a87cdbd28fb6a1b33de72ed74.1676916640.git.balaton@eik.bme.hu>
[PMD: Have ohci_resume() return a boolean]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/usb/hcd-ohci.c