summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-06-12 21:07:03 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-06-12 21:07:03 +0000
commit9b489e6bc5b4155ab4bbaaf7e2d20506fcbd8a4e (patch)
tree56995fe973def1b5d9a10931bc292c371e194aaf
parent1c3070b8dff74a448d9da68683320a144e73d7e9 (diff)
downloadflashrom-9b489e6bc5b4155ab4bbaaf7e2d20506fcbd8a4e.zip
flashrom-9b489e6bc5b4155ab4bbaaf7e2d20506fcbd8a4e.tar.gz
Remove MCP6/7/8 SPI log requests
We got enough (and no one is looking at them for the time being anyway). Also, return an error code in the case no bus type could be detected. Corresponding to flashrom svn r1820. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--chipset_enable.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 40761d2..ec3c12c 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -1244,8 +1244,6 @@ static int enable_flash_mcp6x_7x(struct pci_dev *dev, const char *name)
int ret = 0, want_spi = 0;
uint8_t val;
- msg_pinfo("This chipset is not really supported yet. Guesswork...\n");
-
/* dev is the ISA bridge. No idea what the stuff below does. */
val = pci_read_byte(dev, 0x8a);
msg_pdbg("ISA/LPC bridge reg 0x8a contents: 0x%02x, bit 6 is %i, bit 5 "
@@ -1264,17 +1262,15 @@ static int enable_flash_mcp6x_7x(struct pci_dev *dev, const char *name)
*/
internal_buses_supported = BUS_NONE;
msg_pdbg("Flash bus type is SPI\n");
- msg_pinfo("SPI on this chipset is WIP. Please report any "
- "success or failure by mailing us the verbose "
- "output to flashrom@flashrom.org, thanks!\n");
break;
default:
/* Should not happen. */
internal_buses_supported = BUS_NONE;
- msg_pdbg("Flash bus type is unknown (none)\n");
- msg_pinfo("Something went wrong with bus type detection.\n");
- goto out_msg;
- break;
+ msg_pwarn("Flash bus type is unknown (none)\n");
+ msg_pinfo("Please send the log files created by \"flashrom -p internal -o logfile\" to \n"
+ "flashrom@flashrom.org with \"your board name: flashrom -V\" as the subject to\n"
+ "help us finish support for your chipset. Thanks.\n");
+ return ERROR_NONFATAL;
}
/* Force enable SPI and disable LPC? Not a good idea. */
@@ -1287,11 +1283,6 @@ static int enable_flash_mcp6x_7x(struct pci_dev *dev, const char *name)
if (mcp6x_spi_init(want_spi))
ret = 1;
-out_msg:
- msg_pinfo("Please send the output of \"flashrom -V -p internal\" to flashrom@flashrom.org\n"
- "with \"your board name: flashrom -V\" as the subject to help us finish support\n"
- "for your chipset. Thanks.\n");
-
return ret;
}
OpenPOWER on IntegriCloud