From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbdA3JFK (ORCPT ); Mon, 30 Jan 2017 04:05:10 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:33522 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbdA3JEh (ORCPT ); Mon, 30 Jan 2017 04:04:37 -0500 Subject: Re: [PATCH V6 3/5] OF: Add missing I/O range exception for indirect-IO devices To: Rob Herring , "zhichang.yuan" References: <1485241525-201782-1-git-send-email-yuanzhichang@hisilicon.com> <1485241525-201782-4-git-send-email-yuanzhichang@hisilicon.com> <20170127220357.3lpavvyeymlhvlfg@rob-hp-laptop> CC: , , , , , , , , , , , , , , , , , , , , , , , From: John Garry Message-ID: <645d40d8-0db6-1737-88f4-fd839933b2ea@huawei.com> Date: Mon, 30 Jan 2017 08:57:09 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20170127220357.3lpavvyeymlhvlfg@rob-hp-laptop> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.181.152] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.588F0002.0047,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: abafc25197dacd32c94d35bd11933aba Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/01/2017 22:03, Rob Herring wrote: > On Tue, Jan 24, 2017 at 03:05:23PM +0800, zhichang.yuan wrote: >> There are some special ISA/LPC devices that work on a specific I/O range where >> it is not correct to specify a 'ranges' property in DTS parent node as cpu >> addresses translated from DTS node are only for memory space on some >> architectures, such as Arm64. Without the parent 'ranges' property, current >> of_translate_address() return an error. >> Here we add special handlings for this case. >> During the OF address translation, some checkings will be perfromed to >> identify whether the device node is registered as indirect-IO. If yes, the I/O >> translation will be done in a different way from that one of PCI MMIO. >> In this way, the I/O 'reg' property of the special ISA/LPC devices will be >> parsed correctly. >> >> Signed-off-by: zhichang.yuan >> Signed-off-by: Gabriele Paoloni >> Signed-off-by: Arnd Bergmann > > Shouldn't this be Reviewed-by? > The background is that Zhichang is following a sketch of a re-worked driver from Arnd, which Arnd gave Signed-off-by. But this patch does not follow it verbatim. I think this patchset should be resent without Arnd's signature. Or Arnd may kindly review and say it's ok. John > Otherwise, looks fine to me. > > Acked-by: Rob Herring > >> --- >> drivers/of/address.c | 87 ++++++++++++++++++++++++++++++++++++++++++---------- >> 1 file changed, 71 insertions(+), 16 deletions(-) >> > > . >