From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752393AbdAaNlX (ORCPT ); Tue, 31 Jan 2017 08:41:23 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:40307 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdAaNlE (ORCPT ); Tue, 31 Jan 2017 08:41:04 -0500 Subject: Re: [PATCH V6 1/5] LIB: Indirect ISA/LPC port IO introduced To: Bjorn Helgaas , "zhichang.yuan" References: <1485241525-201782-1-git-send-email-yuanzhichang@hisilicon.com> <1485241525-201782-2-git-send-email-yuanzhichang@hisilicon.com> <20170131000914.GA11331@bhelgaas-glaptop.roam.corp.google.com> CC: , , , , , , , , , , , , , , , , , , , , , , , , From: John Garry Message-ID: Date: Tue, 31 Jan 2017 13:34:24 +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: <20170131000914.GA11331@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.181.152] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/01/2017 00:09, Bjorn Helgaas wrote: > On Tue, Jan 24, 2017 at 03:05:21PM +0800, zhichang.yuan wrote: >> Low-pin-count interface is integrated into some SoCs. The accesses to those >> peripherals under LPC make use of I/O ports rather than the memory mapped I/O. >> >> To drive these devices, this patch introduces a method named indirect-IO. > > It's slightly confusing to call this "indirect I/O" and then use > "extio" for the filename and function prefix. It'd be nice to use > related names. We will consider something more consistent. > >> +struct extio_node { >> + unsigned long bus_start; /* bus start address */ >> + unsigned long io_start; /* io port token corresponding to bus_start */ >> + size_t range_size; /* size of the extio node operating range */ >> + struct fwnode_handle *fwnode; >> + struct list_head list; >> + struct extio_ops *ops; /* ops operating on this node */ >> + void *devpara; /* private parameter of the host device */ >> +}; > > I wish we didn't have both struct io_range and struct extio_node. It > seems like they're both sort of trying to do the same thing. Maybe > this is the same as what Alex is saying. > I think so. I have just replied to Alex regarding this. > Bjorn > Thanks, John > . >