Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752640AbdF2QRW (ORCPT ); Thu, 29 Jun 2017 12:17:22 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9253 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbdF2QRT (ORCPT ); Thu, 29 Jun 2017 12:17:19 -0400 Subject: Re: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning To: "Rafael J. Wysocki" , Mika Westerberg References: <20170530132408.GA2556@red-moon> <20170606085553.GA20085@red-moon> <20170612155700.GA31930@red-moon> <20170613084831.GP3187@lahna.fi.intel.com> <20170613151013.GT3187@lahna.fi.intel.com> <20170613200339.GX3187@lahna.fi.intel.com> <20170616083313.GY3187@lahna.fi.intel.com> CC: Gabriele Paoloni , Lorenzo Pieralisi , "Rafael J. Wysocki" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "robh+dt@kernel.org" , "frowand.list@gmail.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "brian.starkey@arm.com" , "olof@lixom.net" , "benh@kernel.crashing.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , Linuxarm , "linux-pci@vger.kernel.org" , "minyard@acm.org" , "xuwei (O)" From: John Garry Message-ID: <808a7db0-7844-b263-0216-1fe943ac819a@huawei.com> Date: Thu, 29 Jun 2017 17:16:15 +0100 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: Content-Type: text/plain; charset="utf-8"; 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.0A090202.595527EE.00BA,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: c3f8b86a60a5855fe464b880082794b0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 27 On 16/06/2017 12:24, Rafael J. Wysocki wrote: >>>> >> > >>>> >> > It causes acpi_default_enumeration() to be called but it should be fine >>>> >> > as we are dealing with platform device anyway. >>> >> >>> >> I do not quite understand how declaring such MFD cell above would make sure >>> >> that the LPC probe is called before the IPMI device is enumerated... >> > >> > In fact it may be that it is not sufficient in this case because the >> > ACPI core might enumerate child devices before the LPC driver even gets >> > a chance to probe so you would need to add also scan handler to the >> > child devices and mark them already enumerated or something like that. > Or extend the special I2C/SPI handling to them. > For this, is it possible to just configure the ACPI table so we spoof that the LPC slave (IPI0001), is an i2c/spi slave? Could we just add a resource of type ACPI_RESOURCE_TYPE_SERIAL_BUS, and common serial bus type i2c/spi to solve this? This resource would/should need to be ignored for other purposes. John > Thanks, > Rafael