mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
PCI: tegra264: Fix RP off support
We cannot use enum definitions in '#if defined()' statements because the '#if defined()' is a preprocessor macro that is evaluated prior to compilation. Fix this by adding a test to conftest to detect if CMD_PCIE_RP_CONTROLLER_OFF is defined. Bug 5551652 Change-Id: I71826a58e428f1a335e8e0d895f25f3cea46a65e Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3467641 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Prakhar Srivastava (SW-TEGRA) <prasrivastav@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9ee2b01686
commit
0242b95056
@@ -99,7 +99,7 @@ static int tegra264_pcie_parse_dt(struct tegra264_pcie *pcie)
|
||||
|
||||
static void tegra264_pcie_bpmp_set_rp_state(struct tegra264_pcie *pcie)
|
||||
{
|
||||
#if defined(NV_MRQ_PCIE_REQUEST_STRUCT_PRESENT) && defined(CMD_PCIE_RP_CONTROLLER_OFF)
|
||||
#if defined(NV_MRQ_PCIE_REQUEST_STRUCT_PRESENT) && defined(NV_CMD_PCIE_RP_CONTROLLER_OFF_ENUM_PRESENT)
|
||||
struct tegra_bpmp_message msg;
|
||||
struct mrq_pcie_request req;
|
||||
int err;
|
||||
|
||||
Reference in New Issue
Block a user