| Index: gft_wpfw.py
|
| diff --git a/gft_wpfw.py b/gft_wpfw.py
|
| index 6480c9f0615edd5306b6c54fd3c0d0fa6a2ad60b..e113ed41309e3b41494a76f0e4c005f554e8173f 100755
|
| --- a/gft_wpfw.py
|
| +++ b/gft_wpfw.py
|
| @@ -100,6 +100,11 @@ def EnableWriteProtect(target):
|
| flashrom.disable_write_protect()
|
| if not flashrom.verify_write_protect(layout, 'ro'):
|
| ErrorDie('wpfw: not write-protected (modifiable status): ' + name)
|
| +
|
| + # Always restore the target to BIOS(spi). Some platforms may fail to reboot if
|
| + # target is EC(lpc).
|
| + if target != flashrom.TARGET_BIOS:
|
| + flashrom.select_target(flashrom.TARGET_BIOS)
|
| return True
|
|
|
|
|
|
|