linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] PCI: code clean up on pci configuration space
@ 2014-10-14  6:47 Wei Yang
  2014-10-14  6:47 ` [PATCH 1/3] PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks Wei Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Wei Yang @ 2014-10-14  6:47 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 two is to use the exact type to access the pci cap and pcie ext cap.

Tested on x86 and powerpc.

Wei Yang (3):
  PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks
  PCI: use u8 instead of int for pci configuration space pos and cap
  PCI: use u16 instead of int for pci express extended capabilities pos
    and cap

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

-- 
1.7.9.5


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

end of thread, other threads:[~2014-11-18  9:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14  6:47 [PATCH 0/3] PCI: code clean up on pci configuration space Wei Yang
2014-10-14  6:47 ` [PATCH 1/3] PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks Wei Yang
2014-10-22 23:18   ` Bjorn Helgaas
2014-10-24  3:44     ` Wei Yang
2014-11-06  3:12     ` Wei Yang
2014-11-18  9:16       ` Wei Yang
2014-10-14  6:47 ` [PATCH 2/3] PCI: use u8 instead of int for pci configuration space pos and cap Wei Yang
2014-10-22 23:23   ` Bjorn Helgaas
2014-10-24  3:49     ` Wei Yang
2014-10-14  6:47 ` [PATCH 3/3] PCI: use u16 instead of int for pci express extended capabilities " 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).