linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/4] PCI: code clean up on pci configuration space
@ 2015-06-30  1:16 Wei Yang
  2015-06-30  1:16 ` [PATCH V2 1/4] PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks Wei Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Wei Yang @ 2015-06-30  1:16 UTC (permalink / raw)
  To: linux-pci, bhelgaas; +Cc: Wei Yang

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

 drivers/pci/iov.c    |    2 +-
 drivers/pci/pci.c    |   68 +++++++++++++++++++++++++-------------------------
 drivers/pci/pci.h    |    2 ++
 drivers/pci/probe.c  |   10 ++++----
 drivers/pci/quirks.c |   19 +++++++-------
 include/linux/pci.h  |   26 +++++++++----------
 6 files changed, 65 insertions(+), 62 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-07-15  5:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30  1:16 [PATCH V2 0/4] PCI: code clean up on pci configuration space Wei Yang
2015-06-30  1:16 ` [PATCH V2 1/4] PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks Wei Yang
2015-07-14 21:57   ` Bjorn Helgaas
2015-06-30  1:16 ` [PATCH V2 2/4] PCI: use u8 to represent pci configuration space pos and cap Wei Yang
2015-06-30  1:16 ` [PATCH V2 3/4] PCI: use u16 to represent pci express extended capabilities " Wei Yang
2015-06-30  1:16 ` [PATCH V2 4/4] PCI: consolidate return value check for pci_find_(ext_)capability Wei Yang
2015-07-14 22:00   ` Bjorn Helgaas
2015-07-15  2:02     ` Wei Yang
2015-07-15  2:11       ` Bjorn Helgaas
2015-07-15  5:46         ` Wei Yang
2015-07-14 21:37 ` [PATCH V2 0/4] PCI: code clean up on pci configuration space Bjorn Helgaas
2015-07-15  2:08   ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).