]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: host: fix typo in the comment
authorYan Zhen <yanzhen@vivo.com>
Thu, 19 Sep 2024 11:05:17 +0000 (19:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 13:08:37 +0000 (15:08 +0200)
Correctly spelled comments make it easier for the reader to understand
the code.

Fix typos:
'calcalate' -> 'calculate',
'complted' -> 'completed',
'inidicator' -> 'indicator',
'detction' -> 'detection',
'allocte' -> 'allocate',
'controlles' -> 'controllers',
'initated' -> 'initiated',
'resumeable' -> 'resumable',
'aquires' -> 'acquires',
'tranfers' -> 'transfers',
'tranferred' -> 'transferred'.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Link: https://lore.kernel.org/r/20240919110517.1793550-1-yanzhen@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-sched.c
drivers/usb/host/octeon-hcd.c
drivers/usb/host/ohci-omap.c
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-ring.c

index a45ede80edfcd175ff499535af95803f50fb9f45..c3acd410ce948c2a31d3163e1691afff6d792d43 100644 (file)
@@ -158,7 +158,7 @@ static int add_packet(struct fhci_usb *usb, struct ed *ed, struct td *td)
        struct packet *pkt;
        u8 *data = NULL;
 
-       /* calcalate data address,len and toggle and then add the transaction */
+       /* calculate data address,len and toggle and then add the transaction */
        if (td->toggle == USB_TD_TOGGLE_CARRY)
                td->toggle = ed->toggle_carry;
 
@@ -679,7 +679,7 @@ static void process_done_list(unsigned long data)
 
 DECLARE_TASKLET_OLD(fhci_tasklet, process_done_list);
 
-/* transfer complted callback */
+/* transfer completed callback */
 u32 fhci_transfer_confirm_callback(struct fhci_hcd *fhci)
 {
        if (!fhci->process_done_task->state)
index 19d5777f5db25c980fa52f1940a379da039f1373..38878865f916655a4227a7a2539aed2dda03ca21 100644 (file)
@@ -3346,7 +3346,7 @@ static int octeon_usb_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                        break;
                case USB_PORT_FEAT_INDICATOR:
                        dev_dbg(dev, " INDICATOR\n");
-                       /* Port inidicator not supported */
+                       /* Port indicator not supported */
                        break;
                case USB_PORT_FEAT_C_CONNECTION:
                        dev_dbg(dev, " C_CONNECTION\n");
index 21a6f6c55e079e5ea585205ba795ce926d26e0a4..974bc0ab6168e3bdbce355ab2f80472121b2d338 100644 (file)
@@ -152,7 +152,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd)
 
                        rh &= ~RH_A_NOCP;
 
-                       /* gpio9 for overcurrent detction */
+                       /* gpio9 for overcurrent detection */
                        omap_cfg_reg(W8_1610_GPIO9);
 
                        /* for paranoia's sake:  disable USB.PUEN */
index 3f871fe62b90f23e217c79a63f7b505dc49d7195..9b665de568bc6ec66ae05b0dbafa4eda7659576d 100644 (file)
@@ -885,7 +885,7 @@ static int oxu_buf_alloc(struct oxu_hcd *oxu, struct ehci_qtd *qtd, int len)
        int a_blocks;   /* blocks allocated */
        int i, j;
 
-       /* Don't allocte bigger than supported */
+       /* Don't allocate bigger than supported */
        if (len > BUFFER_SIZE * BUFFER_NUM) {
                oxu_err(oxu, "buffer too big (%d)\n", len);
                return -ENOMEM;
index 6576515a29cd370fc6e55129695e57a020fa11e9..34524505bdefc283b1ba2f0ee038a61f3f8d7104 100644 (file)
@@ -759,7 +759,7 @@ static void enable_r8a66597_pipe_dma(struct r8a66597 *r8a66597,
        struct r8a66597_pipe_info *info = &pipe->info;
        unsigned short mbw = mbw_value(r8a66597);
 
-       /* pipe dma is only for external controlles */
+       /* pipe dma is only for external controllers */
        if (r8a66597->pdata->on_chip)
                return;
 
index d27c30ac17fd43f61740b5bb5df19a1c6d007e1f..7bae67ddf29f04bab33263cd9490e481803e5af2 100644 (file)
@@ -946,9 +946,9 @@ static int xhci_handle_usb2_port_link_resume(struct xhci_port *port,
        }
        /* did port event handler already start resume timing? */
        if (!port->resume_timestamp) {
-               /* If not, maybe we are in a host initated resume? */
+               /* If not, maybe we are in a host initiated resume? */
                if (test_bit(wIndex, &bus_state->resuming_ports)) {
-                       /* Host initated resume doesn't time the resume
+                       /* Host initiated resume doesn't time the resume
                         * signalling using resume_done[].
                         * It manually sets RESUME state, sleeps 20ms
                         * and sets U0 state. This should probably be
@@ -1924,7 +1924,7 @@ int xhci_bus_resume(struct usb_hcd *hcd)
                                /* resume already initiated */
                                break;
                        default:
-                               /* not in a resumeable state, ignore it */
+                               /* not in a resumable state, ignore it */
                                clear_bit(port_index,
                                          &bus_state->bus_suspended);
                                break;
index 4d664ba53fe9a45a7ed5bb36624a905497267f89..b2950c35c7400821621827879afa616c0385000a 100644 (file)
@@ -426,7 +426,7 @@ static void xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci,
        }
 }
 
-/* Must be called with xhci->lock held, releases and aquires lock back */
+/* Must be called with xhci->lock held, releases and acquires lock back */
 static int xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags)
 {
        struct xhci_segment *new_seg    = xhci->cmd_ring->deq_seg;
@@ -799,7 +799,7 @@ static void xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci,
 
        dma_unmap_single(dev, seg->bounce_dma, ring->bounce_buf_len,
                         DMA_FROM_DEVICE);
-       /* for in tranfers we need to copy the data from bounce to sg */
+       /* for in transfers we need to copy the data from bounce to sg */
        if (urb->num_sgs) {
                len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf,
                                           seg->bounce_len, seg->bounce_offs);
@@ -2442,7 +2442,7 @@ static int process_isoc_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep,
                sum_trbs_for_length = true;
                break;
        case COMP_STOPPED_SHORT_PACKET:
-               /* field normally containing residue now contains tranferred */
+               /* field normally containing residue now contains transferred */
                frame->status = short_framestatus;
                requested = remaining;
                break;