summaryrefslogtreecommitdiff
path: root/drivers/char/diag
diff options
context:
space:
mode:
authorMohit Aggarwal <maggarwa@codeaurora.org>2017-10-18 21:25:22 +0530
committerMohit Aggarwal <maggarwa@codeaurora.org>2017-10-18 21:31:07 +0530
commitbe7c8e9aafc638741dc427e753d542b1e4e9267a (patch)
tree94e73c3104e71d4c38db5d65ebafee2fca2d8657 /drivers/char/diag
parent20caa060844314aa4a2cd2e50c9e82eb12d57b34 (diff)
diag: Remove AXI prefetch related padding
Currently, diag is adding padding of 256 bytes as a workaround to get rid of AXI prefetch related h/w issue while writing data to USB. The patch removes the padding wherever h/w issue is not applicable to optimize memory allocation. CRs-Fixed: 2123113 Change-Id: Ia5b2eec1b2fb5bc5b15a572c68ee4da3ce97a19c Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Diffstat (limited to 'drivers/char/diag')
-rw-r--r--drivers/char/diag/diagchar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/diag/diagchar.h b/drivers/char/diag/diagchar.h
index d81a39e2c637..f1596eb336d9 100644
--- a/drivers/char/diag/diagchar.h
+++ b/drivers/char/diag/diagchar.h
@@ -34,7 +34,7 @@
#define DIAG_MAX_REQ_SIZE (16 * 1024)
#define DIAG_MAX_RSP_SIZE (16 * 1024)
-#define APF_DIAG_PADDING 256
+#define APF_DIAG_PADDING 0
/*
* In the worst case, the HDLC buffer can be atmost twice the size of the
* original packet. Add 3 bytes for 16 bit CRC (2 bytes) and a delimiter