diff options
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index c6ffbbe5a6c0..94370d26ed45 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -633,7 +633,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, | |||
633 | if (version_res->host_version_supported) { | 633 | if (version_res->host_version_supported) { |
634 | dev->version.major_version = HBM_MAJOR_VERSION; | 634 | dev->version.major_version = HBM_MAJOR_VERSION; |
635 | dev->version.minor_version = HBM_MINOR_VERSION; | 635 | dev->version.minor_version = HBM_MINOR_VERSION; |
636 | if (dev->mei_state == MEI_INIT_CLIENTS && | 636 | if (dev->dev_state == MEI_DEV_INIT_CLIENTS && |
637 | dev->init_clients_state == MEI_START_MESSAGE) { | 637 | dev->init_clients_state == MEI_START_MESSAGE) { |
638 | dev->init_clients_timer = 0; | 638 | dev->init_clients_timer = 0; |
639 | mei_host_enum_clients_message(dev); | 639 | mei_host_enum_clients_message(dev); |
@@ -707,7 +707,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, | |||
707 | dev->me_clients[dev->me_client_presentation_num].props | 707 | dev->me_clients[dev->me_client_presentation_num].props |
708 | = props_res->client_properties; | 708 | = props_res->client_properties; |
709 | 709 | ||
710 | if (dev->mei_state == MEI_INIT_CLIENTS && | 710 | if (dev->dev_state == MEI_DEV_INIT_CLIENTS && |
711 | dev->init_clients_state == | 711 | dev->init_clients_state == |
712 | MEI_CLIENT_PROPERTIES_MESSAGE) { | 712 | MEI_CLIENT_PROPERTIES_MESSAGE) { |
713 | dev->me_client_index++; | 713 | dev->me_client_index++; |
@@ -734,7 +734,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, | |||
734 | * Client ID 2 - Reserved for AMTHI | 734 | * Client ID 2 - Reserved for AMTHI |
735 | */ | 735 | */ |
736 | bitmap_set(dev->host_clients_map, 0, 3); | 736 | bitmap_set(dev->host_clients_map, 0, 3); |
737 | dev->mei_state = MEI_ENABLED; | 737 | dev->dev_state = MEI_DEV_ENABLED; |
738 | 738 | ||
739 | /* if wd initialization fails, initialization the AMTHI client, | 739 | /* if wd initialization fails, initialization the AMTHI client, |
740 | * otherwise the AMTHI client will be initialized after the WD client connect response | 740 | * otherwise the AMTHI client will be initialized after the WD client connect response |
@@ -759,7 +759,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, | |||
759 | case HOST_ENUM_RES_CMD: | 759 | case HOST_ENUM_RES_CMD: |
760 | enum_res = (struct hbm_host_enum_response *) mei_msg; | 760 | enum_res = (struct hbm_host_enum_response *) mei_msg; |
761 | memcpy(dev->me_clients_map, enum_res->valid_addresses, 32); | 761 | memcpy(dev->me_clients_map, enum_res->valid_addresses, 32); |
762 | if (dev->mei_state == MEI_INIT_CLIENTS && | 762 | if (dev->dev_state == MEI_DEV_INIT_CLIENTS && |
763 | dev->init_clients_state == MEI_ENUM_CLIENTS_MESSAGE) { | 763 | dev->init_clients_state == MEI_ENUM_CLIENTS_MESSAGE) { |
764 | dev->init_clients_timer = 0; | 764 | dev->init_clients_timer = 0; |
765 | dev->me_client_presentation_num = 0; | 765 | dev->me_client_presentation_num = 0; |
@@ -776,7 +776,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, | |||
776 | break; | 776 | break; |
777 | 777 | ||
778 | case HOST_STOP_RES_CMD: | 778 | case HOST_STOP_RES_CMD: |
779 | dev->mei_state = MEI_DISABLED; | 779 | dev->dev_state = MEI_DEV_DISABLED; |
780 | dev_dbg(&dev->pdev->dev, "resetting because of FW stop response.\n"); | 780 | dev_dbg(&dev->pdev->dev, "resetting because of FW stop response.\n"); |
781 | mei_reset(dev, 1); | 781 | mei_reset(dev, 1); |
782 | break; | 782 | break; |
@@ -1240,7 +1240,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list, | |||
1240 | *slots -= dev->extra_write_index; | 1240 | *slots -= dev->extra_write_index; |
1241 | dev->extra_write_index = 0; | 1241 | dev->extra_write_index = 0; |
1242 | } | 1242 | } |
1243 | if (dev->mei_state == MEI_ENABLED) { | 1243 | if (dev->dev_state == MEI_DEV_ENABLED) { |
1244 | if (dev->wd_pending && | 1244 | if (dev->wd_pending && |
1245 | mei_flow_ctrl_creds(dev, &dev->wd_cl) > 0) { | 1245 | mei_flow_ctrl_creds(dev, &dev->wd_cl) > 0) { |
1246 | if (mei_wd_send(dev)) | 1246 | if (mei_wd_send(dev)) |
@@ -1361,8 +1361,8 @@ void mei_timer(struct work_struct *work) | |||
1361 | 1361 | ||
1362 | 1362 | ||
1363 | mutex_lock(&dev->device_lock); | 1363 | mutex_lock(&dev->device_lock); |
1364 | if (dev->mei_state != MEI_ENABLED) { | 1364 | if (dev->dev_state != MEI_DEV_ENABLED) { |
1365 | if (dev->mei_state == MEI_INIT_CLIENTS) { | 1365 | if (dev->dev_state == MEI_DEV_INIT_CLIENTS) { |
1366 | if (dev->init_clients_timer) { | 1366 | if (dev->init_clients_timer) { |
1367 | if (--dev->init_clients_timer == 0) { | 1367 | if (--dev->init_clients_timer == 0) { |
1368 | dev_dbg(&dev->pdev->dev, "IMEI reset due to init clients timeout ,init clients state = %d.\n", | 1368 | dev_dbg(&dev->pdev->dev, "IMEI reset due to init clients timeout ,init clients state = %d.\n", |
@@ -1484,8 +1484,8 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id) | |||
1484 | 1484 | ||
1485 | /* check if ME wants a reset */ | 1485 | /* check if ME wants a reset */ |
1486 | if ((dev->me_hw_state & ME_RDY_HRA) == 0 && | 1486 | if ((dev->me_hw_state & ME_RDY_HRA) == 0 && |
1487 | dev->mei_state != MEI_RESETING && | 1487 | dev->dev_state != MEI_DEV_RESETING && |
1488 | dev->mei_state != MEI_INITIALIZING) { | 1488 | dev->dev_state != MEI_DEV_INITIALIZING) { |
1489 | dev_dbg(&dev->pdev->dev, "FW not ready.\n"); | 1489 | dev_dbg(&dev->pdev->dev, "FW not ready.\n"); |
1490 | mei_reset(dev, 1); | 1490 | mei_reset(dev, 1); |
1491 | mutex_unlock(&dev->device_lock); | 1491 | mutex_unlock(&dev->device_lock); |
@@ -1498,7 +1498,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id) | |||
1498 | dev_dbg(&dev->pdev->dev, "we need to start the dev.\n"); | 1498 | dev_dbg(&dev->pdev->dev, "we need to start the dev.\n"); |
1499 | dev->host_hw_state |= (H_IE | H_IG | H_RDY); | 1499 | dev->host_hw_state |= (H_IE | H_IG | H_RDY); |
1500 | mei_hcsr_set(dev); | 1500 | mei_hcsr_set(dev); |
1501 | dev->mei_state = MEI_INIT_CLIENTS; | 1501 | dev->dev_state = MEI_DEV_INIT_CLIENTS; |
1502 | dev_dbg(&dev->pdev->dev, "link is established start sending messages.\n"); | 1502 | dev_dbg(&dev->pdev->dev, "link is established start sending messages.\n"); |
1503 | /* link is established | 1503 | /* link is established |
1504 | * start sending messages. | 1504 | * start sending messages. |