Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp957421imm; Fri, 17 Aug 2018 09:22:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxWrlcA7zXvdh0l5KHcK3DbJvqNbVrI4WYWUtx26hSD/onxuAhH1fnUXeh5redxcoMPJ23i X-Received: by 2002:a17:902:9a83:: with SMTP id w3-v6mr34594920plp.75.1534522949924; Fri, 17 Aug 2018 09:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534522949; cv=none; d=google.com; s=arc-20160816; b=gEx3QtFBTaT0bngzBBfCEtbaAKolf2lQ4YM8IaxTPzbqEaguqAKug9imHvevB2znVw 1DkLvNaKteUMQKyQXZJfFCfAsSn7byS3eH+HYVnWG5k3OXziRV+0vFWta5GfLYU3NAxd LepUmXKLii/wAP3pblrFS/7AHLREFk8VOji1bGykr8cin/QZ9LFUFBM0pa6UgmcMccj1 jfylMi3hadthkZ01Bg4AZBlZ1TvunVnHe0hxrkxtBqF64J6vdlU1VcGez/R36xXXefxm Tnccr4+fZOMl+8Rb6XceVHo70MlWR3QuFG2CmGbZCzmFHZIObe/5fzGFKafvx8Fkep07 m35w== 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 :arc-authentication-results; bh=qbRVNtUfMZMcijEjiQyp+HJ5BUO26EbN1nG26uojMaQ=; b=BHbtLUUGEL2425klOQ2Ly8EHQ1Zx7YUAY0LWkm4VoQrgVBPFvU8Sr4XX6vbdR3OSu1 f6Hgl/XWT47I34SlHcUbwPImyN2DbMtrwEPJUaQ+i4F5QNRFUhST8G3yeONZXTKT4cqP RHXR4BgLF8+ek2FUtX7Uh/wIAZZq5j5cXJzpRKg7QR1rBEdEPXF1nRXaszU3prwZNrgt BfPgGRTIlpnDNYG/3GJeGHSAyJG35OpXscI1eNP4HWH5nTGPoHRiI7H8TiInMl73k3JY m79HHqdw3LoF5EP07/GWsqFtM0n1vOppoWzDyPtJzYC30T57jKDifWenX/h5bUgwY6ig rAxg== 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 e14-v6si2223310pfi.184.2018.08.17.09.22.14; Fri, 17 Aug 2018 09:22:29 -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 S1727783AbeHQTYP (ORCPT + 99 others); Fri, 17 Aug 2018 15:24:15 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56239 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727398AbeHQTYO (ORCPT ); Fri, 17 Aug 2018 15:24:14 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DDAE9215D8; Fri, 17 Aug 2018 18:20:13 +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 (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 8F2E5212C4; Fri, 17 Aug 2018 18:20:03 +0200 (CEST) Date: Fri, 17 Aug 2018 18:20:03 +0200 From: Boris Brezillon To: "Luck, Tony" Cc: Arnd Bergmann , Bjorn Helgaas , Linux Kernel Mailing List , "jchandra@broadcom.com" , Sinan Kaya , Tomasz Nowicki , Lorenzo Pieralisi , "Miquel Raynal" Subject: Re: how to fix acpi_pci_root_remap_iospace? Message-ID: <20180817182003.22f4e198@bbrezillon> In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F7D3B3159@ORSMSX110.amr.corp.intel.com> References: <20180816204506.GA21144@agluck-desk> <20180816232639.GA25889@agluck-desk> <20180817105551.100d6e0a@bbrezillon> <3908561D78D1C84285E8C5FCA982C28F7D3B3159@ORSMSX110.amr.corp.intel.com> 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 Fri, 17 Aug 2018 15:56:23 +0000 "Luck, Tony" wrote: > >> - Some targets don't have any support for I/O space on their PCI bus and just > >> want to get things to compile by setting PCI_IOBASE to zero, this still opens > >> up some of the same problems as above, but doesn't really help otherwise. > > That sounds horrible. Why would you want to have a driver that can't possibly > work on your platform compile cleanly? That's just asking for trouble. Sombody > might load that driver, and ... all the outb/outw/outl calls just corrupt low memory. Well, COMPILE_TEST is here just for that, and it's actually quite useful to detect potential compilation errors/warnings and make sure the driver is portable. So, either we decide that readsx/writesx() are not standard and we create a Kconfig option to reflect when an arch implements them so that drivers using those funcs can at least be compile-tested on a few archs, or we fix all archs that do not implement those functions. > > > Hm, maybe it's just easier to revert the patch since we got rid of > > patches adding COMPILE_TEST to drivers which were using read/writesl() > > (it turned out ia64 and sparc were not the only archs to not implement > > readsx/writesx() variants, and fixing them is not that easy). > > That sounds like a better course of action. The solution I propose here is just a way to get that problem fixed quickly, but I'd still like to have a way to enable the s3c2xx and orion NAND driver when COMPILE_TEST=y.