Commit 0142919c authored by Justin P. Mattock's avatar Justin P. Mattock Committed by Greg Kroah-Hartman

staging: tidspbridge: Fix typos.

Signed-off-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8cb05f4b
...@@ -219,7 +219,7 @@ static const struct map_l4_peripheral l4_peripheral_table[] = { ...@@ -219,7 +219,7 @@ static const struct map_l4_peripheral l4_peripheral_table[] = {
/* MBX_PM_MAX_RESOURCES: CORE 2 Clock Resources. */ /* MBX_PM_MAX_RESOURCES: CORE 2 Clock Resources. */
#define MBX_CORE2_RESOURCES 1 #define MBX_CORE2_RESOURCES 1
/* MBX_PM_MAX_RESOURCES: TOTAL Clock Reosurces. */ /* MBX_PM_MAX_RESOURCES: TOTAL Clock Resources. */
#define MBX_PM_MAX_RESOURCES 11 #define MBX_PM_MAX_RESOURCES 11
/* Power Management Commands */ /* Power Management Commands */
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* The lower edge functions must be implemented by the Bridge driver * The lower edge functions must be implemented by the Bridge driver
* writer, and are declared in chnl_sm.h. * writer, and are declared in chnl_sm.h.
* *
* Care is taken in this code to prevent simulataneous access to channel * Care is taken in this code to prevent simultaneous access to channel
* queues from * queues from
* 1. Threads. * 1. Threads.
* 2. io_dpc(), scheduled from the io_isr() as an event. * 2. io_dpc(), scheduled from the io_isr() as an event.
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* Channel Invariant: * Channel Invariant:
* There is an important invariant condition which must be maintained per * There is an important invariant condition which must be maintained per
* channel outside of bridge_chnl_get_ioc() and IO_Dispatch(), violation of * channel outside of bridge_chnl_get_ioc() and IO_Dispatch(), violation of
* which may cause timeouts and/or failure offunction sync_wait_on_event. * which may cause timeouts and/or failure of function sync_wait_on_event.
* This invariant condition is: * This invariant condition is:
* *
* list_empty(&pchnl->io_completions) ==> pchnl->sync_event is reset * list_empty(&pchnl->io_completions) ==> pchnl->sync_event is reset
...@@ -602,7 +602,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout, ...@@ -602,7 +602,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
/* Since DSPStream_Reclaim() does not take a timeout /* Since DSPStream_Reclaim() does not take a timeout
* parameter, we pass the stream's timeout value to * parameter, we pass the stream's timeout value to
* bridge_chnl_get_ioc. We cannot determine whether or not * bridge_chnl_get_ioc. We cannot determine whether or not
* we have waited in User mode. Since the stream's timeout * we have waited in user mode. Since the stream's timeout
* value may be non-zero, we still have to set the event. * value may be non-zero, we still have to set the event.
* Therefore, this optimization is taken out. * Therefore, this optimization is taken out.
* *
......
...@@ -837,7 +837,7 @@ static void io_dispatch_pm(struct io_mgr *pio_mgr) ...@@ -837,7 +837,7 @@ static void io_dispatch_pm(struct io_mgr *pio_mgr)
/* /*
* ======== io_dpc ======== * ======== io_dpc ========
* Deferred procedure call for shared memory channel driver ISR. Carries * Deferred procedure call for shared memory channel driver ISR. Carries
* out the dispatch of I/O as a non-preemptible event.It can only be * out the dispatch of I/O as a non-preemptible event. It can only be
* pre-empted by an ISR. * pre-empted by an ISR.
*/ */
void io_dpc(unsigned long ref_data) void io_dpc(unsigned long ref_data)
...@@ -877,7 +877,7 @@ void io_dpc(unsigned long ref_data) ...@@ -877,7 +877,7 @@ void io_dpc(unsigned long ref_data)
pio_mgr->intr_val); pio_mgr->intr_val);
} }
} }
/* Proc-copy chanel dispatch */ /* Proc-copy channel dispatch */
input_chnl(pio_mgr, NULL, IO_SERVICE); input_chnl(pio_mgr, NULL, IO_SERVICE);
output_chnl(pio_mgr, NULL, IO_SERVICE); output_chnl(pio_mgr, NULL, IO_SERVICE);
...@@ -938,7 +938,7 @@ int io_mbox_msg(struct notifier_block *self, unsigned long len, void *msg) ...@@ -938,7 +938,7 @@ int io_mbox_msg(struct notifier_block *self, unsigned long len, void *msg)
/* /*
* ======== io_request_chnl ======== * ======== io_request_chnl ========
* Purpose: * Purpose:
* Request chanenel I/O from the DSP. Sets flags in shared memory, then * Request channel I/O from the DSP. Sets flags in shared memory, then
* interrupts the DSP. * interrupts the DSP.
*/ */
void io_request_chnl(struct io_mgr *io_manager, struct chnl_object *pchnl, void io_request_chnl(struct io_mgr *io_manager, struct chnl_object *pchnl,
...@@ -2208,7 +2208,7 @@ void dump_dl_modules(struct bridge_dev_context *bridge_context) ...@@ -2208,7 +2208,7 @@ void dump_dl_modules(struct bridge_dev_context *bridge_context)
module_struct->num_sects); module_struct->num_sects);
/* /*
* The section name strings start immedialty following * The section name strings start immediately following
* the array of dll_sect structures. * the array of dll_sect structures.
*/ */
sect_str = (char *) &module_struct-> sect_str = (char *) &module_struct->
......
...@@ -49,7 +49,7 @@ void sync_set_event(struct sync_object *event) ...@@ -49,7 +49,7 @@ void sync_set_event(struct sync_object *event)
* @timeout timeout on waiting for the evetns. * @timeout timeout on waiting for the evetns.
* @pu_index index of the event set. * @pu_index index of the event set.
* *
* This functios will wait until any of the array element is set or until * These functions will wait until any of the array element is set or until
* timeout. In case of success the function will return 0 and * timeout. In case of success the function will return 0 and
* @pu_index will store the index of the array element set or in case * @pu_index will store the index of the array element set or in case
* of timeout the function will return -ETIME or in case of * of timeout the function will return -ETIME or in case of
......
...@@ -328,7 +328,7 @@ static int bridge_brd_read(struct bridge_dev_context *dev_ctxt, ...@@ -328,7 +328,7 @@ static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,
ul_num_bytes, mem_type); ul_num_bytes, mem_type);
return status; return status;
} }
/* copy the data from DSP memory, */ /* copy the data from DSP memory */
memcpy(host_buff, (void *)(dsp_base_addr + offset), ul_num_bytes); memcpy(host_buff, (void *)(dsp_base_addr + offset), ul_num_bytes);
return status; return status;
} }
...@@ -1745,7 +1745,7 @@ static int mem_map_vmalloc(struct bridge_dev_context *dev_context, ...@@ -1745,7 +1745,7 @@ static int mem_map_vmalloc(struct bridge_dev_context *dev_context,
pa_next = page_to_phys(page[0]); pa_next = page_to_phys(page[0]);
while (!status && (i < num_pages)) { while (!status && (i < num_pages)) {
/* /*
* Reuse pa_next from the previous iteraion to avoid * Reuse pa_next from the previous iteration to avoid
* an extra va2pa call * an extra va2pa call
*/ */
pa_curr = pa_next; pa_curr = pa_next;
......
...@@ -356,7 +356,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs) ...@@ -356,7 +356,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs)
dev_dbg(bridge, "OPP: %s IVA in sleep. No message to DSP\n"); dev_dbg(bridge, "OPP: %s IVA in sleep. No message to DSP\n");
return 0; return 0;
} else if ((dev_context->brd_state == BRD_RUNNING)) { } else if ((dev_context->brd_state == BRD_RUNNING)) {
/* Send a prenotificatio to DSP */ /* Send a prenotification to DSP */
dev_dbg(bridge, "OPP: %s sent notification to DSP\n", __func__); dev_dbg(bridge, "OPP: %s sent notification to DSP\n", __func__);
sm_interrupt_dsp(dev_context, MBX_PM_SETPOINT_PRENOTIFY); sm_interrupt_dsp(dev_context, MBX_PM_SETPOINT_PRENOTIFY);
return 0; return 0;
......
...@@ -81,7 +81,7 @@ static u8 priv_h2a(u8 value) ...@@ -81,7 +81,7 @@ static u8 priv_h2a(u8 value)
* Description: Generate a trampoline symbol name (ASCII) using the value * Description: Generate a trampoline symbol name (ASCII) using the value
* of the symbol. This places the new name into the user buffer. * of the symbol. This places the new name into the user buffer.
* The name is fixed in length and of the form: __$dbTR__xxxxxxxx * The name is fixed in length and of the form: __$dbTR__xxxxxxxx
* (where "xxxxxxxx" is the hex value. * (where "xxxxxxxx" is the hex value).
*/ */
static void priv_tramp_sym_gen_name(u32 value, char *dst) static void priv_tramp_sym_gen_name(u32 value, char *dst)
{ {
...@@ -414,7 +414,7 @@ static int priv_tramp_sym_finalize(struct dload_state *dlthis) ...@@ -414,7 +414,7 @@ static int priv_tramp_sym_finalize(struct dload_state *dlthis)
/* Copy the symbol contents into the flat table */ /* Copy the symbol contents into the flat table */
*new_sym = cur_sym->sym_info; *new_sym = cur_sym->sym_info;
/* Now finaize the symbol. If it is in the tramp /* Now finalize the symbol. If it is in the tramp
* section, we need to adjust for the section start. * section, we need to adjust for the section start.
* If it is external then we don't need to adjust at * If it is external then we don't need to adjust at
* all. * all.
...@@ -773,7 +773,7 @@ static int priv_img_pkt_dup(struct dload_state *dlthis, ...@@ -773,7 +773,7 @@ static int priv_img_pkt_dup(struct dload_state *dlthis,
int ret_val = 0; int ret_val = 0;
struct tramp_img_dup_relo *dup_relo = NULL; struct tramp_img_dup_relo *dup_relo = NULL;
/* Determinne if this image packet is already being tracked in the /* Determine if this image packet is already being tracked in the
dup list for other trampolines. */ dup list for other trampolines. */
dup_pkt = priv_dup_find(dlthis, secnn, image_offset); dup_pkt = priv_dup_find(dlthis, secnn, image_offset);
...@@ -998,7 +998,7 @@ int dload_tramp_generate(struct dload_state *dlthis, s16 secnn, ...@@ -998,7 +998,7 @@ int dload_tramp_generate(struct dload_state *dlthis, s16 secnn,
/* /*
* Function: dload_tramp_pkt_update * Function: dload_tramp_pkt_update
* Description: Update the duplicate copy of this image packet, which the * Description: Update the duplicate copy of this image packet, which the
* trampoline layer is already tracking. This is call is critical * trampoline layer is already tracking. This call is critical
* to make if trampolines were generated anywhere within the * to make if trampolines were generated anywhere within the
* packet and first pass relo continued on the remainder. The * packet and first pass relo continued on the remainder. The
* trampoline layer needs the updates image data so when 2nd * trampoline layer needs the updates image data so when 2nd
......
...@@ -61,7 +61,7 @@ enum hw_mmu_page_size_t { ...@@ -61,7 +61,7 @@ enum hw_mmu_page_size_t {
* Type : hw_status * Type : hw_status
* Description : 0 -- No errors occurred * Description : 0 -- No errors occurred
* RET_BAD_NULL_PARAM -- A Pointer * RET_BAD_NULL_PARAM -- A Pointer
* Paramater was set to NULL * Parameter was set to NULL
* *
* PURPOSE: : Flush the TLB entry pointed by the * PURPOSE: : Flush the TLB entry pointed by the
* lock counter register * lock counter register
...@@ -103,7 +103,7 @@ static hw_status mmu_flush_entry(const void __iomem *base_address); ...@@ -103,7 +103,7 @@ static hw_status mmu_flush_entry(const void __iomem *base_address);
* *
* Type : hw_status * Type : hw_status
* Description : 0 -- No errors occurred * Description : 0 -- No errors occurred
* RET_BAD_NULL_PARAM -- A Pointer Paramater * RET_BAD_NULL_PARAM -- A Pointer Parameter
* was set to NULL * was set to NULL
* RET_PARAM_OUT_OF_RANGE -- Input Parameter out * RET_PARAM_OUT_OF_RANGE -- Input Parameter out
* of Range * of Range
...@@ -148,7 +148,7 @@ static hw_status mmu_set_cam_entry(const void __iomem *base_address, ...@@ -148,7 +148,7 @@ static hw_status mmu_set_cam_entry(const void __iomem *base_address,
* *
* Type : hw_status * Type : hw_status
* Description : 0 -- No errors occurred * Description : 0 -- No errors occurred
* RET_BAD_NULL_PARAM -- A Pointer Paramater * RET_BAD_NULL_PARAM -- A Pointer Parameter
* was set to NULL * was set to NULL
* RET_PARAM_OUT_OF_RANGE -- Input Parameter * RET_PARAM_OUT_OF_RANGE -- Input Parameter
* out of Range * out of Range
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#define BRDIOCTL_POSTSCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0xA) #define BRDIOCTL_POSTSCALE_NOTIFY (BRDIOCTL_PWRCONTROL + 0xA)
#define BRDIOCTL_CONSTRAINT_REQUEST (BRDIOCTL_PWRCONTROL + 0xB) #define BRDIOCTL_CONSTRAINT_REQUEST (BRDIOCTL_PWRCONTROL + 0xB)
/* Number of actual DSP-MMU TLB entrries */ /* Number of actual DSP-MMU TLB entries */
#define BRDIOCTL_NUMOFMMUTLB 32 #define BRDIOCTL_NUMOFMMUTLB 32
struct bridge_ioctl_extproc { struct bridge_ioctl_extproc {
......
...@@ -220,7 +220,7 @@ extern int node_create_mgr(struct node_mgr **node_man, ...@@ -220,7 +220,7 @@ extern int node_create_mgr(struct node_mgr **node_man,
* Parameters: * Parameters:
* noderes: Node resource info handle returned from * noderes: Node resource info handle returned from
* node_allocate(). * node_allocate().
* pr_ctxt: Poninter to process context data. * pr_ctxt: Pointer to process context data.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Invalid hnode. * -EFAULT: Invalid hnode.
......
...@@ -263,7 +263,7 @@ extern int proc_get_processor_id(void *proc, u32 * proc_id); ...@@ -263,7 +263,7 @@ extern int proc_get_processor_id(void *proc, u32 * proc_id);
* Returns: * Returns:
* 0 : Success. * 0 : Success.
* -EFAULT : Invalid processor handle. * -EFAULT : Invalid processor handle.
* -EPERM : General failure while retireving processor trace * -EPERM : General failure while retrieving processor trace
* Buffer. * Buffer.
* Requires: * Requires:
* pbuf is not NULL * pbuf is not NULL
......
...@@ -203,7 +203,7 @@ extern int strm_issue(struct strm_object *stream_obj, u8 * pbuf, ...@@ -203,7 +203,7 @@ extern int strm_issue(struct strm_object *stream_obj, u8 * pbuf,
* index: Stream index. * index: Stream index.
* pattr: Pointer to structure containing attributes to be * pattr: Pointer to structure containing attributes to be
* applied to stream. Cannot be NULL. * applied to stream. Cannot be NULL.
* strmres: Location to store stream resuorce info handle on output. * strmres: Location to store stream resource info handle on output.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Invalid hnode. * -EFAULT: Invalid hnode.
......
...@@ -78,7 +78,7 @@ void sync_set_event(struct sync_object *event); ...@@ -78,7 +78,7 @@ void sync_set_event(struct sync_object *event);
* @event: events to wait for it. * @event: events to wait for it.
* @timeout timeout on waiting for the evetn. * @timeout timeout on waiting for the evetn.
* *
* This functios will wait until @event is set or until timeout. In case of * This function will wait until @event is set or until timeout. In case of
* success the function will return 0 and * success the function will return 0 and
* in case of timeout the function will return -ETIME * in case of timeout the function will return -ETIME
* in case of signal the function will return -ERESTARTSYS * in case of signal the function will return -ERESTARTSYS
...@@ -106,7 +106,7 @@ static inline int sync_wait_on_event(struct sync_object *event, ...@@ -106,7 +106,7 @@ static inline int sync_wait_on_event(struct sync_object *event,
* @timeout timeout on waiting for the evetns. * @timeout timeout on waiting for the evetns.
* @pu_index index of the event set. * @pu_index index of the event set.
* *
* This functios will wait until any of the array element is set or until * This function will wait until any of the array element is set or until
* timeout. In case of success the function will return 0 and * timeout. In case of success the function will return 0 and
* @pu_index will store the index of the array element set and in case * @pu_index will store the index of the array element set and in case
* of timeout the function will return -ETIME. * of timeout the function will return -ETIME.
......
...@@ -463,7 +463,7 @@ int dcd_get_object_def(struct dcd_manager *hdcd_mgr, ...@@ -463,7 +463,7 @@ int dcd_get_object_def(struct dcd_manager *hdcd_mgr,
status = cod_read_section(lib, sz_sect_name, psz_coff_buf, ul_len); status = cod_read_section(lib, sz_sect_name, psz_coff_buf, ul_len);
#endif #endif
if (!status) { if (!status) {
/* Compres DSP buffer to conform to PC format. */ /* Compress DSP buffer to conform to PC format. */
if (strstr(dcd_key->path, "iva") == NULL) { if (strstr(dcd_key->path, "iva") == NULL) {
compress_buf(psz_coff_buf, ul_len, DSPWORDSIZE); compress_buf(psz_coff_buf, ul_len, DSPWORDSIZE);
} else { } else {
......
...@@ -72,7 +72,7 @@ u32 dsp_init(u32 *init_status) ...@@ -72,7 +72,7 @@ u32 dsp_init(u32 *init_status)
/* Unwind whatever was loaded */ /* Unwind whatever was loaded */
if (status) { if (status) {
/* irrespective of the status of dev_remove_device we conitinue /* irrespective of the status of dev_remove_device we continue
* unloading. Get the Driver Object iterate through and remove. * unloading. Get the Driver Object iterate through and remove.
* Reset the status to E_FAIL to avoid going through * Reset the status to E_FAIL to avoid going through
* api_init_complete2. */ * api_init_complete2. */
...@@ -92,7 +92,7 @@ u32 dsp_init(u32 *init_status) ...@@ -92,7 +92,7 @@ u32 dsp_init(u32 *init_status)
func_cont: func_cont:
/* Attempt to Start the Board */ /* Attempt to Start the Board */
if (!status) { if (!status) {
/* BRD_AutoStart could fail if the dsp execuetable is not the /* BRD_AutoStart could fail if the dsp executable is not the
* correct one. We should not propagate that error * correct one. We should not propagate that error
* into the device loader. */ * into the device loader. */
(void)api_init_complete2(); (void)api_init_complete2();
......
...@@ -262,8 +262,8 @@ int mgr_enum_processor_info(u32 processor_id, ...@@ -262,8 +262,8 @@ int mgr_enum_processor_info(u32 processor_id,
IVAPROCTYPE_ARM7) IVAPROCTYPE_ARM7)
proc_detect = true; proc_detect = true;
} }
/* User applciatiuons aonly check for chip type, so /* User applications only check for chip type, so
* this clumsy overwrite */ * this is a clumsy overwrite */
processor_info->processor_type = DSPTYPE64; processor_info->processor_type = DSPTYPE64;
} else { } else {
dev_dbg(bridge, "%s: Failed to get DCD processor info " dev_dbg(bridge, "%s: Failed to get DCD processor info "
......
...@@ -898,7 +898,7 @@ static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info, ...@@ -898,7 +898,7 @@ static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info,
nldr_obj->ovly_table[i].execute_sects++; nldr_obj->ovly_table[i].execute_sects++;
} else { } else {
/* Put in "other" sectins */ /* Put in "other" sections */
status = status =
add_ovly_sect(nldr_obj, add_ovly_sect(nldr_obj,
&nldr_obj-> &nldr_obj->
......
...@@ -1613,7 +1613,7 @@ int node_get_attr(struct node_object *hnode, ...@@ -1613,7 +1613,7 @@ int node_get_attr(struct node_object *hnode,
return -EFAULT; return -EFAULT;
hnode_mgr = hnode->node_mgr; hnode_mgr = hnode->node_mgr;
/* Enter hnode_mgr critical section (since we're accessing /* Enter hnode_mgr critical section since we're accessing
* data that could be changed by node_change_priority() and * data that could be changed by node_change_priority() and
* node_connect(). */ * node_connect(). */
mutex_lock(&hnode_mgr->node_mgr_lock); mutex_lock(&hnode_mgr->node_mgr_lock);
......
...@@ -300,7 +300,7 @@ proc_attach(u32 processor_id, ...@@ -300,7 +300,7 @@ proc_attach(u32 processor_id,
if (status) if (status)
goto func_end; goto func_end;
/* If we made it this far, create the Proceesor object: */ /* If we made it this far, create the Processor object: */
p_proc_object = kzalloc(sizeof(struct proc_object), GFP_KERNEL); p_proc_object = kzalloc(sizeof(struct proc_object), GFP_KERNEL);
/* Fill out the Processor Object: */ /* Fill out the Processor Object: */
if (p_proc_object == NULL) { if (p_proc_object == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment