mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
pci: tegra264-ep: Fix set_bar and map_addr ICD
- set_bar when called post controller initialization should be rejected. - map_addr outcome is to be able to access remote memory rather than register update. Update API documentation information accordingly. JIRA NET-2663 Change-Id: Ie4e1b029200fa8e61685e97ba3a0f029c3e6fe9d Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3310942 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
524e20def3
commit
ce0a05749b
@@ -236,7 +236,7 @@ static int tegra264_pcie_ep_write_header(struct pci_epc *epc, u8 fn,
|
||||
*
|
||||
* @return
|
||||
* - 0 on If Bar details are in range..
|
||||
* - -EINVAL if Bar configuration is not supported
|
||||
* - -EINVAL if Bar configuration is not supported or called once link is established.
|
||||
*/
|
||||
static int tegra264_pcie_ep_set_bar(struct pci_epc *epc, u8 fn,
|
||||
#if defined(NV_PCI_EPC_WRITE_HEADER_HAS_VFN_ARG)
|
||||
@@ -324,7 +324,8 @@ static void tegra264_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn,
|
||||
* if called before controller is initialized.
|
||||
*
|
||||
* @outcome
|
||||
* - On success, mapping details in Tegra264 EP controller register is updated.
|
||||
* - On success, outbound address is mapped to controller aperture and caller can access
|
||||
* remote memory.
|
||||
*/
|
||||
static int tegra264_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no,
|
||||
#if defined(NV_PCI_EPC_WRITE_HEADER_HAS_VFN_ARG)
|
||||
|
||||
Reference in New Issue
Block a user