aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/amthif.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/amthif.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/amthif.c')
-rw-r--r--drivers/misc/mei/amthif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 263ed4ccd6f2..a7c483850083 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -300,8 +300,8 @@ static int mei_amthif_send_cmd(struct mei_device *dev, struct mei_cl_cb *cb)
300 if (ret && dev->mei_host_buffer_is_empty) { 300 if (ret && dev->mei_host_buffer_is_empty) {
301 ret = 0; 301 ret = 0;
302 dev->mei_host_buffer_is_empty = false; 302 dev->mei_host_buffer_is_empty = false;
303 if (cb->request_buffer.size > mei_hbuf_max_data(dev)) { 303 if (cb->request_buffer.size > mei_hbuf_max_len(dev)) {
304 mei_hdr.length = mei_hbuf_max_data(dev); 304 mei_hdr.length = mei_hbuf_max_len(dev);
305 mei_hdr.msg_complete = 0; 305 mei_hdr.msg_complete = 0;
306 } else { 306 } else {
307 mei_hdr.length = cb->request_buffer.size; 307 mei_hdr.length = cb->request_buffer.size;
@@ -583,7 +583,7 @@ int mei_amthif_irq_read(struct mei_device *dev, s32 *slots)
583 dev->iamthif_msg_buf_index = 0; 583 dev->iamthif_msg_buf_index = 0;
584 dev->iamthif_msg_buf_size = 0; 584 dev->iamthif_msg_buf_size = 0;
585 dev->iamthif_stall_timer = MEI_IAMTHIF_STALL_TIMER; 585 dev->iamthif_stall_timer = MEI_IAMTHIF_STALL_TIMER;
586 dev->mei_host_buffer_is_empty = mei_hbuf_is_empty(dev); 586 dev->mei_host_buffer_is_empty = mei_hbuf_is_ready(dev);
587 return 0; 587 return 0;
588} 588}
589 589