Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Unified Diff: nicintel_spi.c

Issue 6877037: Revert MMIO space writes on shutdown as needed. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: re-send to notice reviewer Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ichspi.c ('k') | programmer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nicintel_spi.c
diff --git a/nicintel_spi.c b/nicintel_spi.c
index 2d2d5b22d200e14f95232105d5cd4760bbcf80f0..f6eb5ebccf5f1b1d06733ad41ab979f98320e09a 100644
--- a/nicintel_spi.c
+++ b/nicintel_spi.c
@@ -149,6 +149,7 @@ int nicintel_spi_init(void)
nicintel_spibar = physmap("Intel Gigabit NIC w/ SPI flash",
io_base_addr, 4096);
+ /* Automatic restore is not possible because we only change two bits. */
Stefan Reinauer 2011/04/19 18:24:55 Why are two bits not enough?
Louis 2011/04/20 00:43:55 Hm.... I don't the exact reason, I just patch this
dhendrix 2011/04/20 00:55:25 Agreed -- Removing the comment is probably best to
tmp = pci_mmio_readl(nicintel_spibar + EECD);
tmp &= ~FLASH_WRITES_DISABLED;
tmp |= FLASH_WRITES_ENABLED;
@@ -168,6 +169,7 @@ int nicintel_spi_shutdown(void)
{
uint32_t tmp;
+ /* Automatic restore is not possible because we only change two bits. */
tmp = pci_mmio_readl(nicintel_spibar + EECD);
tmp &= ~FLASH_WRITES_ENABLED;
tmp |= FLASH_WRITES_DISABLED;
« no previous file with comments | « ichspi.c ('k') | programmer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698