The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1 0/6] resource: Set struct resource types correctly
@ 2017-12-05  0:39 Bjorn Helgaas
  2017-12-05  0:40 ` [PATCH v1 1/6] vgacon: Set VGA struct resource types Bjorn Helgaas
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2017-12-05  0:39 UTC (permalink / raw)
  Cc: Jason Cooper, Bartlomiej Zolnierkiewicz, Marc Zyngier,
	Benjamin Herrenschmidt, linux-kernel, Ralf Baechle,
	Paul Mackerras, Michael Ellerman, Ivan Kokshaysky,
	Thomas Gleixner, Yinghai Lu, Matt Turner, Richard Henderson

We have several places that insert struct resources into the iomem_resource
or ioport_resource trees without setting the type.  This *works* fine
because it's obvious that a resource must be the same type as its parent,
but it does mean that if we ever print the resource with %pR, it doesn't
print correctly.

These patches fix all the cases I found.  Ideally I'd like to merge all
these through my PCI tree because I'm working on some legacy resource
changes that do cause some of these resources to be printed.

---

Bjorn Helgaas (6):
      vgacon: Set VGA struct resource types
      MIPS: Set I/O port resource types correctly
      powerpc: Set I/O port resource types correctly
      irqchip/i8259: Set I/O port resource types correctly
      resource: Set type of "reserve=" user-specified resources
      resource: Set type when reserving new regions


 Documentation/admin-guide/kernel-parameters.txt |    6 +++-
 arch/alpha/kernel/console.c                     |    1 +
 arch/mips/jazz/setup.c                          |    8 +++--
 arch/mips/mti-malta/malta-setup.c               |   10 +++----
 arch/powerpc/platforms/maple/time.c             |    2 +
 arch/powerpc/sysdev/i8259.c                     |    6 ++--
 drivers/irqchip/irq-i8259.c                     |    4 +--
 drivers/video/console/vgacon.c                  |   34 ++++++++++++++++++-----
 kernel/resource.c                               |   29 ++++++++++++++------
 9 files changed, 68 insertions(+), 32 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-03 15:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05  0:39 [PATCH v1 0/6] resource: Set struct resource types correctly Bjorn Helgaas
2017-12-05  0:40 ` [PATCH v1 1/6] vgacon: Set VGA struct resource types Bjorn Helgaas
2018-01-03 15:10   ` Bartlomiej Zolnierkiewicz
2017-12-05  0:40 ` [PATCH v1 2/6] MIPS: Set I/O port resource types correctly Bjorn Helgaas
2017-12-05  0:40 ` [PATCH v1 3/6] powerpc: " Bjorn Helgaas
2017-12-05  0:40 ` [PATCH v1 4/6] irqchip/i8259: " Bjorn Helgaas
2017-12-05  0:40 ` [PATCH v1 5/6] resource: Set type of "reserve=" user-specified resources Bjorn Helgaas
2017-12-05  0:40 ` [PATCH v1 6/6] resource: Set type when reserving new regions Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox