Re: [PATCH V2 0/4] PCI: code clean up on pci configuration space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 30, 2015 at 09:16:40AM +0800, Wei Yang wrote:
> This series is a clean up in the pci subsystem when accessing the pci
> configuration space.
> 
> The first one is to re-use the PCI_FIND_CAP_TTL to limit the times iterating
> in pci configuration space.
> 
> The next three are to use the exact type to access the pci cap and pcie ext
> cap.
> 
> Tested on x86 and powerpc on top of v4.1.
> 
> The original thread could be referenced in below link:
> http://comments.gmane.org/gmane.linux.kernel.pci/35931
> 
> ---
> v1->v2:
>    * define PCI_FIND_CAP_TTL in drivers/pci/pci.h instead of
>      include/linux/pci.h
>    * split the change for return position check from second one, and make the
>      forth patch
> 
> Wei Yang (4):
>   PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks
>   PCI: use u8 to represent pci configuration space pos and cap
>   PCI: use u16 to represent pci express extended capabilities pos and
>     cap
>   PCI: consolidate return value check for pci_find_(ext_)capability

The first and last seem fine to me.  As far as I can tell, the last does
not actually depend on the u8 and u16 changes.

The u8 and u16 patches change the signatures of several exported functions.
Do they fix some problem?  Unless there's something broken, these seem like
pretty minor changes, and I don't think they're worth it.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux