arm64: Hyper-V: vmbus: use the IRQ resource from vmbus_res
In ARM64 gen2 Hyper-V, use IRQ resource from vmbus_res, which is owning the IRQ for current device tree. It allows the MMIO resource to be successfully allocated for vmbus from parent acpi_syscontainer. Reviewed by: whu Tested by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D37064
This commit is contained in:
committed by
Wei Hu
parent
a2d60916d0
commit
0c38e1c338
@@ -111,8 +111,10 @@ vmbus_setup_intr1(struct vmbus_softc *sc)
|
||||
{
|
||||
int err;
|
||||
struct intr_map_data_acpi *irq_data;
|
||||
device_t dev;
|
||||
|
||||
sc->ires = bus_alloc_resource_any(device_get_parent(sc->vmbus_dev),
|
||||
dev = devclass_get_device(devclass_find("vmbus_res"), 0);
|
||||
sc->ires = bus_alloc_resource_any(dev,
|
||||
SYS_RES_IRQ, &sc->vector, RF_ACTIVE | RF_SHAREABLE);
|
||||
if (sc->ires == NULL) {
|
||||
device_printf(sc->vmbus_dev, "bus_alloc_resouce_any failed\n");
|
||||
|
||||
Reference in New Issue
Block a user