Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969AbcJBWnv (ORCPT ); Sun, 2 Oct 2016 18:43:51 -0400 Received: from edison.jonmasters.org ([173.255.233.168]:49770 "EHLO edison.jonmasters.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099AbcJBWnm (ORCPT ); Sun, 2 Oct 2016 18:43:42 -0400 X-Greylist: delayed 2359 seconds by postgrey-1.27 at vger.kernel.org; Sun, 02 Oct 2016 18:43:41 EDT To: Arnd Bergmann , linux-arm-kernel@lists.infradead.org References: <1473855354-150093-1-git-send-email-yuanzhichang@hisilicon.com> <5140357.dcW9ibtZJ6@wuerfel> <57D963C4.4010406@hisilicon.com> <5869118.UilSPY9Sai@wuerfel> Cc: "zhichang.yuan" , devicetree@vger.kernel.org, lorenzo.pieralisi@arm.com, gabriele.paoloni@huawei.com, minyard@acm.org, gregkh@linuxfoundation.org, benh@kernel.crashing.org, john.garry@huawei.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, xuwei5@hisilicon.com, linuxarm@huawei.com, linux-serial@vger.kernel.org, linux-pci@vger.kernel.org, zourongrong@gmail.com, liviu.dudau@arm.com, kantyzc@163.com, zhichang.yuan02@gmail.com From: Jon Masters Organization: World Organi{s,z}ation Of Broken Dreams Message-ID: <2af4f2d8-e3a4-fa00-e700-60af70bf4560@jonmasters.org> Date: Sun, 2 Oct 2016 15:03:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <5869118.UilSPY9Sai@wuerfel> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 71.84.199.131 X-SA-Exim-Mail-From: jcm@jonmasters.org Subject: Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on edison.jonmasters.org) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 25 On 09/14/2016 02:32 PM, Arnd Bergmann wrote: > On Wednesday, September 14, 2016 10:50:44 PM CEST zhichang.yuan wrote: >> And there are probably multiple child devices under LPC, the global arm64_extio_ops only can cover one PIO range. It is fortunate only ipmi driver can not support I/O >> operation registering, serial driver has serial_in/serial_out to >> be registered. So, only the PIO range for ipmi device is stored >> in arm64_extio_ops and the indirect-IO >> works well for ipmi device. > > You should not do that in the serial driver, please just use the > normal 8250 driver that works fine once you handle the entire > port range. Just for the record, Arnd has the right idea. There is only one type of UART permitted by SBSA (PL011). We carved out an exception for a design that was already in flight and allowed it to be 16550. That other design was then corrected in future generations to be PL011 as we required it to be. Then there's the Hip06. I've given feedback elsewhere about the need for there to be (at most) two types of UART in the wild. This "LPC" stuff needs cleaning up (feedback given elsewhere already on that), but we won't be adding a third serial driver into the mix in order to make it work. There will be standard ARM servers. There will not be the kinda-sorta-standard. Thanks. Jon.