Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-23 16:00:07 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-23 16:00:17 +0200
commitafd28794f6978873009e77f2166e03b3a34ba8d1 (patch)
tree69ec075ea7799a1fb398211eadc05cd9cc7fdbcd
parent4d05b8173b04b2406d5598905b1abce5f828e59c (diff)
mfd: lpc_ich: Do not touch SPI-NOR write protection bit on
Apollo Lake (FATE#326580,bsc#1051510). suse-commit: abe590f0617cf070d36accbb7091f3ee0ee975a9
-rw-r--r--drivers/mfd/lpc_ich.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index cf1120abbf52..53dc1a43472c 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -1143,11 +1143,6 @@ static int lpc_ich_init_spi(struct pci_dev *dev)
res->end = res->start + SPIBASE_APL_SZ - 1;
pci_bus_read_config_dword(bus, spi, BCR, &bcr);
- if (!(bcr & BCR_WPD)) {
- bcr |= BCR_WPD;
- pci_bus_write_config_dword(bus, spi, BCR, bcr);
- pci_bus_read_config_dword(bus, spi, BCR, &bcr);
- }
info->writeable = !!(bcr & BCR_WPD);
}