aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/interrupt.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-02-06 07:06:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-06 14:23:47 -0500
commit827eef51f8dd9a4ab62b4ad270c15472f46938f2 (patch)
tree15798db67af269512bdb4ae54f36e0a26d178d4a /drivers/misc/mei/interrupt.c
parent52c34561415b420301f1580413a9d1891d079494 (diff)
mei: separate compilation of the ME hardware specifics
We add struct mei_hw_ops to virtualize access to hw specific configurations. This allows us to separate the compilation of the ME interface from the ME hardware specifics Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r--drivers/misc/mei/interrupt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index b04ed9bdf758..431aa91fd002 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -329,7 +329,7 @@ static int mei_irq_thread_read_handler(struct mei_cl_cb *cmpl_list,
329 int ret = 0; 329 int ret = 0;
330 330
331 if (!dev->rd_msg_hdr) { 331 if (!dev->rd_msg_hdr) {
332 dev->rd_msg_hdr = mei_mecbrw_read(dev); 332 dev->rd_msg_hdr = mei_read_hdr(dev);
333 dev_dbg(&dev->pdev->dev, "slots =%08x.\n", *slots); 333 dev_dbg(&dev->pdev->dev, "slots =%08x.\n", *slots);
334 (*slots)--; 334 (*slots)--;
335 dev_dbg(&dev->pdev->dev, "slots =%08x.\n", *slots); 335 dev_dbg(&dev->pdev->dev, "slots =%08x.\n", *slots);
@@ -430,7 +430,7 @@ static int mei_irq_thread_write_handler(struct mei_device *dev,
430 s32 slots; 430 s32 slots;
431 int ret; 431 int ret;
432 432
433 if (!mei_hbuf_is_empty(dev)) { 433 if (!mei_hbuf_is_ready(dev)) {
434 dev_dbg(&dev->pdev->dev, "host buffer is not empty.\n"); 434 dev_dbg(&dev->pdev->dev, "host buffer is not empty.\n");
435 return 0; 435 return 0;
436 } 436 }
@@ -698,7 +698,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id)
698 mei_clear_interrupts(dev); 698 mei_clear_interrupts(dev);
699 699
700 /* check if ME wants a reset */ 700 /* check if ME wants a reset */
701 if (!mei_me_is_ready(dev) && 701 if (!mei_hw_is_ready(dev) &&
702 dev->dev_state != MEI_DEV_RESETING && 702 dev->dev_state != MEI_DEV_RESETING &&
703 dev->dev_state != MEI_DEV_INITIALIZING) { 703 dev->dev_state != MEI_DEV_INITIALIZING) {
704 dev_dbg(&dev->pdev->dev, "FW not ready.\n"); 704 dev_dbg(&dev->pdev->dev, "FW not ready.\n");
@@ -709,7 +709,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id)
709 709
710 /* check if we need to start the dev */ 710 /* check if we need to start the dev */
711 if (!mei_host_is_ready(dev)) { 711 if (!mei_host_is_ready(dev)) {
712 if (mei_me_is_ready(dev)) { 712 if (mei_hw_is_ready(dev)) {
713 dev_dbg(&dev->pdev->dev, "we need to start the dev.\n"); 713 dev_dbg(&dev->pdev->dev, "we need to start the dev.\n");
714 714
715 mei_host_set_ready(dev); 715 mei_host_set_ready(dev);
@@ -743,7 +743,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id)
743 rets = mei_irq_thread_write_handler(dev, &complete_list); 743 rets = mei_irq_thread_write_handler(dev, &complete_list);
744end: 744end:
745 dev_dbg(&dev->pdev->dev, "end of bottom half function.\n"); 745 dev_dbg(&dev->pdev->dev, "end of bottom half function.\n");
746 dev->mei_host_buffer_is_empty = mei_hbuf_is_empty(dev); 746 dev->mei_host_buffer_is_empty = mei_hbuf_is_ready(dev);
747 747
748 bus_message_received = false; 748 bus_message_received = false;
749 if (dev->recvd_msg && waitqueue_active(&dev->wait_recvd_msg)) { 749 if (dev->recvd_msg && waitqueue_active(&dev->wait_recvd_msg)) {