Attention is currently required from: Tim Crawford, Nico Huber.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/57533 )
Change subject: chipset_enable.c: Add TGP-H IDs
......................................................................
Patch Set 7: Code-Review+2
(1 comment)
Patchset:
PS7:
Doing a rebase before submitting just in case.
--
To view, visit https://review.coreboot.org/c/flashrom/+/57533
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I96f63253d42578151f99dcbb42347afecc03f49d
Gerrit-Change-Number: 57533
Gerrit-PatchSet: 7
Gerrit-Owner: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Attention: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Wed, 05 Jan 2022 16:26:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Edward O'Callaghan, Anastasia Klimchuk, Sergii Dmytruk.
Nikolai Artemiev has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58479 )
Change subject: libflashrom,writeprotect: add flashrom_wp_{read,write}_chip_config()
......................................................................
Patch Set 23:
(1 comment)
Patchset:
PS22:
> Disregard typo above, start and len shouldn't be pointers in flashrom_wp_protect_flash(). […]
Passing an abstract configuration structure to WP functions is probably a better option than the interface in my previous comment. Something like:
```
struct flashrom_wp_cfg {
enum flashrom_wp_mode {
WP_MODE_DISABLED,
WP_MODE_HARDWARE
} prot_mode;
struct flashrom_wp_range {
chipsize_t start, len;
} prot_range;
};
int flashrom_wp_get_cfg(struct flashrom_wp_cfg *, struct flashrom_flashctx *);
int flashrom_wp_set_cfg(struct flashrom_flashctx *, struct flashrom_wp_cfg);
```
Then libflashrom users just populate the structure with the settings they want and the WP code will write them to the chip if it's possible to do so.
Direct SPI WP will be able to write any configuration, so won't lose any functionality that we have right now with the individual {get,set}_wp_{mode,range} functions.
And linux_mtd WP can just return an error if it's not possible to write the config (i.e. it doesn't map to a MTD ioctl).
--
To view, visit https://review.coreboot.org/c/flashrom/+/58479
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3ad25708c3321b8fb0216c3eaf6ffc07616537ad
Gerrit-Change-Number: 58479
Gerrit-PatchSet: 23
Gerrit-Owner: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Comment-Date: Tue, 04 Jan 2022 22:44:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-MessageType: comment