From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Subject: Re: [PATCH v8 07/10] i3c: master: Add driver for Cadence IP Date: Mon, 8 Oct 2018 14:05:11 +0200 Message-ID: <20181008140511.153392d1@bbrezillon> References: <20181003132212.12619-1-boris.brezillon@bootlin.com> <20181003132212.12619-8-boris.brezillon@bootlin.com> <20181008122101.7b391070@bbrezillon> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: Wolfram Sang , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , gregkh , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell List-Id: linux-i2c@vger.kernel.org On Mon, 8 Oct 2018 12:36:44 +0200 Arnd Bergmann wrote: > On Mon, Oct 8, 2018 at 12:21 PM Boris Brezillon > wrote: > > > > On Mon, 8 Oct 2018 12:06:30 +0200 > > Arnd Bergmann wrote: > > > > > On Wed, Oct 3, 2018 at 3:22 PM Boris Brezillon > > > wrote: > > > > > > > > Add a driver for Cadence I3C master IP. > > > > > > > > Signed-off-by: Boris Brezillon > > > > --- > > > > > > > Changes in v7: > > > > - Fix readsl/writesl() usage > > > > - Add a depends on ARM || ARM64 || XTENSA to forbid selection of this > > > > driver on platforms that are not implementing readsl/writesl > > > > > > Most architectures include asm-generic/io.h, which contains a generic > > > implementation of readsl(). Maybe that #ifdef could be extended here? > > > I remember discussing this with you not so long ago, which led to > > > commit 0bbf47eab469 ("ia64: use asm-generic/io.h"). Do we have > > > a list of architectures that don't include asm-generic/io.h? Maybe > > > the 'depends on' could be for the set of architectures that fail here. > > > > Well, we started patching 2 archs (ia64 and sparc) based on kbuild > > robots failure report, and then I received other reports (still from > > kbuild robots) long after the initial ones. I can't tell for sure which > > archs are not implementing those functions, hence the conservative > > approach taken here. > > I think it's a fairly safe assumption that architectures which include > asm-generic/io.h will be fine here. If one of them is broken, that > can be fixed individually. Looking at the ones that don't include this > file: > > grep -L asm-generic/io.h arch/*/include/asm/io*.h > arch/alpha/include/asm/io.h # missing readsl > arch/hexagon/include/asm/io.h # has its own readsl > arch/mips/include/asm/io.h # missing readsl (but used from ide.h?) > arch/parisc/include/asm/io.h # missing readsl > arch/powerpc/include/asm/io.h # has its own readsl > arch/sh/include/asm/io.h # has its own readsl > arch/sparc/include/asm/io.h # has its own readsl > > Based on this, I would try what happens on mips, and make it depend > on !(ALPHA || PARISC) Okay, I'll try with that.