Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757186AbcCROBA (ORCPT ); Fri, 18 Mar 2016 10:01:00 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39291 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752251AbcCROA6 (ORCPT ); Fri, 18 Mar 2016 10:00:58 -0400 Subject: Re: [PATCH 1/3] crypto: marvell/cesa - replace dma_to_phys with dma_map_single To: Robin Murphy , Boris Brezillon , Russell King - ARM Linux References: <1458252137-24497-1-git-send-email-okaya@codeaurora.org> <20160317225459.GA19428@n2100.arm.linux.org.uk> <80402e2f82651814b1411a25b1740288@codeaurora.org> <20160317235020.GB19428@n2100.arm.linux.org.uk> <20160318103028.4be15b78@bbrezillon> <56EBE5BC.6000000@arm.com> <56EC07E9.1000506@codeaurora.org> Cc: linux-arm-kernel@lists.infradead.org, Herbert Xu , timur@codeaurora.org, Arnaud Ebalard , linux-kernel@vger.kernel.org, cov@codeaurora.org, "David S. Miller" , nwatters@codeaurora.org, linux-crypto@vger.kernel.org From: Sinan Kaya Message-ID: <56EC0A16.9040206@codeaurora.org> Date: Fri, 18 Mar 2016 10:00:54 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <56EC07E9.1000506@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 627 Lines: 18 On 3/18/2016 9:51 AM, Sinan Kaya wrote: > Another option is I can write > > engine->sram_dma = swiotlb_dma_to_phys(res->start) I realized that I made a mistake in the commit message and the code above. The code is trying to find DMA address from physical address. Not the other way around. I'll fix it on the next version. The correct suggestion above would be engine->sram_dma = swiotlb_phys_to_dmares->start) -- Sinan Kaya Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project