From 975ba91239c41a30734da1e365fc420ea48d5e86 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 5 Jan 2022 19:38:46 -0800 Subject: [PATCH] Fix register accesses --- utils/mqnic-fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/mqnic-fw.c b/utils/mqnic-fw.c index 331f82540..0ac99473d 100644 --- a/utils/mqnic-fw.c +++ b/utils/mqnic-fw.c @@ -1258,8 +1258,8 @@ skip_flash: // reload FPGA printf("Triggering IPROG to reload FPGA...\n"); if (flash_rb) - mqnic_reg_write32(flash_rb, MQNIC_RB_BPI_FLASH_REG_FORMAT, 0xFEE1DEAD); - mqnic_reg_write32(dev->fw_id_rb, MQNIC_RB_FW_ID_REG_FPGA_ID, 0xFEE1DEAD); + mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_FORMAT, 0xFEE1DEAD); + mqnic_reg_write32(dev->fw_id_rb->regs, MQNIC_RB_FW_ID_REG_FPGA_ID, 0xFEE1DEAD); // disconnect mqnic_close(dev);