Re: [PATCH kernel v2] powerpc/of/pci: Rewrite pci_parse_of_flags

2019-09-01 Thread Michael Ellerman
On Thu, 2019-08-29 at 08:44:17 UTC, Alexey Kardashevskiy wrote: > The existing code uses bunch of hardcoded values from the PCI Bus Binding > to IEEE Std 1275 spec; and it does so in quite non-obvious way. > > This defines fields from the cell#0 of the "reg" property of a PCI device > and uses the

[PATCH kernel v2] powerpc/of/pci: Rewrite pci_parse_of_flags

2019-08-29 Thread Alexey Kardashevskiy
The existing code uses bunch of hardcoded values from the PCI Bus Binding to IEEE Std 1275 spec; and it does so in quite non-obvious way. This defines fields from the cell#0 of the "reg" property of a PCI device and uses them for parsing. This should cause no behavioral change. Signed-off-by: Al