MdeModulePkg: Change the algorithm in SNP to use the first found BAR index.
authorFu Siyuan <siyuan.fu@intel.com>
Tue, 15 Sep 2015 03:12:15 +0000 (03:12 +0000)
committersfu5 <sfu5@Edk2>
Tue, 15 Sep 2015 03:12:15 +0000 (03:12 +0000)
commitf70f52f5ed01a527047c63a8c3aeb582e0791615
tree71a39dd9e2b887d5e7f1bff82c8eb1bff09f1c74
parent725507b000e881d4c48d94ce0dfe77ada767aabe
MdeModulePkg: Change the algorithm in SNP to use the first found BAR index.

The driver binding start function in SNP.c goes through all the BARs and get
the last BAR index for use. Theoretically it should work with all valid BARs,
but we got reports some device did always use the first valid BAR, so we change
the logic in SNP to use the first found BAR index instead of the last one.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18455 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Network/SnpDxe/Snp.c