From patchwork Mon Nov 4 17:22:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 178445 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1773719ilf; Mon, 4 Nov 2019 09:25:44 -0800 (PST) X-Google-Smtp-Source: APXvYqz02GpySVE8nF2nN9nkPVe508iBwvGArqBrQrtvbfMhtzCccTHWYv+XEnueSYOcHIA/XMpj X-Received: by 2002:a17:906:1cd8:: with SMTP id i24mr24980515ejh.149.1572888344775; Mon, 04 Nov 2019 09:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572888344; cv=none; d=google.com; s=arc-20160816; b=B8BaoLqHwiWeEHhs6qYtXG7ycBT8c5rKr+3CGqGMcdoUSwboba5IzA692wUTV/wzNy OLCMDNlndp2EVU4d5Q0xJPD/OiFPAb3ExbWAJQM7lobYc/PAcUihmp0Awkzrk16iaeDK tPa98hjE5IffqZRN0nVILhV65B9LfRKGH8XzrYfZBnhPdDtkchZL3sNtnWj8coHh9M8q UqsPvyGIXmvu85wtIrUX4lSwTWY5RRte+/w4e2LrnR2fdRlBWadW6ntebEIhvGQWCtvW Slrl4X0dg17kSxqIvagV6ltgwX20NMuB6OkV75TNwp1jlaaAryDHrTxRL5s5Gi5ojm/G KlXw== 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=O5llPEhGQ96L4baId5POJDQbfL31NQKtoMXZIyZGWafW6ibEdcMxIc74k993W1v21r nZQ9fTLyNVi621/ZZ1Ft/Kp5P0zf+tf3Tm4sB4PcAzLJ2bQY5vr3cDAuPjr4NQZgpd+C fq6anV/A7LYC9oHkMyKoifxeiH65TQwEd/iNtWXV/KkOkISBHPh1hcZUiDBLxSYaC9/9 fl2G7uks7kUp1lqLMh9Hx9ldOWzLJk5G12GfgJKqpG18dEnABZ05H6TW6C5G/sKl0MPI Twh6buLoUVNFPwhxCYNVVg4jBAs1+dtoa+Mzm5q1lhyz+qpvfsi2+SJVsHmVfzSiE3uE QZ4Q== 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.44; Mon, 04 Nov 2019 09:25:44 -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 S1729485AbfKDRZn (ORCPT + 26 others); Mon, 4 Nov 2019 12:25:43 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6145 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728321AbfKDRZf (ORCPT ); Mon, 4 Nov 2019 12:25:35 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 808AC1CF5697FE0F6D55; 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 2/5] logic_pio: Define PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO Date: Tue, 5 Nov 2019 01:22:16 +0800 Message-ID: <1572888139-47298-3-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 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,