Re: [PATCH V2 1/2] PCI: Allow drivers to request exclusive config regions

From: Ira Weiny
Date: Thu Aug 25 2022 - 16:04:21 EST


On Thu, Aug 25, 2022 at 09:34:00AM +0200, Greg Kroah-Hartman wrote:
> On Wed, Aug 24, 2022 at 04:24:49PM -0700, ira.weiny@xxxxxxxxx wrote:
> > --- a/include/linux/pci.h
> > +++ b/include/linux/pci.h
> > @@ -409,6 +409,7 @@ struct pci_dev {
> > */
> > unsigned int irq;
> > struct resource resource[DEVICE_COUNT_RESOURCE]; /* I/O and memory regions + expansion ROMs */
> > + struct resource config_resource; /* driver exclusive config ranges */
>
> Naming is hard, but let's make this obvious what this resource is for as
> your comment states. How about:
> struct resource driver_exclusive_resource;

Done.

>
> Other than that, looks better to me, thanks for the update.

Thanks!
Ira

>
> greg k-h