mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
64103f0615
commit
5a1ff480f4
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue