From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761792AbcINLuB (ORCPT ); Wed, 14 Sep 2016 07:50:01 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:57988 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756249AbcINLt6 (ORCPT ); Wed, 14 Sep 2016 07:49:58 -0400 Subject: Re: [PATCH V2 3/4] ARM64 LPC: support serial based on low-pin-count To: Arnd Bergmann , zhichang References: <1473255233-154297-1-git-send-email-yuanzhichang@hisilicon.com> <5345060.9D0B4ujt5e@wuerfel> <57D1349D.8070905@gmail.com> <2531252.L41vzyMSKX@wuerfel> CC: , , , , , , , , , From: "zhichang.yuan" Message-ID: <57D93921.50303@hisilicon.com> Date: Wed, 14 Sep 2016 19:48:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <2531252.L41vzyMSKX@wuerfel> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.57.79.81] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.57D9392D.016F,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: e527833a42b2678395dd576c815c1de2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/9/8 17:58, Arnd Bergmann wrote: > On Thursday, September 8, 2016 5:51:25 PM CEST zhichang wrote: >> On 2016年09月07日 22:50, Arnd Bergmann wrote: >>> On Wednesday, September 7, 2016 9:33:52 PM CEST Zhichang Yuan wrote: >>>> From: "zhichang.yuan" >>>> >>>> On Hip06 platform, a 16550 compatible UART is connected to low-pin-count and >>>> controlled through the LPC I/O cycles. This patch drives the UART port with >>>> the specific serial in/out function pair based on the indirect-IO mechanism >>>> introduced by Hip06 LPC driver. >>>> >>>> Signed-off-by: zhichang.yuan >>> >>> Any reason this cannot just use the regular drivers/tty/serial/8250/8250_of.c >>> driver? >> I think two reasons for that: >> 1. 8250_of.c is only for devicetree, but we need to support ACPI device too; > > ACPI has its own way of describing serial ports, use that instead. Could you give me some info about ACPI serial ports? I found there is _CRS specific for serial, but it seems no serial driver use that. Thanks! Zhichang > >> 2. It seems UPIO_PORT is not supported there. > > Should be easy enough to add. > > Arnd > > . >