dm: workaroud for DM crash when doing fastboot reboot

This is temperory workaround for DM crash when doing fastboot
reboot. In fastboot, it will disable USB host functionality by
disable device respsone to one PCI bar. While DM code just release
the bar in this case. Which break the reboot functionality.

The workaround is to remove the assert to avoid DM abort. This is
safe because reboot will remove all memory range registered.

We will have offiical fixing later.

Tracked-On: #1277
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yin Fengwei 2018-09-18 16:07:51 +08:00 committed by lijinxia
parent 688cddac6a
commit 4a038d18b1

View File

@ -493,7 +493,11 @@ modify_bar_registration(struct pci_vdev *dev, int idx, int registration)
error = EINVAL;
break;
}
assert(error == 0);
/* FIXME: workaround for unregister_mem for fastboot. */
if (error != 0) {
printf("modify_bar_registration failed with %d", error);
}
}
static void