Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: host: fix typo in the comment

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>

authored by

Yan Zhen and committed by
Greg Kroah-Hartman
5c667ba7 9852d85e

+12 -12
+2 -2
drivers/usb/host/fhci-sched.c
··· 158 158 struct packet *pkt; 159 159 u8 *data = NULL; 160 160 161 - /* calcalate data address,len and toggle and then add the transaction */ 161 + /* calculate data address,len and toggle and then add the transaction */ 162 162 if (td->toggle == USB_TD_TOGGLE_CARRY) 163 163 td->toggle = ed->toggle_carry; 164 164 ··· 679 679 680 680 DECLARE_TASKLET_OLD(fhci_tasklet, process_done_list); 681 681 682 - /* transfer complted callback */ 682 + /* transfer completed callback */ 683 683 u32 fhci_transfer_confirm_callback(struct fhci_hcd *fhci) 684 684 { 685 685 if (!fhci->process_done_task->state)
+1 -1
drivers/usb/host/octeon-hcd.c
··· 3346 3346 break; 3347 3347 case USB_PORT_FEAT_INDICATOR: 3348 3348 dev_dbg(dev, " INDICATOR\n"); 3349 - /* Port inidicator not supported */ 3349 + /* Port indicator not supported */ 3350 3350 break; 3351 3351 case USB_PORT_FEAT_C_CONNECTION: 3352 3352 dev_dbg(dev, " C_CONNECTION\n");
+1 -1
drivers/usb/host/ohci-omap.c
··· 152 152 153 153 rh &= ~RH_A_NOCP; 154 154 155 - /* gpio9 for overcurrent detction */ 155 + /* gpio9 for overcurrent detection */ 156 156 omap_cfg_reg(W8_1610_GPIO9); 157 157 158 158 /* for paranoia's sake: disable USB.PUEN */
+1 -1
drivers/usb/host/oxu210hp-hcd.c
··· 885 885 int a_blocks; /* blocks allocated */ 886 886 int i, j; 887 887 888 - /* Don't allocte bigger than supported */ 888 + /* Don't allocate bigger than supported */ 889 889 if (len > BUFFER_SIZE * BUFFER_NUM) { 890 890 oxu_err(oxu, "buffer too big (%d)\n", len); 891 891 return -ENOMEM;
+1 -1
drivers/usb/host/r8a66597-hcd.c
··· 759 759 struct r8a66597_pipe_info *info = &pipe->info; 760 760 unsigned short mbw = mbw_value(r8a66597); 761 761 762 - /* pipe dma is only for external controlles */ 762 + /* pipe dma is only for external controllers */ 763 763 if (r8a66597->pdata->on_chip) 764 764 return; 765 765
+3 -3
drivers/usb/host/xhci-hub.c
··· 946 946 } 947 947 /* did port event handler already start resume timing? */ 948 948 if (!port->resume_timestamp) { 949 - /* If not, maybe we are in a host initated resume? */ 949 + /* If not, maybe we are in a host initiated resume? */ 950 950 if (test_bit(wIndex, &bus_state->resuming_ports)) { 951 - /* Host initated resume doesn't time the resume 951 + /* Host initiated resume doesn't time the resume 952 952 * signalling using resume_done[]. 953 953 * It manually sets RESUME state, sleeps 20ms 954 954 * and sets U0 state. This should probably be ··· 1924 1924 /* resume already initiated */ 1925 1925 break; 1926 1926 default: 1927 - /* not in a resumeable state, ignore it */ 1927 + /* not in a resumable state, ignore it */ 1928 1928 clear_bit(port_index, 1929 1929 &bus_state->bus_suspended); 1930 1930 break;
+3 -3
drivers/usb/host/xhci-ring.c
··· 426 426 } 427 427 } 428 428 429 - /* Must be called with xhci->lock held, releases and aquires lock back */ 429 + /* Must be called with xhci->lock held, releases and acquires lock back */ 430 430 static int xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags) 431 431 { 432 432 struct xhci_segment *new_seg = xhci->cmd_ring->deq_seg; ··· 799 799 800 800 dma_unmap_single(dev, seg->bounce_dma, ring->bounce_buf_len, 801 801 DMA_FROM_DEVICE); 802 - /* for in tranfers we need to copy the data from bounce to sg */ 802 + /* for in transfers we need to copy the data from bounce to sg */ 803 803 if (urb->num_sgs) { 804 804 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, 805 805 seg->bounce_len, seg->bounce_offs); ··· 2442 2442 sum_trbs_for_length = true; 2443 2443 break; 2444 2444 case COMP_STOPPED_SHORT_PACKET: 2445 - /* field normally containing residue now contains tranferred */ 2445 + /* field normally containing residue now contains transferred */ 2446 2446 frame->status = short_framestatus; 2447 2447 requested = remaining; 2448 2448 break;