From 1002ca5ed9205b0266ebe07aac3b631021196a16 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 12 May 2018 11:29:24 -0700 Subject: [PATCH] qcacmn: hif: Fix misspellings Address the following issues in the hif folder: CHECK: 'controll' may be misspelled - perhaps 'control'? CHECK: 'Implemenation' may be misspelled - perhaps 'Implementation'? CHECK: 'intialize' may be misspelled - perhaps 'initialize'? CHECK: 'occuring' may be misspelled - perhaps 'occurring'? CHECK: 'reseting' may be misspelled - perhaps 'resetting'? CHECK: 'stuct' may be misspelled - perhaps 'struct'? CHECK: 'substract' may be misspelled - perhaps 'subtract'? CHECK: 'successfull' may be misspelled - perhaps 'successful'? CHECK: 'syncronize' may be misspelled - perhaps 'synchronize'? CHECK: 'transfered' may be misspelled - perhaps 'transferred'? CHECK: 'untill' may be misspelled - perhaps 'until'? CHECK: 'wirte' may be misspelled - perhaps 'write'? Change-Id: I80280ecb8ac8b0270a32add74429a8df89bedbcb CRs-Fixed: 2241576 --- hif/src/ce/ce_api.h | 8 ++++---- hif/src/ce/ce_internal.h | 2 +- hif/src/ce/ce_main.c | 4 ++-- hif/src/ce/ce_service.c | 2 +- hif/src/ce/ce_tasklet.c | 2 +- hif/src/dispatcher/dummy.c | 4 ++-- hif/src/dispatcher/multibus.c | 6 +++--- hif/src/pcie/if_pci.c | 12 ++++++------ hif/src/pcie/if_pci.h | 4 ++-- hif/src/sdio/hif_sdio_send.c | 2 +- hif/src/sdio/native_sdio/src/hif.c | 2 +- hif/src/usb/hif_usb.c | 2 +- hif/src/usb/if_usb.h | 2 +- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/hif/src/ce/ce_api.h b/hif/src/ce/ce_api.h index d4641ad606..2b50d0c9cb 100644 --- a/hif/src/ce/ce_api.h +++ b/hif/src/ce/ce_api.h @@ -194,7 +194,7 @@ int ce_sendlist_buf_add(struct ce_sendlist *sendlist, * transfer_id - arbitrary ID; reflected to destination * Returns 0 on success; otherwise an error status. * - * Implemenation note: Pushes multiple buffers with Gather to Source ring. + * Implementation note: Pushes multiple buffers with Gather to Source ring. */ int ce_sendlist_send(struct CE_handle *copyeng, void *per_transfer_send_context, @@ -211,7 +211,7 @@ int ce_sendlist_send(struct CE_handle *copyeng, * buffer - address of buffer in CE space * Returns 0 on success; otherwise an error status. * - * Implemenation note: Pushes a buffer to Dest ring. + * Implementation note: Pushes a buffer to Dest ring. */ int ce_recv_buf_enqueue(struct CE_handle *copyeng, void *per_transfer_recv_context, @@ -308,7 +308,7 @@ unsigned int ce_recv_entries_done(struct CE_handle *copyeng); * in a recv_cb function when processing buf_lists * in a recv_cb function in order to mitigate recv_cb's. * - * Implemenation note: Pops buffer from Dest ring. + * Implementation note: Pops buffer from Dest ring. */ int ce_completed_recv_next(struct CE_handle *copyeng, void **per_CE_contextp, @@ -394,7 +394,7 @@ bool ce_get_rx_pending(struct hif_softc *scn); #define CE_ATTR_DIAG 0x20 /* Diag CE */ /** - * stuct CE_attr - Attributes of an instance of a Copy Engine + * struct CE_attr - Attributes of an instance of a Copy Engine * @flags: CE_ATTR_* values * @priority: TBD * @src_nentries: #entries in source ring - Must be a power of 2 diff --git a/hif/src/ce/ce_internal.h b/hif/src/ce/ce_internal.h index 828840b890..ad147441f5 100644 --- a/hif/src/ce/ce_internal.h +++ b/hif/src/ce/ce_internal.h @@ -393,7 +393,7 @@ union ce_desc { * @FAST_TX_WRITE_INDEX_UPDATE: event recorded before updating the write index * of the TX ring in fastpath * @FAST_TX_WRITE_INDEX_SOFTWARE_UPDATE: recored when dropping a write to - * the wirte index in fastpath + * the write index in fastpath * @FAST_TX_SOFTWARE_INDEX_UPDATE: event recorded before updating the software * index of the RX ring in fastpath * @HIF_IRQ_EVENT: event recorded in the irq before scheduling the bh diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index c42687a1d4..8a197fe238 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -996,7 +996,7 @@ int hif_ce_bus_late_resume(struct hif_softc *scn) * ce_oom_recovery() - try to recover rx ce from oom condition * @context: CE_state of the CE with oom rx ring * - * the executing work Will continue to be rescheduled untill + * the executing work Will continue to be rescheduled until * at least 1 descriptor is successfully posted to the rx ring. * * return: none @@ -1459,7 +1459,7 @@ void *hif_get_ce_handle(struct hif_opaque_softc *hif_ctx, int id) * the TX CE has been processed completely. * * This is called while dismantling CE structures. No other thread - * should be using these structures while dismantling is occuring + * should be using these structures while dismantling is occurring * therfore no locking is needed. * * Return: none diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index c408b3e5fc..f253388a47 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -158,7 +158,7 @@ static void hif_ce_desc_data_record(struct hif_ce_desc_event *event, int len) /** * hif_record_ce_desc_event() - record ce descriptor events * @scn: hif_softc - * @ce_id: which ce is the event occuring on + * @ce_id: which ce is the event occurring on * @type: what happened * @descriptor: pointer to the descriptor posted/completed * @memory: virtual address of buffer related to the descriptor diff --git a/hif/src/ce/ce_tasklet.c b/hif/src/ce/ce_tasklet.c index 8b2374cb48..937616b219 100644 --- a/hif/src/ce/ce_tasklet.c +++ b/hif/src/ce/ce_tasklet.c @@ -229,7 +229,7 @@ void ce_tasklet_kill(struct hif_softc *scn) #define HIF_CE_DRAIN_WAIT_CNT 20 /** - * hif_drain_tasklets(): wait untill no tasklet is pending + * hif_drain_tasklets(): wait until no tasklet is pending * @scn: hif context * * Let running tasklets clear pending trafic. diff --git a/hif/src/dispatcher/dummy.c b/hif/src/dispatcher/dummy.c index c2590bb421..beb4cfb03c 100644 --- a/hif/src/dispatcher/dummy.c +++ b/hif/src/dispatcher/dummy.c @@ -78,7 +78,7 @@ int hif_dummy_bus_resume(struct hif_softc *hif_ctx) * hif_dummy_suspend_noirq() - suspend the bus * @hif_ctx: hif context * - * dummy for busses that don't need to syncronize + * dummy for busses that don't need to synchronize * with interrupt disable. * * Return: 0 for success and non-zero for failure @@ -92,7 +92,7 @@ int hif_dummy_bus_suspend_noirq(struct hif_softc *hif_ctx) * hif_dummy_resume_noirq() - resume the bus * @hif_ctx: hif context * - * dummy for busses that don't need to syncronize + * dummy for busses that don't need to synchronize * with interrupt disable. * * Return: 0 for success and non-zero for failure diff --git a/hif/src/dispatcher/multibus.c b/hif/src/dispatcher/multibus.c index da1666cbf4..bf2b308bc9 100644 --- a/hif/src/dispatcher/multibus.c +++ b/hif/src/dispatcher/multibus.c @@ -34,11 +34,11 @@ #include "qdf_module.h" /** - * hif_intialize_default_ops() - intializes default operations values + * hif_initialize_default_ops() - initializes default operations values * * bus specific features should assign their dummy implementations here. */ -static void hif_intialize_default_ops(struct hif_softc *hif_sc) +static void hif_initialize_default_ops(struct hif_softc *hif_sc) { struct hif_bus_ops *bus_ops = &hif_sc->bus_ops; @@ -121,7 +121,7 @@ QDF_STATUS hif_bus_open(struct hif_softc *hif_sc, { QDF_STATUS status = QDF_STATUS_E_INVAL; - hif_intialize_default_ops(hif_sc); + hif_initialize_default_ops(hif_sc); switch (bus_type) { case QDF_BUS_TYPE_PCI: diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index ce1b9f5839..03ee4face8 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -466,7 +466,7 @@ static void hif_pci_device_reset(struct hif_pci_softc *sc) /* CPU warm reset function * Steps: * 1. Disable all pending interrupts - so no pending interrupts on WARM reset - * 2. Clear the FW_INDICATOR_ADDRESS -so Traget CPU intializes FW + * 2. Clear the FW_INDICATOR_ADDRESS -so Traget CPU initializes FW * correctly on WARM reset * 3. Clear TARGET CPU LF timer interrupt * 4. Reset all CEs to clear any pending CE tarnsactions @@ -2657,7 +2657,7 @@ void hif_pci_disable_bus(struct hif_softc *scn) #ifdef FEATURE_RUNTIME_PM /** - * hif_runtime_prevent_linkdown() - prevent or allow a runtime pm from occuring + * hif_runtime_prevent_linkdown() - prevent or allow a runtime pm from occurring * @scn: hif context * @flag: prevent linkdown if true otherwise allow * @@ -2936,7 +2936,7 @@ static void hif_log_runtime_suspend_failure(void *hif_ctx) /** * hif_log_runtime_resume_success() - log a successful runtime resume * - * log a successfull runtime resume + * log a successful runtime resume * mark last busy to prevent immediate runtime suspend */ static void hif_log_runtime_resume_success(void *hif_ctx) @@ -3721,7 +3721,7 @@ end: /** * hif_target_sync() : ensure the target is ready - * @scn: hif controll structure + * @scn: hif control structure * * Informs fw that we plan to use legacy interupts so that * it can begin booting. Ensures that the fw finishes booting @@ -3956,7 +3956,7 @@ void hif_pci_irq_enable(struct hif_softc *scn, int ce_id) void hif_pci_irq_disable(struct hif_softc *scn, int ce_id) { /* For Rome only need to wake up target */ - /* target access is maintained untill interrupts are re-enabled */ + /* target access is maintained until interrupts are re-enabled */ Q_TARGET_ACCESS_BEGIN(scn); } @@ -3976,7 +3976,7 @@ void hif_pm_runtime_get_noresume(struct hif_opaque_softc *hif_ctx) /** * hif_pm_runtime_get() - do a get opperation on the device * - * A get opperation will prevent a runtime suspend untill a + * A get opperation will prevent a runtime suspend until a * corresponding put is done. This api should be used when sending * data. * diff --git a/hif/src/pcie/if_pci.h b/hif/src/pcie/if_pci.h index 9f80a0e6b8..d21f96d03d 100644 --- a/hif/src/pcie/if_pci.h +++ b/hif/src/pcie/if_pci.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -160,7 +160,7 @@ int hif_pci_addr_in_boundary(struct hif_softc *scn, uint32_t offset); /* * There may be some pending tx frames during platform suspend. * Suspend operation should be delayed until those tx frames are - * transfered from the host to target. This macro specifies how + * transferred from the host to target. This macro specifies how * long suspend thread has to sleep before checking pending tx * frame count. */ diff --git a/hif/src/sdio/hif_sdio_send.c b/hif/src/sdio/hif_sdio_send.c index 2f9da42cf8..1ea149480f 100644 --- a/hif/src/sdio/hif_sdio_send.c +++ b/hif/src/sdio/hif_sdio_send.c @@ -118,7 +118,7 @@ QDF_STATUS hif_dev_send_buffer(struct hif_sdio_device *pdev, frag_count = qdf_nbuf_get_num_frags(buf); if (frag_count > 1) { - /* header data length should be total sending length substract + /* header data length should be total sending length subtract * internal data length of netbuf */ head_data_len = sizeof(struct hif_sendContext) + diff --git a/hif/src/sdio/native_sdio/src/hif.c b/hif/src/sdio/native_sdio/src/hif.c index 423cf2b7da..966101b4d0 100644 --- a/hif/src/sdio/native_sdio/src/hif.c +++ b/hif/src/sdio/native_sdio/src/hif.c @@ -1984,7 +1984,7 @@ static QDF_STATUS hif_disable_func(struct hif_sdio_dev *device, * driver to re-enumerate the slot */ AR_DEBUG_PRINTF(ATH_DEBUG_WARN, - ("%s: reseting SDIO card", + ("%s: resetting SDIO card", __func__)); /* sdio_f0_writeb() cannot be used here, this allows access diff --git a/hif/src/usb/hif_usb.c b/hif/src/usb/hif_usb.c index ad0caa731c..1e5cd21103 100644 --- a/hif/src/usb/hif_usb.c +++ b/hif/src/usb/hif_usb.c @@ -145,7 +145,7 @@ static QDF_STATUS hif_send_internal(struct HIF_DEVICE_USB *hif_usb_device, } else if ((frag_count - 1) <= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS) { /* * means have extra fragment buf in skb - * header data length should be total sending length substract + * header data length should be total sending length subtract * internal data length of netbuf * | hif_usb_send_context | fragments except internal buffer | * netbuf->data diff --git a/hif/src/usb/if_usb.h b/hif/src/usb/if_usb.h index fde4d0d531..130e08a418 100644 --- a/hif/src/usb/if_usb.h +++ b/hif/src/usb/if_usb.h @@ -24,7 +24,7 @@ /* * There may be some pending tx frames during platform suspend. * Suspend operation should be delayed until those tx frames are - * transfered from the host to target. This macro specifies how + * transferred from the host to target. This macro specifies how * long suspend thread has to sleep before checking pending tx * frame count. */