payloads: Fix typos
Change-Id: Ib7f1ba1766e5c972542ce7571a8aa3583c513823 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38911 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
9c26605353
commit
824b4b8a20
@@ -233,7 +233,7 @@ dwc2_do_xfer(endpoint_t *ep, int size, int pid, ep_dir_t dir,
|
||||
packet_size = ep->maxpacketsize;
|
||||
packet_cnt = ALIGN_UP(size, packet_size) / packet_size;
|
||||
inpkt_length = packet_cnt * packet_size;
|
||||
/* At least 1 packet should be programed */
|
||||
/* At least 1 packet should be programmed */
|
||||
packet_cnt = (packet_cnt == 0) ? 1 : packet_cnt;
|
||||
|
||||
/*
|
||||
|
@@ -78,7 +78,7 @@ static void dump_qh(ehci_qh_t *cur)
|
||||
usb_debug("+===================================================+\n");
|
||||
usb_debug("| ############# EHCI QH at [0x%08lx] ########### |\n", virt_to_phys(cur));
|
||||
usb_debug("+---------------------------------------------------+\n");
|
||||
usb_debug("| Horizonal Link Pointer [0x%08lx] |\n", cur->horiz_link_ptr);
|
||||
usb_debug("| Horizontal Link Pointer [0x%08lx] |\n", cur->horiz_link_ptr);
|
||||
usb_debug("+------------------[ 0x%08lx ]-------------------+\n", cur->epchar);
|
||||
usb_debug("| | Maximum Packet Length | [%04ld] |\n", ((cur->epchar & (0x7ffUL << 16)) >> 16));
|
||||
usb_debug("| | Device Address | [%ld] |\n", cur->epchar & 0x7F);
|
||||
@@ -133,7 +133,7 @@ static void ehci_reset (hci_t *controller)
|
||||
{
|
||||
short count = 0;
|
||||
ehci_stop(controller);
|
||||
/* wait 10 ms just to be shure */
|
||||
/* wait 10 ms just to be sure */
|
||||
mdelay(10);
|
||||
if (EHCI_INST(controller)->operation->usbsts & HC_OP_HC_HALTED) {
|
||||
EHCI_INST(controller)->operation->usbcmd = HC_OP_HC_RESET;
|
||||
@@ -215,7 +215,7 @@ static int fill_td(qtd_t *td, void* data, int datalen)
|
||||
total_len += page_len;
|
||||
|
||||
while (page_no < 5) {
|
||||
/* we have a continguous mapping between virtual and physical memory */
|
||||
/* we have a contiguous mapping between virtual and physical memory */
|
||||
page += 4096;
|
||||
|
||||
td->bufptrs[page_no++] = page;
|
||||
|
@@ -66,7 +66,7 @@ dump_td (td_t *cur)
|
||||
usb_debug("|:| C | Condition Code | [%02ld] |:|\n", (cur->config & (0xFUL << 28)) >> 28);
|
||||
usb_debug("|:| O | Direction/PID | [%ld] |:|\n", (cur->config & (3UL << 19)) >> 19);
|
||||
usb_debug("|:| N | Buffer Rounding | [%ld] |:|\n", (cur->config & (1UL << 18)) >> 18);
|
||||
usb_debug("|:| F | Delay Intterrupt | [%ld] |:|\n", (cur->config & (7UL << 21)) >> 21);
|
||||
usb_debug("|:| F | Delay Interrupt | [%ld] |:|\n", (cur->config & (7UL << 21)) >> 21);
|
||||
usb_debug("|:| I | Data Toggle | [%ld] |:|\n", (cur->config & (3UL << 24)) >> 24);
|
||||
usb_debug("|:| G | Error Count | [%ld] |:|\n", (cur->config & (3UL << 26)) >> 26);
|
||||
usb_debug("|:+-----------------------------------------------+:|\n");
|
||||
@@ -879,7 +879,7 @@ ohci_process_done_queue(ohci_t *const ohci, const int spew_debug)
|
||||
intrq_td_t *const td = INTRQ_TD_FROM_TD(done_td);
|
||||
intr_queue_t *const intrq = td->intrq;
|
||||
/* Check if the corresponding interrupt
|
||||
queue is still beeing processed. */
|
||||
queue is still being processed. */
|
||||
if (intrq->destroy) {
|
||||
/* Free this TD, and */
|
||||
free(td);
|
||||
|
@@ -499,7 +499,7 @@ set_address (hci_t *controller, usb_speed speed, int hubport, int hubaddr)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Gather up all endpoints belonging to this inteface */
|
||||
/* Gather up all endpoints belonging to this interface */
|
||||
dev->num_endp = 1;
|
||||
for (; ptr + 2 <= end && ptr[0] && ptr + ptr[0] <= end; ptr += ptr[0]) {
|
||||
if (ptr[1] == DT_INTF || ptr[1] == DT_CFG ||
|
||||
@@ -654,7 +654,7 @@ usb_detach_device(hci_t *controller, int devno)
|
||||
controller->devices[devno]->configuration = NULL;
|
||||
|
||||
/* Tear down the device itself *after* destroy_device()
|
||||
* has had a chance to interoogate it. */
|
||||
* has had a chance to interrogate it. */
|
||||
free(controller->devices[devno]);
|
||||
controller->devices[devno] = NULL;
|
||||
}
|
||||
|
@@ -285,7 +285,7 @@ usb_hub_init(usbdev_t *const dev)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get number of ports from hub decriptor */
|
||||
/* Get number of ports from hub descriptor */
|
||||
int type = is_usb_speed_ss(dev->speed) ? 0x2a : 0x29; /* similar enough */
|
||||
hub_descriptor_t desc; /* won't fit the whole thing, we don't care */
|
||||
if (get_descriptor(dev, gen_bmRequestType(device_to_host, class_type,
|
||||
|
@@ -538,7 +538,7 @@ usb_msc_test_unit_ready (usbdev_t *dev)
|
||||
time_t start_time_secs;
|
||||
struct timeval tv;
|
||||
/* SCSI/ATA specs say we have to wait up to 30s, but most devices
|
||||
* are ready much sooner. Use a 5 sec timeout to better accomodate
|
||||
* are ready much sooner. Use a 5 sec timeout to better accommodate
|
||||
* devices which fail to respond. */
|
||||
const int timeout_secs = 5;
|
||||
|
||||
@@ -569,7 +569,7 @@ usb_msc_test_unit_ready (usbdev_t *dev)
|
||||
MSC_INST (dev)->ready = USB_MSC_NOT_READY;
|
||||
}
|
||||
|
||||
/* Don't bother spinning up the stroage device if the device is not
|
||||
/* Don't bother spinning up the storage device if the device is not
|
||||
* ready. This can happen when empty card readers are present.
|
||||
* Polling will pick it back up if readiness changes. */
|
||||
if (!MSC_INST (dev)->ready)
|
||||
|
Reference in New Issue
Block a user