mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
PCI: tegra264: Fix build for Linux v6.9
The pci_epc_features structure was updated in Linux v6.9 to move various fields under a new pci_epc_bar_desc structure. Use conftest to determine if the new pci_epc_bar_desc structure is present. Finally, add the endpoint alignment for the inbound ATU on Tegra264 which is 64kB. Bug 4627271 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Change-Id: I074e19ca53cea0e13d9872b240a023dd83779ae7 Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/3129630 Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
* Author: Manikanta Maddireddy <mmaddireddy@nvidia.com>
|
||||
*/
|
||||
|
||||
#include <nvidia/conftest.h>
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/gpio/consumer.h>
|
||||
@@ -525,8 +527,17 @@ static const struct pci_epc_features tegra264_pcie_epc_features = {
|
||||
.core_init_notifier = false,
|
||||
.msi_capable = true,
|
||||
.msix_capable = false,
|
||||
#if defined (NV_PCI_EPC_FEATURES_STRUCT_HAS_BAR)
|
||||
.bar[BAR_0] = { .type = BAR_RESERVED, },
|
||||
.bar[BAR_2] = { .type = BAR_FIXED, .fixed_size = SZ_32M, },
|
||||
.bar[BAR_3] = { .type = BAR_RESERVED, },
|
||||
.bar[BAR_4] = { .type = BAR_RESERVED, },
|
||||
.bar[BAR_5] = { .type = BAR_RESERVED, },
|
||||
#else
|
||||
.reserved_bar = 1 << BAR_0 | 1 << BAR_3 | 1 << BAR_4 | 1 << BAR_5,
|
||||
.bar_fixed_size[2] = SZ_32M,
|
||||
#endif
|
||||
.align = SZ_64K,
|
||||
};
|
||||
|
||||
static const struct pci_epc_features *tegra264_pcie_ep_get_features(struct pci_epc *epc,
|
||||
|
||||
Reference in New Issue
Block a user