[U-Boot] [PATCH v2 1/9] dm: pci: Provide friendly config access functions
Simon Glass
sjg at chromium.org
Mon Aug 10 14:58:25 CEST 2015
Hi Bin,
On 10 August 2015 at 00:18, Bin Meng <bmeng.cn at gmail.com> wrote:
> Hi Simon,
>
> On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass <sjg at chromium.org> wrote:
>> At present there are no PCI functions which allow access to PCI
>> configuration using a struct udevice. This is a sad situation for driver
>> model as it makes use of PCI harder. Add these functions.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>> Changes in v2:
>> - Correct 'Driver mode' typo
>> - Add blank line after dm_pci_read_config() declaration
>>
>
> What about the old config read/write routines? Last time you said you
> wanted to remove those.
Yes I think that most PCI access should happen through struct udevice,
the exception being things have have to happen before the device is
available.
However I don't propose to make that change in this patch. This is a
bigger job and requires deprecation and eventual removal of a lot of
API functions.
[snip]
Regards,
Simon
More information about the U-Boot
mailing list