On Mon, Feb 20, 2017 at 3:34 AM, Nicholas Piggin <npig...@gmail.com> wrote: > On Fri, 17 Feb 2017 17:32:14 +1100 > Michael Ellerman <m...@ellerman.id.au> wrote: > >> We have a lot of code in sysdev for supporting 4xx, ie. either 40x or >> 44x. Instead it would be cleaner if it was all in platforms/4xx. >> >> This is slightly odd in that we don't actually define any machines in >> the 4xx platform, as is usual for a platform directory. But still it >> seems like a better result to have all this related code in a directory >> by itself. > > What about the other things in sysdev that support multiple platforms?
Some of them have subsystem specific directories in drivers these days, e.g. drivers/pci/host and drivers/irqchip. Some others that are shared with ARM or ARM64 platforms are already being moved to drivers/soc/ > Why not just put the new 4xx subdirectory under sysdev? arch/powerpc/platforms/40x/ only has four small C files, you could also move everything to platforms/4xx/ instead. Arnd