soc/amd/common/block/data_fabric: fix data_fabric_write32 broadcast case
Calling data_fabric_write32 with BROADCAST_FABRIC_ID as instance_id would have caused an infinite recursion, so call the right function data_fabric_broadcast_write32 for that case instead. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: If7f0a80f0430e8bfb29ee510ef86c278e3a42063 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50826 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
ff254ea60b
commit
b2d633db07
|
@ -34,7 +34,7 @@ uint32_t data_fabric_read32(uint8_t function, uint16_t reg, uint8_t instance_id)
|
||||||
void data_fabric_write32(uint8_t function, uint16_t reg, uint8_t instance_id, uint32_t data)
|
void data_fabric_write32(uint8_t function, uint16_t reg, uint8_t instance_id, uint32_t data)
|
||||||
{
|
{
|
||||||
if (instance_id == BROADCAST_FABRIC_ID) {
|
if (instance_id == BROADCAST_FABRIC_ID) {
|
||||||
data_fabric_write32(function, reg, BROADCAST_FABRIC_ID, data);
|
data_fabric_broadcast_write32(function, reg, data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue