diff options
| author | Serge Semin <[email protected]> | 2023-01-13 17:14:06 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2023-02-22 19:46:09 +0000 |
| commit | 3bc0f149405e07c7e59985a24ce96db83973f8d7 (patch) | |
| tree | 224ce6d6e036778e54629ac484c730b062644f05 /drivers/pci/controller/dwc | |
| parent | dmaengine: dw-edma: Depend on DW_EDMA instead of selecting it (diff) | |
| download | kernel-3bc0f149405e07c7e59985a24ce96db83973f8d7.tar.gz kernel-3bc0f149405e07c7e59985a24ce96db83973f8d7.zip | |
dmaengine: dw-edma: Prepare dw_edma_probe() for builtin callers
When CONFIG_DW_EDMA=m, dw_edma_probe() is built as a module. Previously
edma.h declared it as extern, but the implementation isn't available for
builtin callers. A subsequent commit will add calls from
dw_pcie_host_init() and dw_pcie_ep_init(), which can only be built-in.
Make it safe for such builtin callers to call dw_edma_probe() by using
IS_REACHABLE() to define a stub when CONFIG_DW_EDMA=m.
When CONFIG_DW_EDMA=m, these builtin callers will fail to detect and
register eDMA devices, so eDMA won't be usable even if the dw-edma module
is loaded.
[bhelgaas: split to separate patch, commit log]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Serge Semin <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions
