Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752868AbbL2LEh (ORCPT ); Tue, 29 Dec 2015 06:04:37 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57221 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162AbbL2LEe (ORCPT ); Tue, 29 Dec 2015 06:04:34 -0500 Date: Tue, 29 Dec 2015 03:03:39 -0800 From: tip-bot for Suravee Suthikulpanit Message-ID: Cc: mingo@kernel.org, jason@lakedaemon.net, Catalin.Marinas@arm.com, bhelgaas@google.com, dhdang@apm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, Suravee.Suthikulpanit@amd.com, tomasz.nowicki@linaro.org, rjw@rjwysocki.net, graeme.gregory@linaro.org, marc.zyngier@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org, hanjun.guo@linaro.org, hpa@zytor.com Reply-To: tomasz.nowicki@linaro.org, rjw@rjwysocki.net, graeme.gregory@linaro.org, Suravee.Suthikulpanit@amd.com, hanjun.guo@linaro.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, marc.zyngier@arm.com, hpa@zytor.com, Catalin.Marinas@arm.com, bhelgaas@google.com, mingo@kernel.org, jason@lakedaemon.net, dhdang@apm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com In-Reply-To: <1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] irqchip/gicv2m: Miscellaneous fixes for v2m resources and SPI ranges Git-Commit-ID: 5a1ff480f4ec40ace313c16b0543c7c6af09e227 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2636 Lines: 72 Commit-ID: 5a1ff480f4ec40ace313c16b0543c7c6af09e227 Gitweb: http://git.kernel.org/tip/5a1ff480f4ec40ace313c16b0543c7c6af09e227 Author: Suravee Suthikulpanit AuthorDate: Tue, 22 Dec 2015 16:24:23 -0800 Committer: Thomas Gleixner CommitDate: Tue, 29 Dec 2015 11:58:53 +0100 irqchip/gicv2m: Miscellaneous fixes for v2m resources and SPI ranges This patch contain fixes for v2m resources and SPI ranges: * Fix off-by-one error when set up v2m resource end range in gicv2m_acpi_init(). * Fix the off-by-one print error for SPI range. * Use %pR to properly print resource range information. Both ACPI and DT should now print: GICv2m: range[mem 0xe1180000-0xe1180fff], SPI[64:319] Suggested-by: Bjorn Helgaas Signed-off-by: Suravee Suthikulpanit Cc: Lorenzo Pieralisi Cc: Will Deacon Cc: Catalin Marinas Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Link: http://lkml.kernel.org/r/1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com Signed-off-by: Thomas Gleixner --- drivers/irqchip/irq-gic-v2m.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index e2d2d02..c779f83 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -365,9 +365,8 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode, list_add_tail(&v2m->entry, &v2m_nodes); - pr_info("range[%#lx:%#lx], SPI[%d:%d]\n", - (unsigned long)res->start, (unsigned long)res->end, - v2m->spi_start, (v2m->spi_start + v2m->nr_spis)); + pr_info("range%pR, SPI[%d:%d]\n", res, + v2m->spi_start, (v2m->spi_start + v2m->nr_spis - 1)); return 0; err_iounmap: @@ -456,7 +455,8 @@ acpi_parse_madt_msi(struct acpi_subtable_header *header, return -EINVAL; res.start = m->base_address; - res.end = m->base_address + SZ_4K; + res.end = m->base_address + SZ_4K - 1; + res.flags = IORESOURCE_MEM; if (m->flags & ACPI_MADT_OVERRIDE_SPI_VALUES) { spi_start = m->spi_base; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/