coresight: return correct size for stm_send

Ensure correct value for number of bytes sent is returned by
stm_send function.

Change-Id: I866e9c1c95ab645ad54c5c4eb84a433421380cf5
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
This commit is contained in:
Pratik Patel
2013-07-01 11:17:07 -07:00
parent cfb44d1d57
commit 0be1fca577
+3 -1
View File
@@ -450,6 +450,8 @@ static int stm_trace_ost_tail_64bit(unsigned long ch_addr, uint32_t options)
static int stm_send(void *addr, const void *data, uint32_t size)
{
uint32_t len = size;
if (((unsigned long)data & 0x1) && (size >= 1)) {
stm_data_writeb(*(uint8_t *)data, addr);
data++;
@@ -479,7 +481,7 @@ static int stm_send(void *addr, const void *data, uint32_t size)
size--;
}
return size;
return len;
}
static int stm_trace_ost_header(unsigned long ch_addr, uint32_t options,