Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b395754a authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: svc: add missing boot-status error message



Make sure to print an error message when aborting hotplug processing due
to failure to clear the interface boot status.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent f42a6891
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -393,8 +393,11 @@ static void gb_svc_process_intf_hotplug(struct gb_operation *operation)
	}

	ret = gb_svc_read_and_clear_module_boot_status(intf);
	if (ret)
	if (ret) {
		dev_err(&svc->dev, "failed to clear boot status of interface %u: %d\n",
				intf_id, ret);
		goto destroy_interface;
	}

	intf->unipro_mfg_id = le32_to_cpu(request->data.unipro_mfg_id);
	intf->unipro_prod_id = le32_to_cpu(request->data.unipro_prod_id);