[core] print reset progress messages

This commit is contained in:
Geoffrey McRae 2020-11-15 14:53:30 +11:00
parent ef8d4139cb
commit 8ea3ae46fc
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
PACKAGE_NAME="vendor-reset"
PACKAGE_VERSION="0.0.15"
PACKAGE_VERSION="0.0.16"
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
MAKE[0]="make KDIR=${kernel_source_dir}"
CLEAN="make KDIR=${kernel_source_dir} clean"

View File

@ -56,19 +56,25 @@ long vendor_reset_dev_locked(struct vendor_reset_cfg *cfg, struct pci_dev *dev)
if (cfg->ops->pre_reset)
{
vr_info(&vdev, "performing pre-reset\n");
ret = cfg->ops->pre_reset(&vdev);
if (ret)
return ret;
}
/* expose return code to cleanup */
vr_info(&vdev, "performing reset\n");
ret = vdev.reset_ret = cfg->ops->reset(&vdev);
if (ret)
vr_warn(&vdev, "failed to reset device\n");
if (cfg->ops->post_reset)
{
vr_info(&vdev, "performing post-reset\n");
ret = cfg->ops->post_reset(&vdev);
}
vr_info(&vdev, "reset result = %d\n", ret);
return ret;
}