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>
This commit is contained in:
parent
3933ed5e5a
commit
3e25f85d68
27 changed files with 43 additions and 43 deletions
|
|
@ -101,7 +101,7 @@ unsigned int spi_crop_chunk(const struct spi_slave *slave, unsigned int cmd_len,
|
|||
/* Subtract command length from usable buffer size. If
|
||||
deduct_opcode_len is set, only subtract the number command bytes
|
||||
after the opcode. If the adjusted cmd_len is larger than ctrlr_max
|
||||
return 0 to inidicate an error. */
|
||||
return 0 to indicate an error. */
|
||||
if (deduct_cmd_len) {
|
||||
if (ctrlr_max >= cmd_len) {
|
||||
ctrlr_max -= cmd_len;
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ extern const struct spi_flash_vendor_info spi_flash_atmel_vi;
|
|||
extern const struct spi_flash_vendor_info spi_flash_eon_vi;
|
||||
extern const struct spi_flash_vendor_info spi_flash_gigadevice_vi;
|
||||
extern const struct spi_flash_vendor_info spi_flash_macronix_vi;
|
||||
/* Probing order matters between the spansion sequence. */
|
||||
/* Probing order matters between the Spansion sequence. */
|
||||
extern const struct spi_flash_vendor_info spi_flash_spansion_ext1_vi;
|
||||
extern const struct spi_flash_vendor_info spi_flash_spansion_ext2_vi;
|
||||
extern const struct spi_flash_vendor_info spi_flash_spansion_vi;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
/* This is a driver for a SPI interfaced TPM2 device.
|
||||
*
|
||||
* It assumes that the required SPI interface has been initialized before the
|
||||
* driver is started. A 'sruct spi_slave' pointer passed at initialization is
|
||||
* driver is started. A 'struct spi_slave' pointer passed at initialization is
|
||||
* used to direct traffic to the correct SPI interface. This driver does not
|
||||
* provide a way to instantiate multiple TPM devices. Also, to keep things
|
||||
* simple, the driver unconditionally uses of TPM locality zero.
|
||||
|
|
@ -134,7 +134,7 @@ static enum cb_err start_transaction(int read_write, size_t bytes, unsigned int
|
|||
* flow control (Section "6.4.5 Flow Control").
|
||||
*
|
||||
* Again, the slave (TPM device) expects each transaction to start
|
||||
* with a 4 byte header trasmitted by master. The header indicates if
|
||||
* with a 4 byte header transmitted by master. The header indicates if
|
||||
* the master needs to read or write a register, and the register
|
||||
* address.
|
||||
*
|
||||
|
|
@ -231,7 +231,7 @@ static void trace_dump(const char *prefix, uint32_t reg,
|
|||
|
||||
/*
|
||||
* Data read from or written to FIFO or not in 4 byte
|
||||
* quantiites is printed byte at a time.
|
||||
* quantities is printed byte at a time.
|
||||
*/
|
||||
for (i = 0; i < bytes; i++) {
|
||||
if (current_char &&
|
||||
|
|
@ -697,7 +697,7 @@ size_t tpm2_process_command(const void *tpm2_command, size_t command_size,
|
|||
if (debug_level_)
|
||||
printk(BIOS_DEBUG, "\n");
|
||||
|
||||
/* Verify that 'data available' is not asseretd any more. */
|
||||
/* Verify that 'data available' is not asserted any more. */
|
||||
read_tpm_sts(&status);
|
||||
if ((status & expected_status_bits) != TPM_STS_VALID) {
|
||||
printk(BIOS_ERR, "unexpected final status %#x\n", status);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#define TPM_LOCALITY_0_SPI_BASE 0x00d40000
|
||||
|
||||
/*
|
||||
* A tpm device descriptor, values read from the appropriate device regisrers
|
||||
* A TPM device descriptor, values read from the appropriate device registers
|
||||
* are cached here.
|
||||
*/
|
||||
struct tpm2_info {
|
||||
|
|
@ -33,7 +33,7 @@ tpm_result_t tpm2_init(struct spi_slave *spi_if);
|
|||
* Each command processing consists of sending the command to the TPM, by
|
||||
* writing it into the FIFO register, then polling the status register until
|
||||
* the TPM is ready to respond, then reading the response from the FIFO
|
||||
* regitster. The size of the response can be gleaned from the 6 byte header.
|
||||
* register. The size of the response can be gleaned from the 6 byte header.
|
||||
*
|
||||
* This function places the response into the tpm2_response buffer and returns
|
||||
* the size of the response.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue