[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2557793.QTjSAUMHc9@wuerfel>
Date: Tue, 03 May 2016 14:12:34 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Liviu.Dudau@....com
Cc: Thierry Reding <thierry.reding@...il.com>,
Bjorn Helgaas <helgaas@...nel.org>, catalin.marinas@....com,
linux-pci@...r.kernel.org, will.deacon@....com,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Tomasz Nowicki <tn@...ihalf.com>, ddaney@...iumnetworks.com,
robert.richter@...iumnetworks.com, msalter@...hat.com,
jchandra@...adcom.com, linux-kernel@...r.kernel.org,
hanjun.guo@...aro.org, Suravee.Suthikulpanit@....com
Subject: Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts
On Tuesday 03 May 2016 11:04:23 Liviu.Dudau@....com wrote:
> > > + list_splice_init(&bridge->windows, &resources);
> > > + b->sysdata = bridge->sysdata;
> >
> > Does the sysdata not become effectively obsolete after this series? My
> > understanding is that it's primarily used to store driver-specific data
> > along with a PCI bus, but if drivers can embed struct pci_host_bridge
> > they can simply upcast bus->bridge.
>
> I second that. If we do this change (which is long overdue and I fully support),
> let's kill sysdata now. Generic host bridge code doesn't use sysdata on purpose.
I think we still need it in the intermediate time for any remaining users of
the existing interfaces (pci_scan_bus, pci_scan_root_bus, pci_create_root_bus).
It may take a while until those are all gone, but I agree that it makes sense
to not even set the pointer for any driver we convert to the new interface.
Arnd
Powered by blists - more mailing lists