pci: host: tegra: don't free pcie port stuctures
authorVidya Sagar <vidyas@nvidia.com>
Tue, 18 Aug 2015 15:08:05 +0000 (20:08 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 6 Nov 2015 21:52:05 +0000 (13:52 -0800)
commit727ffa308e7a7df4cf2e331bfc4d912aeeaacee3
treef10a903d8f79299b30ec49aa19cb10397754e4be
parent0676b1f0ad83b809a84d36f348d9abdf03fb8e15
pci: host: tegra: don't free pcie port stuctures

some pcie port specific controls are present only in
rootport-0 registers which are applicable for all the ports
Hence, instead of freeing port specific structures, this patch
just disables the port on which no device is enumerated
As per MBIST bug, it also applies MBIST WAR for RP-0 always
even if there is no device enumerated on it

Bug 200122328

Change-Id: I2644144ba0e3be86abc25eeba70e86df0791231c
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/785436
(cherry picked from commit 0865f5492b1d60e457c3d928394a4e61d1eef5a0)
Reviewed-on: http://git-master/r/796900
(cherry picked from commit 4dccaa43a5cda8abcc2aa84079d353eeae5af181)
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/823464
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/pci/host/pci-tegra.c