From patchwork Mon Nov 4 17:22:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 178443 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1773539ilf; Mon, 4 Nov 2019 09:25:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwLim5vtV6OZtXWmijfKc3da2ZDDaHZsW1x4itGJ35SVfG3Ll+9xawOhowxICdBehoxvUiu X-Received: by 2002:a17:906:6b94:: with SMTP id l20mr22766678ejr.238.1572888337901; Mon, 04 Nov 2019 09:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572888337; cv=none; d=google.com; s=arc-20160816; b=jsOHKd8Ou0ztF58ta+4C2czCvDbwvhBS13A/0gfVmyYNDX9QY9P6rnEiD3/T9afcaY 7atw7wfAZDTKTb7HpxqFpw35bl5TIl3dLqcR2TGBLNY9aRlY0ewxls/BWgbhvMWilAqx ohUtrqp6rfB+EFWbwfKpuDFNDg/hgGVKYYpXtQBzMLWIFMn03sdA4grwVu+5Jko7X1qQ 3xoEGX7XtaxJ8VvJGfkfUH1pVwJ34BKkWQFaHtaTUu8PudyA/dx/sGoP9GFT9iQbFPz0 pkh0oQkL2o4Fdn2VKrnQOBwfSQtS3MYf/8KESyjrC8/IDwvWnAfXgqnz/SU+wTotUokm aoLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=gTGFSfLyeXyD+5IqSm6H1qf5HW4GZPut+P6qpUwgy2k=; b=Fp9w5TPUdfundmCgbfSYqI6HWzWzUHozaXW3ZFBgyoFKT5A6zufKU7n2UENWArXln4 uh9qUKunCz4SNmH39c3eqmHkzDklsLbc8qExnEzBoQvL7Ec+rz71pGCzGsNzaCL+zUUS ai+k7OiDYjzd9qROhTiKW+cU6C/fyTtWDi3cmf0M0B0LSUC0MYbDvNwGwx3xdwgkMI0U Z6GhU00tkuks8kwYEGsSNY64Y+k91gizhEIAAcuT36F4DsKTZcNLJQSv4GZsxg2cWdOK 9ELP1vLXMITR0CBCIGtnANx67OKAB1iamhAVSR8kWFOtkNsDsdpOAouST7baAc4v7q0U fgSw== 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 f2si3316647ejr.260.2019.11.04.09.25.37; Mon, 04 Nov 2019 09:25:37 -0800 (PST) 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 S1729397AbfKDRZg (ORCPT + 26 others); Mon, 4 Nov 2019 12:25:36 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6144 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728709AbfKDRZe (ORCPT ); Mon, 4 Nov 2019 12:25:34 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7C74F61AA012ECC36D09; Tue, 5 Nov 2019 01:25:31 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 5 Nov 2019 01:25:22 +0800 From: John Garry To: CC: , , , , , John Garry Subject: [PATCH v3 4/5] bus: hisi_lpc: Expand build test coverage Date: Tue, 5 Nov 2019 01:22:18 +0800 Message-ID: <1572888139-47298-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1572888139-47298-1-git-send-email-john.garry@huawei.com> References: <1572888139-47298-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the driver will only ever be built for ARM64 because it selects CONFIG_INDIRECT_PIO, which itself depends on ARM64. Expand build test coverage for the driver to other architectures by only selecting CONFIG_INDIRECT_PIO for ARM64, when we really want it. We don't include ALPHA, C6X, HEXAGON, and PARISC architectures as they don't define {read, write}sb. Signed-off-by: John Garry --- drivers/bus/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 6b331061d34b..70886abe008e 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -41,8 +41,9 @@ config MOXTET config HISILICON_LPC bool "Support for ISA I/O space on HiSilicon Hip06/7" - depends on ARM64 && (ARCH_HISI || COMPILE_TEST) - select INDIRECT_PIO + depends on (ARM64 && ARCH_HISI) || (COMPILE_TEST && !ALPHA && !HEXAGON && !PARISC && !C6X) + depends on HAS_IOMEM + select INDIRECT_PIO if ARM64 help Driver to enable I/O access to devices attached to the Low Pin Count bus on the HiSilicon Hip06/7 SoC.