Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Set I/O port resource types correctly

Set I/O port resource structs to have IORESOURCE_IO in their type field.

Previously we marked these as merely IORESOURCE_BUSY without indicating the
type. Setting the type doesn't fix any functional problem but makes %pR
on the resource work better.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

+4 -4
+1 -1
arch/powerpc/platforms/maple/time.c
··· 134 134 135 135 static struct resource rtc_iores = { 136 136 .name = "rtc", 137 - .flags = IORESOURCE_BUSY, 137 + .flags = IORESOURCE_IO | IORESOURCE_BUSY, 138 138 }; 139 139 140 140 unsigned long __init maple_get_boot_time(void)
+3 -3
arch/powerpc/sysdev/i8259.c
··· 145 145 .name = "8259 (master)", 146 146 .start = 0x20, 147 147 .end = 0x21, 148 - .flags = IORESOURCE_BUSY, 148 + .flags = IORESOURCE_IO | IORESOURCE_BUSY, 149 149 }; 150 150 151 151 static struct resource pic2_iores = { 152 152 .name = "8259 (slave)", 153 153 .start = 0xa0, 154 154 .end = 0xa1, 155 - .flags = IORESOURCE_BUSY, 155 + .flags = IORESOURCE_IO | IORESOURCE_BUSY, 156 156 }; 157 157 158 158 static struct resource pic_edgectrl_iores = { 159 159 .name = "8259 edge control", 160 160 .start = 0x4d0, 161 161 .end = 0x4d1, 162 - .flags = IORESOURCE_BUSY, 162 + .flags = IORESOURCE_IO | IORESOURCE_BUSY, 163 163 }; 164 164 165 165 static int i8259_host_match(struct irq_domain *h, struct device_node *node,