mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 23:43:42 +02:00
Revert r466 because of inverted logic
If unprotect succeeded, it will print "SB600 unprotect failed". Corresponding to flashrom svn r467. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
a66ceba293
commit
9bb88acc5e
@ -675,7 +675,8 @@ static int enable_flash_sb600(struct pci_dev *dev, const char *name)
|
|||||||
prot &= 0xfffffffc;
|
prot &= 0xfffffffc;
|
||||||
pci_write_byte(dev, reg, prot);
|
pci_write_byte(dev, reg, prot);
|
||||||
prot = pci_read_long(dev, reg);
|
prot = pci_read_long(dev, reg);
|
||||||
printf("SB600 %s%sunprotect failed from %u to %u\n",
|
if (prot & 0x3)
|
||||||
|
printf("SB600 still %s%sprotected from %u to %u\n",
|
||||||
(prot & 0x1) ? "write " : "",
|
(prot & 0x1) ? "write " : "",
|
||||||
(prot & 0x2) ? "read " : "",
|
(prot & 0x2) ? "read " : "",
|
||||||
(prot & 0xfffffc00),
|
(prot & 0xfffffc00),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user