diff options
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 8e4dd74b96e5..4ad6a6bab5a3 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -951,7 +951,7 @@ static int _mei_irq_thread_cmpl(struct mei_device *dev, s32 *slots, | |||
951 | list_move_tail(&cb_pos->cb_list, | 951 | list_move_tail(&cb_pos->cb_list, |
952 | &dev->write_waiting_list.mei_cb.cb_list); | 952 | &dev->write_waiting_list.mei_cb.cb_list); |
953 | } | 953 | } |
954 | } else if (*slots == ((dev->host_hw_state & H_CBD) >> 24)) { | 954 | } else if (*slots == dev->hbuf_depth) { |
955 | /* buffer is still empty */ | 955 | /* buffer is still empty */ |
956 | mei_hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; | 956 | mei_hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; |
957 | mei_hdr->host_addr = cl->host_client_id; | 957 | mei_hdr->host_addr = cl->host_client_id; |
@@ -1046,8 +1046,8 @@ static int _mei_irq_thread_cmpl_iamthif(struct mei_device *dev, s32 *slots, | |||
1046 | &dev->write_waiting_list.mei_cb.cb_list); | 1046 | &dev->write_waiting_list.mei_cb.cb_list); |
1047 | 1047 | ||
1048 | } | 1048 | } |
1049 | } else if (*slots == ((dev->host_hw_state & H_CBD) >> 24)) { | 1049 | } else if (*slots == dev->hbuf_depth) { |
1050 | /* buffer is still empty */ | 1050 | /* buffer is still empty */ |
1051 | mei_hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; | 1051 | mei_hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; |
1052 | mei_hdr->host_addr = cl->host_client_id; | 1052 | mei_hdr->host_addr = cl->host_client_id; |
1053 | mei_hdr->me_addr = cl->me_client_id; | 1053 | mei_hdr->me_addr = cl->me_client_id; |