Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3493608imm; Mon, 8 Oct 2018 05:05:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV615EWhD9v6af+g5A0+1SgHN/juY5VMzWDYqpzFHVShQZeWmwAca3Hfdp3NCcaOXYIYymP4A X-Received: by 2002:a17:902:4583:: with SMTP id n3-v6mr24051258pld.255.1539000358441; Mon, 08 Oct 2018 05:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539000358; cv=none; d=google.com; s=arc-20160816; b=tIczPRRIUio4gPMAo1KG+PL7usBltTumIiUbyRN7IJdYuDE6Wj2ObPe+FVtVP6UdKu 4My+YTxWn2LBfDiTXL1luwycF3oZoBnYEAQ4kGezV1D54rWFKRUZjGbvg57nQI+eC36c 0KuVnFjT3WJEpNiVxN4iJxTqWjOtbUlAEWXOKRDWWj0Je5G12nnbjh84Qe1bDqtBcqBA kINTo6S+UnygYmWpAu83NIr389JdNDZwzThjyfpNhzeH15pw2PpJQVuH8KDTiq6Q29hz VTRLGf4X8zIN+FEf0MdLzgu7D4nwsiOlaiKD32Sy5i5rtcqDpmbyc3Bkbo1OIn8pqLEM yZkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CLRxykBuvQVx4reDV0fn/8vqh0cJ044zfDD6z+RE0LQ=; b=bBl+6WxbLlJH4Fevi5Wa9/qBsCdkRjXJ08AGa+zIq5RQkPyH7es0tNDLeI0crICrN4 WLDOUFtektZNE+JuIBg0yhL6L4RO0j3OhgXbvBkIj2bn8vW8HTz+CtcfqXYdD7pJgRJ8 xMbjC/bgNf/3fy2a/TLEsLLUpBLnuJwRKlMFxacCwbsqUotWBCJWSu5Ow66TFk4P/RnE tQhySmlG4pLieEwGHQgp+BurKa+7ZFeXKTp/yv08b9qbI4e6O2xrhfAm/xmoZMMZR1BQ 4TGUOCy4sgYgDnDeSMkfOAZcQEDVKoZcjkxbpusgkkR3NfMzleYdneDpzJN0Y7rrq22K CgSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d40-v6si18550449pla.217.2018.10.08.05.05.43; Mon, 08 Oct 2018 05:05:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727885AbeJHTQj (ORCPT + 99 others); Mon, 8 Oct 2018 15:16:39 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42358 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726995AbeJHTQj (ORCPT ); Mon, 8 Oct 2018 15:16:39 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9858D207C4; Mon, 8 Oct 2018 14:05:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id D29F820726; Mon, 8 Oct 2018 14:05:10 +0200 (CEST) Date: Mon, 8 Oct 2018 14:05:11 +0200 From: Boris Brezillon 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 , Kumar Gala , DTML , Linux Kernel Mailing List , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj , Peter Rosin , mshettel@codeaurora.org, swboyd@chromium.org Subject: Re: [PATCH v8 07/10] i3c: master: Add driver for Cadence IP Message-ID: <20181008140511.153392d1@bbrezillon> In-Reply-To: References: <20181003132212.12619-1-boris.brezillon@bootlin.com> <20181003132212.12619-8-boris.brezillon@bootlin.com> <20181008122101.7b391070@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.