From b395754a8e03a3d424a93b2601f6e41a4ad59a05 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 7 Dec 2015 15:05:28 +0100 Subject: [PATCH] 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: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/svc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 5ae64d7d3ecf..2a8f79e95b3c 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -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); -- 2.39.5