summaryrefslogtreecommitdiff
path: root/src/drivers/spi/spi_sdcard.c
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-09-04 15:37:07 -0600
committerFelix Held <felix-coreboot@felixheld.de>2023-12-13 10:42:30 +0000
commit3e25f85d68d10249473d422c4c19dc30ea55e8b0 (patch)
tree0fb6767dfe8334c455ccd8d3dace51bf02664932 /src/drivers/spi/spi_sdcard.c
parent3933ed5e5a73898becc80dccc35a58a158f8899e (diff)
drivers/ipmi to lib: Fix misspellings & capitalization issues
Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I926ec4c1c00339209ef656995031026935e52558 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77637 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/spi/spi_sdcard.c')
-rw-r--r--src/drivers/spi/spi_sdcard.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/drivers/spi/spi_sdcard.c b/src/drivers/spi/spi_sdcard.c
index 36d882d9e1..6a7fbf95cf 100644
--- a/src/drivers/spi/spi_sdcard.c
+++ b/src/drivers/spi/spi_sdcard.c
@@ -207,7 +207,7 @@ static int response_resolve(int response_type, uint8_t *response,
{
__maybe_unused static const char * const sd_err[] = {
"Card is locked",
- "wp erase skip | lock/unlok cmd failed",
+ "wp erase skip | lock/unlock cmd failed",
"error",
"CC error",
"card err failed",
@@ -302,7 +302,7 @@ static int spi_sdcard_do_command_help(const struct spi_sdcard *card,
/* send crc */
spi_sdcard_sendbyte(card, crc);
- /* waitting for response */
+ /* waiting for response */
wait = 0xffff;
while (((c = spi_sdcard_recvbyte(card)) & 0x80) && --wait)
;
@@ -318,7 +318,7 @@ static int spi_sdcard_do_command_help(const struct spi_sdcard *card,
}
if (type == RSP_R1b) {
- /* waitting done */
+ /* waiting done */
wait = 0xffffff;
while (c == 0 && --wait)
c = spi_sdcard_recvbyte(card);
@@ -368,7 +368,7 @@ size_t spi_sdcard_size(const struct spi_sdcard *card)
/* enable CS */
spi_sdcard_enable_cs(card);
- /* waitting start block token */
+ /* waiting start block token */
wait = 0xffff;
while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
;
@@ -505,7 +505,7 @@ int spi_sdcard_single_read(const struct spi_sdcard *card,
/* enable cs */
spi_sdcard_enable_cs(card);
- /* waitting start block token */
+ /* waiting start block token */
wait = 0xffff;
while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
;
@@ -558,7 +558,7 @@ int spi_sdcard_multiple_read(const struct spi_sdcard *card,
for (int i = 0; i < block_num; i++) {
uint16_t c = 0;
- /* waitting start block token */
+ /* waiting start block token */
wait = 0xffff;
while ((spi_sdcard_recvbyte(card) != CT_BLOCK_START) && --wait)
;
@@ -662,7 +662,7 @@ int spi_sdcard_single_write(const struct spi_sdcard *card,
if (spi_sdcard_do_command(card, WRITE_BLOCK, block_address, NULL))
return -1;
- /* eanbele cs */
+ /* enable cs */
spi_sdcard_enable_cs(card);
/* send start block token */