mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-27 17:00:19 +00:00
usb_dwc3: shutdown the DART as well when shutting down usb
Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
parent
88275b5cb5
commit
9e061c2b50
1 changed files with 3 additions and 0 deletions
|
@ -1265,6 +1265,9 @@ void usb_dwc3_shutdown(dwc3_dev_t *dev)
|
||||||
ringbuffer_free(dev->pipe[i].device2host);
|
ringbuffer_free(dev->pipe[i].device2host);
|
||||||
ringbuffer_free(dev->pipe[i].host2device);
|
ringbuffer_free(dev->pipe[i].host2device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dev->dart)
|
||||||
|
dart_shutdown(dev->dart);
|
||||||
free(dev);
|
free(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue