[U-Boot] [PATCH v3 00/21] dm: pci: Various fixes and test cases update

Bin Meng bmeng.cn at gmail.com
Fri Aug 3 08:14:32 UTC 2018


This fixes several bugs in dm pci driver, as well as updating test
cases running on Sandbox to test dm pci.

It turns out adding test cases for v1 (3 commits) reveals more design
limitations/bugs of sandbox pci driver. Now the v2/v3 series contains
20+ patches!

This series is available for testing at u-boot-x86/pci branch.

Changes in v3:
- Change commit title to use "440ep-specific"
- Update commit message to mention removing redundant asserts
- Update doc to describe the "sandbox,dev-info" encodings
- Describe test configuration in the commit message

Changes in v2:
- Mask header_type with 0x7f

Bin Meng (21):
  pci: Remove 440ep-specific macros
  dm: Correct typos in uclass_first/next_device_check()
  dm: core: Add ofnode function to read PCI vendor and device id
  dm: pci: Extract vendor/device id in child_post_bind()
  dm: pci: Fix scanning multi-function device
  test: dm: pci: Remove unnecessary steps in dm_test_pci_swapcase()
  test: dm: pci: Test more than one device on the same bus
  pci: sandbox: swap_case: Preserve space indicator bit in BAR registers
  test: dm: pci: Test more than one PCI host controller
  test: dm: pci: Add tests for configuration space access
  pci: sandbox: emul: Fix the call to pci_bus_find_devfn()
  dm: pci: Assign correct driver data when binding a driver
  pci: sandbox: Support dynamically binding device driver
  pci: sandbox: swap_case: Declare dynamic driver matching
  sandbox: Update test.dts for dynamic PCI device driver matching
  test: dm: pci: Test driver binding with driver data provided
  pci: sandbox: emul: Rename priv structure
  test: dm: pci: Add tests for mixed static and dynamic devices on the
    same bus
  pci: Add all known capability and extended capability ids
  dm: pci: Add APIs to find capability and extended capability
  test: dm: pci: Add cases for finding PCI capability APIs

 arch/sandbox/dts/test.dts       |  41 +++++++++-
 arch/sandbox/include/asm/test.h |  12 +++
 doc/driver-model/pci-info.txt   |  28 +++++++
 drivers/core/ofnode.c           |  36 +++++++++
 drivers/misc/swap_case.c        |  36 ++++++++-
 drivers/pci/pci-emul-uclass.c   |  24 +++---
 drivers/pci/pci-uclass.c        |  83 ++++++++++++++++++--
 drivers/pci/pci_sandbox.c       |  78 ++++++++++++++++--
 include/dm/ofnode.h             |  13 +++
 include/dm/uclass.h             |   4 +-
 include/pci.h                   |  84 ++++++++++++++++----
 test/dm/pci.c                   | 170 ++++++++++++++++++++++++++++++++++++++--
 12 files changed, 556 insertions(+), 53 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list