AMD fam10: Fix add_more_links
commit59d609217b0d8abccc7038d7f7a13020fd1ee246
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sat, 21 Feb 2015 21:56:07 +0000 (21 23:56 +0200)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Fri, 5 Jun 2015 08:14:21 +0000 (5 10:14 +0200)
tree4d15337a919107f286095c1a02ce5cb766034f38
parent34de29aeb3a8d5013044fea9387609ea63d8ecf6
AMD fam10: Fix add_more_links

One PCI function may contain upto 4 links, further links must
be added to PCI function 4 on the same device.

There is no requirement that in dev->link_list the last element
would have the highest link->link_num.

Also fix off-by-one error when allocating for more links.

Change-Id: If7ebdd1ad52653d3757b5930bd0a83e2cf2fcac6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/8555
Tested-by: build bot (Jenkins)
Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
src/northbridge/amd/amdfam10/northbridge.c