From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797AbcCRCaj (ORCPT ); Thu, 17 Mar 2016 22:30:39 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:61509 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752708AbcCRCaf (ORCPT ); Thu, 17 Mar 2016 22:30:35 -0400 From: Zhen Lei To: Catalin Marinas , Will Deacon , linux-arm-kernel , linux-kernel CC: Zefan Li , Xinwei Hu , "Tianhong Ding" , Hanjun Guo , Zhen Lei Subject: [PATCH v2 0/1] arm64/dma-mapping: reduce an unnecessary conversion for coherent DMA Date: Fri, 18 Mar 2016 10:26:06 +0800 Message-ID: <1458267967-6332-1-git-send-email-thunder.leizhen@huawei.com> X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.23.164] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.56EB67D0.010F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 08d8d12c92fccb953a425eb8ed3bc360 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog: v1 -> v2: 1. Give up removing the conversion, because of thoughtless, instead moved it into branch if (!is_device_dma_coherent(dev)). Thanks for Catalin's detailed explanation, I directly take some relies as comment in the code. Zhen Lei (1): arm64/dma-mapping: reduce an unnecessary conversion for coherent DMA arch/arm64/mm/dma-mapping.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) -- 2.5.0