aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-04-08 14:56:38 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 19:55:57 -0400
commitd6c36a475fccfca05fd05362c98e49f6dd07721c (patch)
tree0c2171814ceec88eac693c21a43f572664617035 /drivers/misc
parent4234a6deb5ab04e50cfd6d72761345727bd2de21 (diff)
mei: notify about the reset in error level
Display errors causing device reset using dev_err and not dev_dbg also change messages text to something more concise Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/hbm.c21
-rw-r--r--drivers/misc/mei/interrupt.c6
2 files changed, 12 insertions, 15 deletions
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index fb9e63ba3bb1..de7f5ba3194f 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -145,7 +145,7 @@ void mei_hbm_start_req(struct mei_device *dev)
145 145
146 dev->recvd_msg = false; 146 dev->recvd_msg = false;
147 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) { 147 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) {
148 dev_dbg(&dev->pdev->dev, "write send version message to FW fail.\n"); 148 dev_err(&dev->pdev->dev, "version message writet failed\n");
149 dev->dev_state = MEI_DEV_RESETING; 149 dev->dev_state = MEI_DEV_RESETING;
150 mei_reset(dev, 1); 150 mei_reset(dev, 1);
151 } 151 }
@@ -175,7 +175,7 @@ static void mei_hbm_enum_clients_req(struct mei_device *dev)
175 175
176 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) { 176 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) {
177 dev->dev_state = MEI_DEV_RESETING; 177 dev->dev_state = MEI_DEV_RESETING;
178 dev_dbg(&dev->pdev->dev, "write send enumeration request message to FW fail.\n"); 178 dev_err(&dev->pdev->dev, "enumeration request write failed.\n");
179 mei_reset(dev, 1); 179 mei_reset(dev, 1);
180 } 180 }
181 dev->init_clients_state = MEI_ENUM_CLIENTS_MESSAGE; 181 dev->init_clients_state = MEI_ENUM_CLIENTS_MESSAGE;
@@ -227,7 +227,7 @@ static int mei_hbm_prop_req(struct mei_device *dev)
227 227
228 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) { 228 if (mei_write_message(dev, mei_hdr, dev->wr_msg.data)) {
229 dev->dev_state = MEI_DEV_RESETING; 229 dev->dev_state = MEI_DEV_RESETING;
230 dev_err(&dev->pdev->dev, "Properties request command failed\n"); 230 dev_err(&dev->pdev->dev, "properties request write failed\n");
231 mei_reset(dev, 1); 231 mei_reset(dev, 1);
232 232
233 return -EIO; 233 return -EIO;
@@ -557,7 +557,7 @@ void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
557 mei_hbm_enum_clients_req(dev); 557 mei_hbm_enum_clients_req(dev);
558 } else { 558 } else {
559 dev->recvd_msg = false; 559 dev->recvd_msg = false;
560 dev_dbg(&dev->pdev->dev, "reset due to received hbm: host start\n"); 560 dev_err(&dev->pdev->dev, "reset: wrong host start response\n");
561 mei_reset(dev, 1); 561 mei_reset(dev, 1);
562 return; 562 return;
563 } 563 }
@@ -591,23 +591,20 @@ void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
591 me_client = &dev->me_clients[dev->me_client_presentation_num]; 591 me_client = &dev->me_clients[dev->me_client_presentation_num];
592 592
593 if (props_res->status || !dev->me_clients) { 593 if (props_res->status || !dev->me_clients) {
594 dev_dbg(&dev->pdev->dev, "reset due to received host client properties response bus message wrong status.\n"); 594 dev_err(&dev->pdev->dev, "reset: properties response hbm wrong status.\n");
595 mei_reset(dev, 1); 595 mei_reset(dev, 1);
596 return; 596 return;
597 } 597 }
598 598
599 if (me_client->client_id != props_res->address) { 599 if (me_client->client_id != props_res->address) {
600 dev_err(&dev->pdev->dev, 600 dev_err(&dev->pdev->dev, "reset: host properties response address mismatch\n");
601 "Host client properties reply mismatch\n");
602 mei_reset(dev, 1); 601 mei_reset(dev, 1);
603
604 return; 602 return;
605 } 603 }
606 604
607 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || 605 if (dev->dev_state != MEI_DEV_INIT_CLIENTS ||
608 dev->init_clients_state != MEI_CLIENT_PROPERTIES_MESSAGE) { 606 dev->init_clients_state != MEI_CLIENT_PROPERTIES_MESSAGE) {
609 dev_err(&dev->pdev->dev, 607 dev_err(&dev->pdev->dev, "reset: unexpected properties response\n");
610 "Unexpected client properties reply\n");
611 mei_reset(dev, 1); 608 mei_reset(dev, 1);
612 609
613 return; 610 return;
@@ -637,7 +634,7 @@ void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
637 /* first property reqeust */ 634 /* first property reqeust */
638 mei_hbm_prop_req(dev); 635 mei_hbm_prop_req(dev);
639 } else { 636 } else {
640 dev_dbg(&dev->pdev->dev, "reset due to received host enumeration clients response bus message.\n"); 637 dev_err(&dev->pdev->dev, "reset: unexpected enumeration response hbm.\n");
641 mei_reset(dev, 1); 638 mei_reset(dev, 1);
642 return; 639 return;
643 } 640 }
@@ -645,7 +642,7 @@ void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
645 642
646 case HOST_STOP_RES_CMD: 643 case HOST_STOP_RES_CMD:
647 dev->dev_state = MEI_DEV_DISABLED; 644 dev->dev_state = MEI_DEV_DISABLED;
648 dev_dbg(&dev->pdev->dev, "resetting because of FW stop response.\n"); 645 dev_info(&dev->pdev->dev, "reset: FW stop response.\n");
649 mei_reset(dev, 1); 646 mei_reset(dev, 1);
650 break; 647 break;
651 648
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 255e0853479c..9ff8c61fe457 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -623,7 +623,7 @@ void mei_timer(struct work_struct *work)
623 if (dev->dev_state == MEI_DEV_INIT_CLIENTS) { 623 if (dev->dev_state == MEI_DEV_INIT_CLIENTS) {
624 if (dev->init_clients_timer) { 624 if (dev->init_clients_timer) {
625 if (--dev->init_clients_timer == 0) { 625 if (--dev->init_clients_timer == 0) {
626 dev_dbg(&dev->pdev->dev, "IMEI reset due to init clients timeout ,init clients state = %d.\n", 626 dev_err(&dev->pdev->dev, "reset: init clients timeout ,init clients state = %d.\n",
627 dev->init_clients_state); 627 dev->init_clients_state);
628 mei_reset(dev, 1); 628 mei_reset(dev, 1);
629 } 629 }
@@ -635,7 +635,7 @@ void mei_timer(struct work_struct *work)
635 list_for_each_entry_safe(cl_pos, cl_next, &dev->file_list, link) { 635 list_for_each_entry_safe(cl_pos, cl_next, &dev->file_list, link) {
636 if (cl_pos->timer_count) { 636 if (cl_pos->timer_count) {
637 if (--cl_pos->timer_count == 0) { 637 if (--cl_pos->timer_count == 0) {
638 dev_dbg(&dev->pdev->dev, "HECI reset due to connect/disconnect timeout.\n"); 638 dev_err(&dev->pdev->dev, "reset: connect/disconnect timeout.\n");
639 mei_reset(dev, 1); 639 mei_reset(dev, 1);
640 goto out; 640 goto out;
641 } 641 }
@@ -644,7 +644,7 @@ void mei_timer(struct work_struct *work)
644 644
645 if (dev->iamthif_stall_timer) { 645 if (dev->iamthif_stall_timer) {
646 if (--dev->iamthif_stall_timer == 0) { 646 if (--dev->iamthif_stall_timer == 0) {
647 dev_dbg(&dev->pdev->dev, "resetting because of hang to amthi.\n"); 647 dev_err(&dev->pdev->dev, "reset: amthif hanged.\n");
648 mei_reset(dev, 1); 648 mei_reset(dev, 1);
649 dev->iamthif_msg_buf_size = 0; 649 dev->iamthif_msg_buf_size = 0;
650 dev->iamthif_msg_buf_index = 0; 650 dev->iamthif_msg_buf_index = 0;