As we are going to use the same SOC type as D03 for D05, this patch will be dropped.
Heyi
在 10/27/2016 10:09 PM, Leif Lindholm 写道:
On Tue, Oct 18, 2016 at 09:09:52PM +0800, Heyi Guo wrote:
PCIe root port controllers on Hi1616 are almost the same with those on Hi1610, but there are some system integration differences. So we set SOC type to a new value but in this driver they will enter the same branch.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo heyi.guo@linaro.org
Chips/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Chips/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c b/Chips/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c index 03edcf1..91775a9 100644 --- a/Chips/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c +++ b/Chips/Hisilicon/Drivers/PciHostBridgeDxe/PciRootBridgeIo.c @@ -741,7 +741,7 @@ BOOLEAN PcieIsLinkUp (UINT32 SocType, UINTN RbPciBar, UINTN Port) { UINT32 Value = 0;
- if (0x1610 == SocType)
- if ((0x1610 == SocType) || (0x1616 == SocType))
I would still like to see the comparison in logical order. Or convert it to a switch statement.
{
And '{' on same line as 'if'.
Value = MmioRead32(RbPciBar + 0x131C); if ((Value & 0x3F) == 0x11)
-- 1.9.1