Attention is currently required from: Thomas Heijligen, Edward O'Callaghan.
Hello build bot (Jenkins), Edward O'Callaghan, Anastasia Klimchuk, Peter Marheine,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/63832
to look at the new patch set (#6).
Change subject: meson: add option to disable tests
......................................................................
meson: add option to disable tests
During development it can be useful to disable unit testing. By default
tests are built if cmocka is found. To force enable tests run `meson
build -Dtests=enable`. to disable tests run `meson build
-Dtests=disabled`
Change-Id: I384c904c577b265dfe36bf46bf07c641bc29de9b
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M meson.build
M meson_options.txt
2 files changed, 27 insertions(+), 23 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/32/63832/6
--
To view, visit https://review.coreboot.org/c/flashrom/+/63832
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I384c904c577b265dfe36bf46bf07c641bc29de9b
Gerrit-Change-Number: 63832
Gerrit-PatchSet: 6
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Singer, Anastasia Klimchuk, Peter Marheine.
Thomas Heijligen has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/63826 )
Change subject: meson: use `platform/` as subdir()
......................................................................
Patch Set 4:
(4 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/63826/comment/f3a00d35_03b29698
PS3, Line 7: outsource
> I would use "move"
Entirely new commit message
https://review.coreboot.org/c/flashrom/+/63826/comment/e61fc457_801f5a73
PS3, Line 8:
> Please state the reason for this change. […]
Is it more obvious now?
File meson.build:
https://review.coreboot.org/c/flashrom/+/63826/comment/3ec270c3_7afcd5bf
PS2, Line 80: host_is_x86 = ['x86', 'x86_64'].contains(host_machine.cpu_family())
> Okay so maybe you can update commit message and add more info about future plans?
Is the single sentence enough?
https://review.coreboot.org/c/flashrom/+/63826/comment/44807d66_41bbeb73
PS2, Line 133: if host_machine.system() in ['cygwin', 'windows']
> Yes, we can move it here first. […]
I've decided against putting IS_WINDOWS here and only put stuff from the `platform/` directory there.
OK?
--
To view, visit https://review.coreboot.org/c/flashrom/+/63826
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I88044a3f903f316138483dd872a6d95f8686ae69
Gerrit-Change-Number: 63826
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Comment-Date: Tue, 03 May 2022 08:24:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Thomas Heijligen <src(a)posteo.de>
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Comment-In-Reply-To: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Thomas Heijligen, Edward O'Callaghan.
Hello build bot (Jenkins), Edward O'Callaghan, Anastasia Klimchuk,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/63724
to look at the new patch set (#12).
Change subject: [WIP] meson: rework the programmer selection
......................................................................
[WIP] meson: rework the programmer selection
This is a WIP implementation for a new programmer selection. It should
work by now but has some known and unknown bugs. (see Gerrit Comments)
- Each dependency is optional and gets mandatory when the programmer is
selected as active.
- Each programmer is defined through an entry in the programmer
dictionary
- The entry lists systems & cpu_families where the programmer is
supported; Dependencies, sources and flags. The group parameter is for
selecting a set of programmer, the default parameter is to include the
programmer to the `all` and `auto` set.
- If the programmer gets selected the `active` entry is set to true.
The `active` entry can be used afterwards to determine if the
programmer should be included in sources, config, documentation
- Needed system headers are represended through a pseudo dependency.
- The programmer's `srcs` attribute contains all files which are needed
to build the programmer.
Change-Id: Ib44b26e3748fc71f116184082b4aed0bb208b4c1
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M meson.build
M meson_options.txt
2 files changed, 411 insertions(+), 340 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/24/63724/12
--
To view, visit https://review.coreboot.org/c/flashrom/+/63724
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ib44b26e3748fc71f116184082b4aed0bb208b4c1
Gerrit-Change-Number: 63724
Gerrit-PatchSet: 12
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-CC: Richard Hughes <richard(a)hughsie.com>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Nico Huber, Namyoon Woo, Thomas Heijligen, Edward O'Callaghan.
Hello build bot (Jenkins), Namyoon Woo, Edward O'Callaghan, Anastasia Klimchuk,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/63831
to look at the new patch set (#3).
Change subject: [UGLY HACK] move structs and probe_variable_size() out of dummyflasher.c
......................................................................
[UGLY HACK] move structs and probe_variable_size() out of dummyflasher.c
This makes flashrom buildable without the dummy programmer. It does NOT
fix the underlaying bug.
* BUG: https://ticket.coreboot.org/issues/365
* COMMIT: https://review.coreboot.org/c/flashrom/+/44879
* COMMIT: https://review.coreboot.org/c/flashrom/+/46536
Change-Id: Ic93c8b9ba7b9f7ce5fe49326c8de34070ca83a2e
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M Makefile
M dummyflasher.c
M include/chipdrivers.h
A include/you_need_to_fix_me.h
M meson.build
A you_need_to_fix_me.c
6 files changed, 113 insertions(+), 81 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/31/63831/3
--
To view, visit https://review.coreboot.org/c/flashrom/+/63831
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic93c8b9ba7b9f7ce5fe49326c8de34070ca83a2e
Gerrit-Change-Number: 63831
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Namyoon Woo <namyoon(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Namyoon Woo <namyoon(a)google.com>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Thomas Heijligen, Edward O'Callaghan.
Hello build bot (Jenkins), Edward O'Callaghan, Anastasia Klimchuk, Peter Marheine,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/63832
to look at the new patch set (#5).
Change subject: meson: add option to disable tests
......................................................................
meson: add option to disable tests
During development it can be usefull to disable unit testing. By default
tests are build if cmocka is found. To force enable tests run `meson
build -Dtests=enable`. to disable tests run `meson build
-Dtests=disabled`
Change-Id: I384c904c577b265dfe36bf46bf07c641bc29de9b
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M meson.build
M meson_options.txt
2 files changed, 27 insertions(+), 23 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/32/63832/5
--
To view, visit https://review.coreboot.org/c/flashrom/+/63832
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I384c904c577b265dfe36bf46bf07c641bc29de9b
Gerrit-Change-Number: 63832
Gerrit-PatchSet: 5
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Thomas Heijligen.
Hello build bot (Jenkins), Anastasia Klimchuk, Peter Marheine,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/63826
to look at the new patch set (#4).
Change subject: meson: use `platform/` as subdir()
......................................................................
meson: use `platform/` as subdir()
Move build instructions for files inside the `platform/` directory to
`platform/meson.build`. This contains instructions to build
`memaccess.c`, the right endian implementation and selecting the right
legacy command line option for the endian.
The `platform/` directory should contain code that abstracts the
underlaying platform but is not involved in flashrom logic.
Change-Id: I88044a3f903f316138483dd872a6d95f8686ae69
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M meson.build
A platform/meson.build
2 files changed, 13 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/26/63826/4
--
To view, visit https://review.coreboot.org/c/flashrom/+/63826
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I88044a3f903f316138483dd872a6d95f8686ae69
Gerrit-Change-Number: 63826
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: Nico Huber, Edward O'Callaghan, Angel Pons.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/59291 )
Change subject: flashrom: Drop read_flash_to_file() usage
......................................................................
Patch Set 14:
(1 comment)
Commit Message:
https://review.coreboot.org/c/flashrom/+/59291/comment/f05f62a2_5aec9c4b
PS14, Line 9: Aspire towards a goal of making cli_classic more of just
: a user of libflashrom than having quasi-parallel paths in
: flashrom.c
:
: This converts remaining read_flash_to_file() usage to the
: do_read() provider wrapper around libflashrom.
Nit: Using 72 characters per line would save one line.
--
To view, visit https://review.coreboot.org/c/flashrom/+/59291
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I4b690b688acf9d5deb46e8642a252a2132ea8c73
Gerrit-Change-Number: 59291
Gerrit-PatchSet: 14
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Daniel Campello <campello(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Tue, 03 May 2022 08:01:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/62840 )
Change subject: Global cleanup: Fix a few spelling errors
......................................................................
Global cleanup: Fix a few spelling errors
Just a trivial patch to fix a few errors found by codespell.
Here's the command I used:
codespell -S subprojects,out \
-L fwe,dout,tast,crate,parms,claus,nt,nd,te,truns,trun
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: I4e3b277f220fa70dcab21912c30f1d26d9bd8749
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62840
Reviewed-by: Felix Singer <felixsinger(a)posteo.net>
Reviewed-by: Anastasia Klimchuk <aklm(a)chromium.org>
Reviewed-by: Elyes Haouas <ehaouas(a)noos.fr>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M Makefile
M ch341a_spi.c
M flashrom.8.tmpl
M flashrom.c
M ft2232_spi.c
M ich_descriptors.c
M ichspi.c
M include/flash.h
M include/i2c_helper.h
M lspcon_i2c_spi.c
M ni845x_spi.c
M s25f.c
M stlinkv3_spi.c
M util/flashrom_tester/src/utils.rs
M util/ubertest/ubertest.sh
15 files changed, 26 insertions(+), 26 deletions(-)
Approvals:
build bot (Jenkins): Verified
Elyes Haouas: Looks good to me, approved
Felix Singer: Looks good to me, approved
Anastasia Klimchuk: Looks good to me, approved
diff --git a/Makefile b/Makefile
index 513ac82..0789ea9 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@
# Set LC_ALL=C to minimize influences of the locale.
# However, this won't work for the majority of relevant commands because they use the $(shell) function and
-# GNU make does not relay variables exported within the makefile to their evironment.
+# GNU make does not relay variables exported within the makefile to their environment.
LC_ALL=C
export LC_ALL
diff --git a/ch341a_spi.c b/ch341a_spi.c
index bc4112b..3848af9 100644
--- a/ch341a_spi.c
+++ b/ch341a_spi.c
@@ -406,7 +406,7 @@
static const struct spi_master spi_master_ch341a_spi = {
.features = SPI_MASTER_4BA,
- /* flashrom's current maximum is 256 B. CH341A was tested on Linux and Windows to accept atleast
+ /* flashrom's current maximum is 256 B. CH341A was tested on Linux and Windows to accept at least
* 128 kB. Basically there should be no hard limit because transfers are broken up into USB packets
* sent to the device and most of their payload streamed via SPI. */
.max_data_read = 4 * 1024,
@@ -428,7 +428,7 @@
int32_t ret = libusb_init(NULL);
if (ret < 0) {
- msg_perr("Couldnt initialize libusb!\n");
+ msg_perr("Couldn't initialize libusb!\n");
return -1;
}
diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl
index 23b6f71..563ba1d 100644
--- a/flashrom.8.tmpl
+++ b/flashrom.8.tmpl
@@ -501,7 +501,7 @@
and store it to a medium outside of your computer, like
a USB drive or a network share. If you needed to run the board enable code
already for probing, use it for reading too.
-If reading succeeds and the contens of the read file look legit you can try to write the new image.
+If reading succeeds and the contents of the read file look legit you can try to write the new image.
You should enable the board enable code in any case now, as it
has been written because it is known that writing/erasing without the board
enable is going to fail. In any case (success or failure), please report to
@@ -927,7 +927,7 @@
.sp
The parameter
.B gpiolX=[HLC]
-allows use of the GPIOL pins either as generic gpios with a fixed value during flashing or as addtional CS#
+allows use of the GPIOL pins either as generic gpios with a fixed value during flashing or as additional CS#
signal, where
.B X
can be a number between 0 and 3, denoting GPIOL0-GPIOL3 correspondingly. The parameter may be specified
diff --git a/flashrom.c b/flashrom.c
index 7937885..1736381 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -623,7 +623,7 @@
return first_len;
}
-/* Returns the number of busses commonly supported by the current programmer and flash chip where the latter
+/* Returns the number of buses commonly supported by the current programmer and flash chip where the latter
* can not be completely accessed due to size/address limits of the programmer. */
unsigned int count_max_decode_exceedings(const struct flashctx *flash)
{
diff --git a/ft2232_spi.c b/ft2232_spi.c
index ccd5f4c..bafed40 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -483,7 +483,7 @@
arg = extract_programmer_param("csgpiol");
if (arg) {
csgpiol_set = true;
- msg_pwarn("Deprecation warning: `csgpiol` is deprectated and will be removed "
+ msg_pwarn("Deprecation warning: `csgpiol` is deprecated and will be removed "
"in the future.\nUse `gpiolX=C` instead.\n");
char *endptr;
diff --git a/ich_descriptors.c b/ich_descriptors.c
index 0eabe95..797642e 100644
--- a/ich_descriptors.c
+++ b/ich_descriptors.c
@@ -983,9 +983,9 @@
uint32_t vscc = umap->vscc_table[i].VSCC;
msg_pdbg2(" JID%d = 0x%08x\n", i, jid);
msg_pdbg2(" VSCC%d = 0x%08x\n", i, vscc);
- msg_pdbg2(" "); /* indention */
+ msg_pdbg2(" "); /* indentation */
prettyprint_rdid(jid);
- msg_pdbg2(" "); /* indention */
+ msg_pdbg2(" "); /* indentation */
prettyprint_ich_reg_vscc(vscc, 0, false);
}
msg_pdbg2("\n");
diff --git a/ichspi.c b/ichspi.c
index 667b18f..ce7004b 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -996,7 +996,7 @@
}
/* Program offset in flash into FADDR while preserve the reserved bits
- * and clearing the 25. address bit which is only useable in hwseq. */
+ * and clearing the 25. address bit which is only usable in hwseq. */
temp32 = REGREAD32(ICH9_REG_FADDR) & ~0x01FFFFFF;
REGWRITE32(ICH9_REG_FADDR, (offset & 0x00FFFFFF) | temp32);
diff --git a/include/flash.h b/include/flash.h
index 9493fd2..805387f 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -71,7 +71,7 @@
/*
* The following enum defines possible write granularities of flash chips. These tend to reflect the properties
- * of the actual hardware not necesserily the write function(s) defined by the respective struct flashchip.
+ * of the actual hardware not necessarily the write function(s) defined by the respective struct flashchip.
* The latter might (and should) be more precisely specified, e.g. they might bail out early if their execution
* would result in undefined chip contents.
*/
@@ -167,7 +167,7 @@
#define TEST_BAD_PREW (struct tested){ .probe = BAD, .read = BAD, .erase = BAD, .write = BAD }
struct flashrom_flashctx;
-#define flashctx flashrom_flashctx /* TODO: Agree on a name and convert all occurences. */
+#define flashctx flashrom_flashctx /* TODO: Agree on a name and convert all occurrences. */
typedef int (erasefunc_t)(struct flashctx *flash, unsigned int addr, unsigned int blocklen);
enum flash_reg {
diff --git a/include/i2c_helper.h b/include/i2c_helper.h
index 709a748..c7d0f7a 100644
--- a/include/i2c_helper.h
+++ b/include/i2c_helper.h
@@ -20,7 +20,7 @@
#include <inttypes.h>
/**
- * An convinent structure that contains the buffer size and the buffer
+ * An convenient structure that contains the buffer size and the buffer
* pointer. Used to wrap buffer details while doing the I2C data
* transfer on both input and output. It is the client's responsibility
* to use i2c_buffer_t_fill to initialize this struct instead of
@@ -118,7 +118,7 @@
*
* @fd: file descriptor of the target device.
* @addr: I2C slave address of the target device.
- * @buf_write: data struct includes writting buffer and size.
+ * @buf_write: data struct includes writing buffer and size.
*
* This function does accept empty write and do nothing on such case.
*
diff --git a/lspcon_i2c_spi.c b/lspcon_i2c_spi.c
index bed7efc..cabe21f 100644
--- a/lspcon_i2c_spi.c
+++ b/lspcon_i2c_spi.c
@@ -271,7 +271,7 @@
ret |= lspcon_i2c_spi_enable_write_status_register(fd);
ret |= lspcon_i2c_spi_toggle_register_protection(fd, 1);
- /* First byte of writearr shuld be the command value, followed by the value to write.
+ /* First byte of writearr should be the command value, followed by the value to write.
Read length occupies 4 bit and represents 16 level, thus if read 1 byte,
read length should be set 0. */
packet_t packet = {
diff --git a/ni845x_spi.c b/ni845x_spi.c
index 4dcf140..18c0278 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -146,7 +146,7 @@
/**
* @param serial a null terminated string containing the serial number of the specific device or NULL
- * @return the 0 on successful completition, negative error code on failure
+ * @return the 0 on successful completion, negative error code on failure
*/
static int ni845x_spi_open(const char *serial, uInt32 *return_handle)
{
@@ -161,7 +161,7 @@
tmp = ni845xFindDevice(resource_name, &device_find_handle, &found_devices_count);
if (tmp != 0) {
- // supress warning if no device found
+ // suppress warning if no device found
if (tmp != NI845x_FIND_DEVICE_NO_DEVICE_FOUND)
ni845x_report_error("ni845xFindDevice", tmp);
return -1;
@@ -214,7 +214,7 @@
* @param requested_io_voltage_mV the desired IO voltage in mVolts
* @param set_io_voltage_mV the IO voltage which was set in mVolts
* @param coerce_mode if set to USE_LOWER the closest supported IO voltage which is lower or equal to
- * the requested_io_voltage_mV will be selected. Otherwise the next closest supported voltage will be choosen
+ * the requested_io_voltage_mV will be selected. Otherwise the next closest supported voltage will be chosen
* which is higher or equal to the requested_io_voltage_mV.
* @return 0 on success, negative on error, positive on warning
*/
@@ -340,7 +340,7 @@
tmp = ni845xFindDevice(resource_handle, &device_find_handle, &found_devices_count);
if (tmp != 0) {
- // supress warning if no device found
+ // suppress warning if no device found
if (tmp != NI845x_FIND_DEVICE_NO_DEVICE_FOUND)
ni845x_report_error("ni845xFindDevice", tmp);
return;
@@ -517,7 +517,7 @@
if (read_cnt != 0 && read_arr != NULL) {
if ((read_cnt + write_cnt) != read_size) {
- msg_perr("%s: expected and returned read count mismatch: %u expected, %ld recieved\n",
+ msg_perr("%s: expected and returned read count mismatch: %u expected, %ld received\n",
__func__, read_cnt, read_size);
free(transfer_buffer);
return -1;
diff --git a/s25f.c b/s25f.c
index 82ca610..67715ed 100644
--- a/s25f.c
+++ b/s25f.c
@@ -17,7 +17,7 @@
/*
* s25f.c - Helper functions for Spansion S25FL and S25FS SPI flash chips.
* Uses 24 bit addressing for the FS chips and 32 bit addressing for the FL
- * chips (which is required by the overlayed sector size devices).
+ * chips (which is required by the overlaid sector size devices).
* TODO: Implement fancy hybrid sector architecture helpers.
*/
@@ -368,7 +368,7 @@
* 04h 00h FS: 256-kB physical sectors
* 04h 01h FS: 64-kB physical sectors
* 04h 00h FL: 256-kB physical sectors
- * 04h 01h FL: Mix of 64-kB and 4KB overlayed sectors
+ * 04h 01h FL: Mix of 64-kB and 4KB overlaid sectors
* 05h 80h FL family
* 05h 81h FS family
*
diff --git a/stlinkv3_spi.c b/stlinkv3_spi.c
index 58e7a41..bbcad47 100644
--- a/stlinkv3_spi.c
+++ b/stlinkv3_spi.c
@@ -411,7 +411,7 @@
&actual_length,
USB_TIMEOUT_IN_MS);
if (rc != LIBUSB_TRANSFER_COMPLETED || (unsigned int)actual_length != read_cnt) {
- msg_perr("Failed to retrive the STLINK_BRIDGE_READ_SPI answer: '%s'\n",
+ msg_perr("Failed to retrieve the STLINK_BRIDGE_READ_SPI answer: '%s'\n",
libusb_error_name(rc));
goto transmit_err;
}
diff --git a/util/flashrom_tester/src/utils.rs b/util/flashrom_tester/src/utils.rs
index d17480b..8d3c319 100644
--- a/util/flashrom_tester/src/utils.rs
+++ b/util/flashrom_tester/src/utils.rs
@@ -88,7 +88,7 @@
}
pub fn toggle_hw_wp(dis: bool) -> Result<(), String> {
- // The easist way to toggle the harware write-protect is
+ // The easist way to toggle the hardware write-protect is
// to {dis}connect the battery (and/or open the WP screw).
let s = if dis { "dis" } else { "" };
info!("Prompt for hardware WP {}able", s);
diff --git a/util/ubertest/ubertest.sh b/util/ubertest/ubertest.sh
index e64daf7..009194d 100755
--- a/util/ubertest/ubertest.sh
+++ b/util/ubertest/ubertest.sh
@@ -312,7 +312,7 @@
# Setup temporary working directories:
# LOCAL_TMPDIR: Working directory on local host.
# REMOTE_TMPDIR: Working directory on remote host.
-# TMPDIR: The temporary directy in which we do most of the work. This is
+# TMPDIR: The temporary directory in which we do most of the work. This is
# convenient for commands that depend on $DO_REMOTE.
LOCAL_TMPDIR=$(mktemp -d --tmpdir flashrom_test.XXXXXXXX)
if [ $? -ne 0 ] ; then
@@ -827,7 +827,7 @@
return $EXIT_SUCCESS
}
-# Before anything else, check to see if Flashrom can succesfully probe
+# Before anything else, check to see if Flashrom can successfully probe
# for and find the flash chips. If not, we will abort.
flashrom_log_scmd $DO_REMOTE "$NEW_FLASHROM $PRIMARY_OPTS" "verify_probe"
if [ $? -ne 0 ]; then
--
To view, visit https://review.coreboot.org/c/flashrom/+/62840
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I4e3b277f220fa70dcab21912c30f1d26d9bd8749
Gerrit-Change-Number: 62840
Gerrit-PatchSet: 4
Gerrit-Owner: Martin L Roth <martinroth(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged