platform: msm_shared: Fix cache flush issues
Make sure the buffer allocated for DMA are cache line aligned and remove
unwanted cache flush in ufs driver
Change-Id: I9e55354a3b5dd89396e08442219dc114e927f6f4
diff --git a/platform/msm_shared/ucs.c b/platform/msm_shared/ucs.c
index aaf17a8..63de398 100644
--- a/platform/msm_shared/ucs.c
+++ b/platform/msm_shared/ucs.c
@@ -446,9 +446,6 @@
return -UFS_FAILURE;
}
- /* Flush buffer. */
- arch_invalidate_cache_range((addr_t) param, SCSI_INQUIRY_LEN);
-
return UFS_SUCCESS;
}
@@ -468,7 +465,7 @@
STACKBUF_DMA_ALIGN(cdb, sizeof(struct scsi_sense_cdb));
struct scsi_req_build_type req_upiu;
struct scsi_sense_cdb *cdb_param;
- uint8_t buf[SCSI_SENSE_BUF_LEN];
+ STACKBUF_DMA_ALIGN(buf, SCSI_SENSE_BUF_LEN);
cdb_param = (struct scsi_sense_cdb *) cdb;