Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Commit [01f018] Maximize Restore History

device-drivers: pci: fix PCI_EXP_CAP_CONFIG test-case

There is another way to check that PCI Express config space of pci devices
can be read successfully.
Firstly, find out if a device has a PCI Express Capability: we should get
a correct config address offset from the dev's structure (dev->pcie_cap).
Using the offset, read a PCI Express header. Check if we can get the right
PCI Express CAP ID from the header (it must match the PCI_CAP_ID_EXP macro).

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

Alexey Kodanev Alexey Kodanev 2013-10-30

Wanlong Gao Wanlong Gao 2013-11-01

changed testcases
changed testcases/kernel
changed testcases/kernel/device-drivers
changed testcases/kernel/device-drivers/pci
changed testcases/kernel/device-drivers/pci/tpci_kernel
changed testcases/kernel/device-drivers/pci/tpci_kernel/ltp_tpci.c
changed testcases/kernel/device-drivers/pci/tpci_kernel/tpci.h
testcases/kernel/device-drivers/pci/tpci_kernel/ltp_tpci.c Diff Switch to side-by-side view
testcases/kernel/device-drivers/pci/tpci_kernel/tpci.h Diff Switch to side-by-side view