summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/usb')
-rw-r--r--payloads/libpayload/drivers/usb/dwc2.c2
-rw-r--r--payloads/libpayload/drivers/usb/ehci.c6
-rw-r--r--payloads/libpayload/drivers/usb/ohci.c4
-rw-r--r--payloads/libpayload/drivers/usb/usb.c4
-rw-r--r--payloads/libpayload/drivers/usb/usbhub.c2
-rwxr-xr-xpayloads/libpayload/drivers/usb/usbmsc.c4
6 files changed, 11 insertions, 11 deletions
diff --git a/payloads/libpayload/drivers/usb/dwc2.c b/payloads/libpayload/drivers/usb/dwc2.c
index 963ae84762..eef486bcc9 100644
--- a/payloads/libpayload/drivers/usb/dwc2.c
+++ b/payloads/libpayload/drivers/usb/dwc2.c
@@ -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;
/*
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index 68763402af..1cfa8bb6d6 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -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;
diff --git a/payloads/libpayload/drivers/usb/ohci.c b/payloads/libpayload/drivers/usb/ohci.c
index f1dc081656..2571273378 100644
--- a/payloads/libpayload/drivers/usb/ohci.c
+++ b/payloads/libpayload/drivers/usb/ohci.c
@@ -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);
diff --git a/payloads/libpayload/drivers/usb/usb.c b/payloads/libpayload/drivers/usb/usb.c
index 4004def9d9..d98fd9e2bc 100644
--- a/payloads/libpayload/drivers/usb/usb.c
+++ b/payloads/libpayload/drivers/usb/usb.c
@@ -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;
}
diff --git a/payloads/libpayload/drivers/usb/usbhub.c b/payloads/libpayload/drivers/usb/usbhub.c
index 87c58169c5..5c39eac3d9 100644
--- a/payloads/libpayload/drivers/usb/usbhub.c
+++ b/payloads/libpayload/drivers/usb/usbhub.c
@@ -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,
diff --git a/payloads/libpayload/drivers/usb/usbmsc.c b/payloads/libpayload/drivers/usb/usbmsc.c
index d8b7bcea6e..50fd24b1f8 100755
--- a/payloads/libpayload/drivers/usb/usbmsc.c
+++ b/payloads/libpayload/drivers/usb/usbmsc.c
@@ -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)