]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add bus_release_resource() method to nexus on arm64
authormw <mw@FreeBSD.org>
Thu, 21 Mar 2019 10:51:36 +0000 (10:51 +0000)
committermw <mw@FreeBSD.org>
Thu, 21 Mar 2019 10:51:36 +0000 (10:51 +0000)
commit6bc222605a21640fd15291ae9d91df83e882ad6b
tree5ad483a0e9fe654effd78590c73adbd5965acbbe
parent1ca6c95b99dedfc585c0c8dc76619aa45f501157
Add bus_release_resource() method to nexus on arm64

The nexus module was missing method for releasing bus resources. As a
result, it couldn't be released and the bus_release_resource() call would
return ENXIO.

Next call to bus_alloc_resource() for the same resource was returning
error, because it wasn't released previously and it was still busy.

The implementation of the nexus_release_resource() is the same as for
arm architecture.

Submitted by:  Michal Krawczyk <mk@semihalf.com>
Reported-by: Greg V <greg@unrelenting.technology>
Tested-by: cperciva, Greg V <greg@unrelenting.technology>
Obtained from: Semihalf
MFC after:     2 weeks
Sponsored by:  Amazon, Inc.
Differential revision: https://reviews.freebsd.org/D19641
sys/arm64/arm64/nexus.c