Skip to content

dm: pci: Various fixes and test cases update

Bin Meng u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest21 patches 0 repliesNew
  2. v221 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21pci: Remove 440ep-specific macrosinclude/pci.h+0 -150 replies
2/21dm: Correct typos in uclass_first/next_device_check()include/dm/uclass.h+2 -20 replies
3/21dm: core: Add ofnode function to read PCI vendor and device iddrivers/core/ofnode.c include/dm/ofnode.h+49 -00 replies
4/21dm: pci: Extract vendor/device id in child_post_bind()drivers/pci/pci-uclass.c+5 -60 replies
5/21dm: pci: Fix scanning multi-function devicedrivers/pci/pci-uclass.c+2 -00 replies
6/21test: dm: pci: Remove unnecessary steps in dm_test_pci_swapcase()test/dm/pci.c+1 -30 replies
7/21test: dm: pci: Test more than one device on the same busarch/sandbox/dts/test.dts test/dm/pci.c+40 -40 replies
8/21pci: sandbox: swap_case: Preserve space indicator bit in BAR registersdrivers/misc/swap_case.c+5 -30 replies
9/21test: dm: pci: Test more than one PCI host controllerarch/sandbox/dts/test.dts test/dm/pci.c+37 -20 replies
10/21test: dm: pci: Add tests for configuration space accesstest/dm/pci.c+15 -90 replies
11/21pci: sandbox: emul: Fix the call to pci_bus_find_devfn()drivers/pci/pci-emul-uclass.c+1 -10 replies
12/21dm: pci: Assign correct driver data when binding a driverdrivers/pci/pci-uclass.c+1 -10 replies
13/21pci: sandbox: Support dynamically binding device driverdoc/driver-model/pci-info.txt drivers/pci/pci-emul-uclass.c drivers/pci/pci_sandbox.c +1 more+112 -110 replies
14/21pci: sandbox: swap_case: Declare dynamic driver matchingarch/sandbox/include/asm/test.h drivers/misc/swap_case.c+11 -00 replies
15/21sandbox: Update test.dts for dynamic PCI device driver matchingarch/sandbox/dts/test.dts+2 -141 reply
16/21test: dm: pci: Test driver binding with driver data providedtest/dm/pci.c+17 -00 replies
17/21pci: sandbox: emul: Rename priv structuredrivers/pci/pci-emul-uclass.c+4 -40 replies
18/21test: dm: pci: Add tests for mixed static and dynamic devices on the same busarch/sandbox/dts/test.dts test/dm/pci.c+81 -00 replies
19/21pci: Add all known capability and extended capability idsinclude/pci.h+19 -10 replies
20/21dm: pci: Add APIs to find capability and extended capabilitydrivers/pci/pci-uclass.c include/pci.h+114 -00 replies
21/21test: dm: pci: Add cases for finding PCI capability APIsarch/sandbox/include/asm/test.h drivers/misc/swap_case.c test/dm/pci.c+61 -00 replies

Reviews trailers per patch

All 21 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/21R-b
2/21R-b
3/21R-b
4/21R-b
5/21R-b
6/21R-b
7/21R-b
8/21R-b
9/21R-b
10/21R-b
11/21R-b
12/21R-b
13/21R-b
14/21R-b
15/21R-b
16/21R-b
17/21R-b
18/21R-b
19/21R-b
20/21R-b
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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(-)
Signature · 1 line
2.7.4