From patchwork Tue Oct 1 16:04:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 174890 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8755550ill; Tue, 1 Oct 2019 09:07:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjQ6TWLO63Hts80wbqEMApXLjqlgzOg7aN0onAUwm3psTmF51z9/DKHgNEH4zjVc420axG X-Received: by 2002:a17:906:4d0f:: with SMTP id r15mr25011020eju.147.1569946071975; Tue, 01 Oct 2019 09:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569946071; cv=none; d=google.com; s=arc-20160816; b=GVixtqAcD/3bneXgqrGFwOFQIGoZ+Kch9xFRt0Hv8KCYSFOVELMrv/XZnjEQZe1bOv yXD+GptWwrUylFpavWsVWchaapFbGQRPTgBi3gGzkyPDY2ieX+2/GiovBhVGzEX4Dh44 dT8qjJ18olJGeDo7w85Sqwp6mbBL1Q4NOgGByT85BvWROFfSCLRsI8mGEPwDyoF5XDZE c3r2zxR0PGrq1fCcYBI7eXffSvWD2Ngd6DZUc5AgXXocXr4/2bVtc2bnKZjsQvF0DA4H uqUaSXtbbLxQ3xmf7avr7Dn1aGrM3xFoPYWpiyi28eSyA3orqlyNIrepT3KRrP553LNE 8I+g== 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=JdQFib1xvODx7RhbI3e4cwp5glGU2LMu5gkpRj2H6os=; b=TPEH02e/K6GWXJaBCmTpZLDwLqsVKKW6CxIm0A7+qYxC+z+s4FuCPy2mGn+Ubktx8X xdUWtlBxb+asAvzIVFFNItjPjqC+YCgAzUbMnfchKhteFO3MrP0QjLGoWncxw/M+xOui XIAiGTSJRJmUCqxeCX+vBtLe/4QvhuqvF3FVV4DShSBOvhH5XctngaU+ygsF5uvLIbXP 5ggxRdhIF2A5O0BlJCA43MDDpzzrlfZPNfAzshgOdEHiDv+XxCzG80jL6yMSLC1anf/Q W11qKLmsvetYpSPJRB1IC8iUWWOgLZ3WaHgfKJlEwz5xEsgK72D42TU0KV7U1Rh4tHn9 eceQ== 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 q30si10204449eda.5.2019.10.01.09.07.51; Tue, 01 Oct 2019 09:07:51 -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 S2387548AbfJAQHt (ORCPT + 27 others); Tue, 1 Oct 2019 12:07:49 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44524 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733280AbfJAQHs (ORCPT ); Tue, 1 Oct 2019 12:07:48 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6C6B5E5304A984C54688; Wed, 2 Oct 2019 00:07:45 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Wed, 2 Oct 2019 00:07:15 +0800 From: John Garry To: CC: , , , , , John Garry Subject: [PATCH 2/3] logic_pio: Define PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO Date: Wed, 2 Oct 2019 00:04:26 +0800 Message-ID: <1569945867-82243-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1569945867-82243-1-git-send-email-john.garry@huawei.com> References: <1569945867-82243-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the goal of expanding the test coverage of the HiSi LPC driver to !ARM64, define a dummy PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO, which is required by the named driver. Signed-off-by: John Garry --- include/linux/logic_pio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/include/linux/logic_pio.h b/include/linux/logic_pio.h index 88e1e6304a71..54945aa824b4 100644 --- a/include/linux/logic_pio.h +++ b/include/linux/logic_pio.h @@ -108,10 +108,10 @@ void logic_outsl(unsigned long addr, const void *buffer, unsigned int count); * area by redefining the macro below. */ #define PIO_INDIRECT_SIZE 0x4000 -#define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE) #else -#define MMIO_UPPER_LIMIT IO_SPACE_LIMIT +#define PIO_INDIRECT_SIZE 0 #endif /* CONFIG_INDIRECT_PIO */ +#define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE) struct logic_pio_hwaddr *find_io_range_by_fwnode(struct fwnode_handle *fwnode); unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode,