diff options
| author | Ram Chandrasekar <rkumbako@codeaurora.org> | 2015-10-27 17:32:09 -0600 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:15:28 -0700 |
| commit | 4f9f3cdabfa0740ac074f4970390c5f625f7e8f9 (patch) | |
| tree | cc804fc0bac6ce10a37b22021729d9087db6eb49 /include | |
| parent | ff6a8d71234c32d4824c9fa74c14b0bbe7f02425 (diff) | |
msm: limits: Add support to handle data greater than PAGE_SIZE
Debug data read was not handling the buffer overflow case when
the data to write is greater than PAGE_SIZE. This resulted in
calling the hardware for new data multiple times.
Returning success when buffer overflowed will cause the sequence
traverse function to call again with a new buffer with increased
size. This process will go on until the buffer size is big enough
to hold the data. But limits data read function couldn't distinguish
if the call is a retry or a new call and will initiate a new data
fetch from hardware and re-populate with new data.
Modify debug read interface to immediately return success when
overflow happens. The debug read function now can distinguish between
a sequence retry call by retaining the data buffer in a static if
overflow happens. When called again, debug read now will avoid
calling the hardware for new data and instead will populate the new
sequence buffer with the previously fetched data.
Change-Id: Icc0eb035047ab734d2eb5366cade4ec187747379
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
