From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753371AbbL2OGN (ORCPT ); Tue, 29 Dec 2015 09:06:13 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:31465 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073AbbL2OGK (ORCPT ); Tue, 29 Dec 2015 09:06:10 -0500 Subject: Re: [PATCH v1 2/3] ARM64 LPC: LPC driver implementation To: Arnd Bergmann , Rongrong Zou References: <1451396032-23708-1-git-send-email-zourongrong@gmail.com> <1451396032-23708-3-git-send-email-zourongrong@gmail.com> <1557466.ZWCBjbTVg8@wuerfel> CC: , , , , , , , From: Rongrong Zou Message-ID: <568292A2.9040708@huawei.com> Date: Tue, 29 Dec 2015 22:03:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1557466.ZWCBjbTVg8@wuerfel> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.30.66] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.568292AB.0109,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: 4fd61ad6c200931d7ffa4aea5be56ea1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2015/12/29 21:51, Arnd Bergmann 写道: > On Tuesday 29 December 2015 21:33:51 Rongrong Zou wrote: >> We only implement io cycles here, we hook the lpc_io_write_byte >> and lpc_io_read_byte to inb/outb. So the drivers(ipmi/uart) which access >> the legacy ISA I/O port need no modification. >> >> The low pin count specification is at >> http://www.intel.com/design/chipsets/industry/lpc.htm >> >> Signed-off-by: Rongrong Zou > > I'm slightly confused here: I thought this driver was hisilicon specific. > Is the MMIO register layout that is used in this hardware actually standardized > in a way that the driver also works for all other implementations? The register defined is not standardized. other vendors may define their own registers. > >> + >> +static struct lpc_dev *lpc_dev; >> + >> +int lpc_master_write(unsigned int slv_access_mode, unsigned int cycle_type, >> + unsigned int addr, unsigned char *buf, unsigned int len) >> +{ > > Please make all function definitions 'static' so we don't accidentally get > other users that bypass the proper interface. > > Arnd > _______________________________________________ > linuxarm mailing list > linuxarm@huawei.com > http://rnd-openeuler.huawei.com/mailman/listinfo/linuxarm > >