Revert "security: tlk_driver: set dma coherent mask for tlk"
Shridhar Rasal [Mon, 7 Sep 2015 16:40:02 +0000 (09:40 -0700)]
This reverts commit ec5a4185d8ef9091fc4e19fbbaeacb2ab8ef4e92.
Original change http://git-master/r/#/c/793522/ breaks ap_sim_basic/t210 sanity test.

Original Bug 200134203
Bug 200137647

Change-Id: I9d752bc4d50612163e50393869634c32219f6a1f
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/795320
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

security/tlk_driver/ote_log.c

index b535f80..5b6c709 100644 (file)
@@ -54,15 +54,6 @@ static int circ_buf_init(struct circular_buffer **cbptr)
 {
 
        dma_addr_t tp;
-       int ret;
-
-       ret = dma_set_coherent_mask(tlk_misc_device.this_device,
-                       DMA_BIT_MASK(32));
-       if (ret) {
-               dev_err(tlk_misc_device.this_device,
-                       "dma_set_coherent_mask fails with: %d\n", ret);
-               return ret;
-       }
 
        *cbptr = (struct circular_buffer *) dma_alloc_coherent(
                        tlk_misc_device.this_device,