irqchip/gicv2m: Miscellaneous fixes for v2m resources and SPI ranges
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Wed, 23 Dec 2015 00:24:23 +0000 (16:24 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Dec 2015 10:58:53 +0000 (11:58 +0100)
commit5a1ff480f4ec40ace313c16b0543c7c6af09e227
treea2c28c24c2b5880d12b2d75bbc3b49f234248d7c
parent64103f061573e3d7670ba295b07919fb8fc7594c
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 <bhelgaas@google.com>
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <Catalin.Marinas@arm.com>
Cc: <hanjun.guo@linaro.org>
Cc: <tomasz.nowicki@linaro.org>
Cc: <graeme.gregory@linaro.org>
Cc: <dhdang@apm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: <marc.zyngier@arm.com>
Cc: <jason@lakedaemon.net>
Cc: <rjw@rjwysocki.net>
Link: http://lkml.kernel.org/r/1450830263-28914-1-git-send-email-Suravee.Suthikulpanit@amd.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic-v2m.c