08 Aug, 2019
1 commit
-
Fix the following Coverity warning:
CID 244086: Incorrect expression (BAD_COMPARE)
Comparing pointer "ep_bar" against NULL using anything besides == or
is likely to be incorrect.Fixes: 914026d25848 ("drivers: pci_ep: Introduce UCLASS_PCI_EP uclass")
Signed-off-by: Ramon Fried
18 Jul, 2019
1 commit
-
barno was mistakely readed from the target structure,
resulting in undefined behavious depending on the previous memory
content. fix that.Fixes: bb413337826e ("pci_ep: add pci endpoint sandbox driver")
Signed-off-by: Ramon Fried
[trini: Drop unused bar_idx]
Signed-off-by: Tom Rini
11 Jul, 2019
3 commits
-
Add a dummy PCI endpoint for sandbox.
Supporting only a single function, it allows setting
and reading header configuration.Signed-off-by: Ramon Fried
Reviewed-by: Simon Glass -
Add Cadence PCIe endpoint driver supporting configuration
of header, bars and MSI for device.Signed-off-by: Ramon Fried
Reviewed-by: Simon Glass -
Introduce new UCLASS_PCI_EP class for handling PCI endpoint
devices, allowing to set various attributes of the PCI endpoint
device, such as:
* configuration space header
* BAR definitions
* outband memory mapping
* start/stop PCI linkSigned-off-by: Ramon Fried
Reviewed-by: Simon Glass