Daniel Verkamp has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/46310 )
Change subject: pcidev.c: populate IDs with pci_fill_info()
......................................................................
pcidev.c: populate IDs with pci_fill_info()
With pciutils 3.7.0, flashrom is unable to match any PCI devices by
vendor/device ID because the vendor_id and device_id fields of struct
pci_dev are not filled in.
Call pci_fill_info() to request these identifiers before trying to match
them against the supported device list.
With this change, reading/writing a nicintel_spi boot ROM is successful.
Signed-off-by: Daniel Verkamp <dverkamp(a)chromium.org>
Change-Id: Ia011d4d801f8a54160e45a70b14b740e6dcc00ef
---
M pcidev.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/10/46310/1
diff --git a/pcidev.c b/pcidev.c
index e13b78c..892f7b1 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -206,6 +206,7 @@
for (dev = pacc->devices; dev; dev = dev->next) {
if (pci_filter_match(&filter, dev)) {
+ pci_fill_info(dev, PCI_FILL_IDENT);
/* Check against list of supported devices. */
for (i = 0; devs[i].device_name != NULL; i++)
if ((dev->vendor_id == devs[i].vendor_id) &&
--
To view, visit https://review.coreboot.org/c/flashrom/+/46310
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ia011d4d801f8a54160e45a70b14b740e6dcc00ef
Gerrit-Change-Number: 46310
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Verkamp <dverkamp(a)chromium.org>
Gerrit-MessageType: newchange
Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/45944 )
Change subject: realtek_mst_i2c_spi.c: Fixup get_params() err ctrl flow
......................................................................
realtek_mst_i2c_spi.c: Fixup get_params() err ctrl flow
Ensure that when bus number and reset params are specified
at the same time are both correctly parsed by get_params().
Also renames the goto err cleanup path to make it clear.
Change-Id: Icb45b1ab39181b0f1a2dec1cce549d30db984936
Signed-off-by: Edward O'Callaghan <quasisec(a)google.com>
---
M realtek_mst_i2c_spi.c
1 file changed, 4 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/44/45944/1
diff --git a/realtek_mst_i2c_spi.c b/realtek_mst_i2c_spi.c
index e975290..d1f7227 100644
--- a/realtek_mst_i2c_spi.c
+++ b/realtek_mst_i2c_spi.c
@@ -416,23 +416,22 @@
int bus = (int)strtol(bus_str, &bus_suffix, 10);
if (errno != 0 || bus_str == bus_suffix) {
msg_perr("%s: Could not convert 'bus'.\n", __func__);
- goto get_params_done;
+ goto _get_params_failed;
}
if (bus < 0 || bus > 255) {
msg_perr("%s: Value for 'bus' is out of range(0-255).\n", __func__);
- goto get_params_done;
+ goto _get_params_failed;
}
if (strlen(bus_suffix) > 0) {
msg_perr("%s: Garbage following 'bus' value.\n", __func__);
- goto get_params_done;
+ goto _get_params_failed;
}
msg_pinfo("Using i2c bus %i.\n", bus);
*i2c_bus = bus;
ret = 0;
- goto get_params_done;
} else {
msg_perr("%s: Bus number not specified.\n", __func__);
}
@@ -451,7 +450,7 @@
*reset = 0; /* Default behaviour is no MCU reset on tear-down. */
free(reset_str);
-get_params_done:
+_get_params_failed:
if (bus_str)
free(bus_str);
--
To view, visit https://review.coreboot.org/c/flashrom/+/45944
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icb45b1ab39181b0f1a2dec1cce549d30db984936
Gerrit-Change-Number: 45944
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newchange
Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/45896 )
Change subject: realtek_mst_i2c_spi.c: Remove reset from init fn
......................................................................
realtek_mst_i2c_spi.c: Remove reset from init fn
Remove MCU reset on init as this was only introduced
when MCU fw requirements for correct flashing were unknown
however it turns out no MCU fw is required to flash and so
no MCU reset should occur upon initialization.
Change-Id: Ia03f94effc4b720964638c032bbde5acfb13960d
Signed-off-by: Edward O'Callaghan <quasisec(a)google.com>
---
M realtek_mst_i2c_spi.c
1 file changed, 0 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/96/45896/1
diff --git a/realtek_mst_i2c_spi.c b/realtek_mst_i2c_spi.c
index 6158524..7867528 100644
--- a/realtek_mst_i2c_spi.c
+++ b/realtek_mst_i2c_spi.c
@@ -450,11 +450,6 @@
if (fd < 0)
return fd;
- /* Ensure we are in a known state before entering ISP mode */
- ret |= realtek_mst_i2c_spi_reset_mpu(fd);
- if (ret)
- return ret;
-
ret |= realtek_mst_i2c_spi_enter_isp_mode(fd);
if (ret)
return ret;
--
To view, visit https://review.coreboot.org/c/flashrom/+/45896
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ia03f94effc4b720964638c032bbde5acfb13960d
Gerrit-Change-Number: 45896
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newchange