From: Dotan B. <do...@gm...> - 2009-12-14 19:23:27
|
(I'm attaching the patch too, since i know that my mail client replace tabs with spaces; i need to take care of it...) Fix spelling typos. Signed-off-by: Dotan Barak <do...@gm...> --- Index: mvsas_tgt/mv_tgt.c =================================================================== --- mvsas_tgt/mv_tgt.c (revision 1390) +++ mvsas_tgt/mv_tgt.c (working copy) @@ -759,7 +759,7 @@ TRACE_ENTRY(); - TRACE(TRACE_SCSI, "xmit_respons scmd[0x%p] tag=%lld, sg_cnt=%d", + TRACE(TRACE_SCSI, "xmit_response scmd[0x%p] tag=%lld, sg_cnt=%d", scst_cmd, scst_cmd_get_tag(scst_cmd), scst_cmd->sg_cnt); #ifdef DEBUG_WORK_IN_THREAD @@ -1174,7 +1174,7 @@ if (slot->slot_scst_cmd) { if (!slot->open_frame) { - TRACE_DBG("Found recevied command[%p]" + TRACE_DBG("Found received command[%p]" "but no open frame.", slot->slot_scst_cmd); sBUG_ON(!slot->open_frame); goto out; @@ -1452,12 +1452,12 @@ break; } if (n == mvi->chip->n_phy) - mv_dprintk("Port attatch sas address error\n"); + mv_dprintk("Port attach sas address error\n"); } #endif if (n == mvi->chip->n_phy) { - mv_dprintk("Port attatch sas address error\n"); + mv_dprintk("Port attach sas address error\n"); return NULL; } @@ -1665,7 +1665,7 @@ sess = mvst_find_sess_by_lid(tgt, initiator_sas_addr); if (sess == NULL) { TRACE(TRACE_MGMT, "mvsttgt(%ld): task mgmt fn 0x%x for " - "non-existant session", mvi->instance, + "non-existent session", mvi->instance, cmd->save_task_iu.task_fun); res = -EFAULT; goto out; @@ -1773,7 +1773,7 @@ for (j = 0; j < mvi->chip->n_phy; j++) { if (mvi->phy[j].phy_mode) { /* enable phy */ - mv_printk("Reset phy[%d] to notify iniator\n", + mv_printk("Reset phy[%d] to notify initiator\n", j+mvi->chip->n_phy*i); MVS_CHIP_DISP->phy_enable(mvi, j); } @@ -1992,14 +1992,14 @@ } if (!slot->open_frame) { - TRACE_DBG("Found recevied command[%p] but no open frame.", + TRACE_DBG("Found received command[%p] but no open frame.", slot->slot_scst_cmd); rc = -1; goto out; } if (!slot->slot_tgt_port) { - mv_printk("Found recevied command[%p]" + mv_printk("Found received command[%p]" "but no related tgt port.\n", slot->slot_scst_cmd); rc = -1; @@ -2008,7 +2008,7 @@ } /* else if(slot->slot_tgt_port->port_attr == MVST_INIT_PORT){ - mv_dprintk("Found recevied command[%p] but not set + mv_dprintk("Found received command[%p] but not set as tgt port[0x%x].\n", slot->slot_scst_cmd, slot->slot_tgt_port->port_attr); rc = -1; @@ -2020,7 +2020,7 @@ (ssp_hdr->frame_type != SSP_TASK) && (ssp_hdr->frame_type != SSP_DATA) /* do we need ? */) { PRINT_ERROR("mvst tgt(%ld): Received command 0x%x " - "is not intiator command", mvi->instance, + "is not initiator command", mvi->instance, ssp_hdr->frame_type); rc = -1; goto out; @@ -2221,7 +2221,7 @@ if (id == mvi->chip->n_phy) { MVS_CHIP_DISP->disable_target_mode(mvi, phyid); msleep(100); - mv_printk("reset PHY[%d] to notify iniator\n", phyid); + mv_printk("reset PHY[%d] to notify initiator\n", phyid); MVS_CHIP_DISP->phy_reset(mvi, phyid, 0); phy = &mvi->phy[phyid]; phy->phy_mode = 0; @@ -2249,7 +2249,7 @@ if (mvi->phy[id].dev_sas_addr == phy->dev_sas_addr) { MVS_CHIP_DISP->disable_target_mode(mvi, id); msleep(100); - mv_printk("reset PHY[%d] to notify iniator\n", id); + mv_printk("reset PHY[%d] to notify initiator\n", id); MVS_CHIP_DISP->phy_reset(mvi, id, 0); phy = &mvi->phy[id]; phy->phy_mode = 0; Index: mvsas_tgt/mv_tgt.h =================================================================== --- mvsas_tgt/mv_tgt.h (revision 1390) +++ mvsas_tgt/mv_tgt.h (working copy) @@ -481,7 +481,7 @@ }; /* - * Equivilant to IT Nexus (Initiator-Target) + * Equivalent to IT Nexus (Initiator-Target) */ struct mvst_sess { struct list_head sess_entry; @@ -562,7 +562,7 @@ unsigned int tgt_enable_64bit_addr:1; wait_queue_head_t waitQ; int notify_ack_expected; - /* Count of sessions refering q2t_tgt, protected by hardware_lock */ + /* Count of sessions referring q2t_tgt, protected by hardware_lock */ int sess_count; struct list_head sess_list; }; Index: mvsas_tgt/ChangeLog =================================================================== --- mvsas_tgt/ChangeLog (revision 1390) +++ mvsas_tgt/ChangeLog (working copy) @@ -1,6 +1,6 @@ Summary of changes between versions 0.8.4 and 0.8.3 - Fixed issue with working on big endian platform. - - Adjust code of supporting hardware feature accoring to chip type. + - Adjust code of supporting hardware feature according to chip type. - Add supporting Vanir B0 chip. ---------------------------------------------------- Summary of changes between versions 0.8.3 and 0.8.2 @@ -16,7 +16,7 @@ ---------------------------------------------------- Summary of changes between versions 0.8.1 and 0.7.10 - Fixed issue -- Detecting SATA disk with hotplug in. - - Enhance error hanlding. + - Enhance error handling. ---------------------------------------------------- Summary of changes between versions 0.7.10 and 0.7.9 - Fixed issue -- System hang when stress test with SATA disk. Index: mvsas_tgt/mv_64xx.c =================================================================== --- mvsas_tgt/mv_64xx.c (revision 1390) +++ mvsas_tgt/mv_64xx.c (working copy) @@ -374,7 +374,7 @@ tmp = mr32(MVS_PCS); tmp |= PCS_CMD_RST; mw32(MVS_PCS, tmp); - /* interrupt coalescing may cause missing HW interrput in some case, + /* interrupt coalescing may cause missing HW interrupt in some case, * and the max count is 0x1ff, while our max slot is 0x200, * it will make count 0. */ Index: mvsas_tgt/README =================================================================== --- mvsas_tgt/README (revision 1390) +++ mvsas_tgt/README (working copy) @@ -34,11 +34,11 @@ At first, make sure that the link "/lib/modules/`you_kernel_version`/build" points to the source code for your currently running kernel. -Second, patch the libsas and then make libsas module to install in in your +Second, patch the libsas and then make libsas module to install in your currently running kernel, also you should add ATA support for libsas in the -kerenl if you want to support SATA device. +kernel if you want to support SATA device. -The codes have included the SCST code for supportting target, you need patch +The codes have included the SCST code for supporting target, you need patch the kernel use the patch file in ./scst/kernel. To compile the target driver, at first, build scst in scst directory, then insmod scst_disk.ko to support real disk, insmod scst_vdisk.ko to support vdisk, etc. @@ -79,7 +79,7 @@ eg: echo "disable 1" >/sys/class/scsi_host/host4/target_mode -when you try to enale one phy of the controller, driver will enable all the +when you try to enable one phy of the controller, driver will enable all the phys which have the same SAS address. Then you should configure exported devices using the corresponding @@ -92,7 +92,7 @@ echo "del 1:0:1:0 0" >/proc/scsi_tgt/groups/Default/devices -for details of configure target disk group, pleae refer to README of SCST. +for details of configure target disk group, please refer to README of SCST. note: 1. Appropriate phy should be setted to target mode for initiator to detect @@ -100,9 +100,9 @@ 2. In example "add 2:0:0:0 1" the '1' is the LUN in the target, LUN 0 must exist with a target. 3. When one device is added to target disk group, target driver will notify - initator the changing of the phy mode and arriving of the disk, but some + initiator the changing of the phy mode and arriving of the disk, but some initiator driver don't support phy mode changing well, so 'rmmod' and - 'modprobe'/'insmod' the initiator driver is neccessary. + 'modprobe'/'insmod' the initiator driver is necessary. following is an example for configuring the target driver. Index: mvsas_tgt/mv_94xx.c =================================================================== --- mvsas_tgt/mv_94xx.c (revision 1390) +++ mvsas_tgt/mv_94xx.c (working copy) @@ -282,7 +282,7 @@ tmp = mr32(MVS_PCS); tmp |= PCS_CMD_RST; mw32(MVS_PCS, tmp); - /* interrupt coalescing may cause missing HW interrput in some case, + /* interrupt coalescing may cause missing HW interrupt in some case, * and the max count is 0x1ff, while our max slot is 0x200, * it will make count 0. */ Index: mvsas_tgt/mv_64xx.h =================================================================== --- mvsas_tgt/mv_64xx.h (revision 1390) +++ mvsas_tgt/mv_64xx.h (working copy) @@ -116,8 +116,8 @@ VSR_PHY_MODE9 = 0x09, /* Test */ VSR_PHY_MODE10 = 0x0A, /* Power */ VSR_PHY_MODE11 = 0x0B, /* Phy Mode */ - VSR_PHY_VS0 = 0x0C, /* Vednor Specific 0 */ - VSR_PHY_VS1 = 0x0D, /* Vednor Specific 1 */ + VSR_PHY_VS0 = 0x0C, /* Vendor Specific 0 */ + VSR_PHY_VS1 = 0x0D, /* Vendor Specific 1 */ }; enum chip_register_bits { Index: mvsas_tgt/mv_94xx.h =================================================================== --- mvsas_tgt/mv_94xx.h (revision 1390) +++ mvsas_tgt/mv_94xx.h (working copy) @@ -123,8 +123,8 @@ VSR_PHY_MODE9 = 0x09 * 4, /* Test */ VSR_PHY_MODE10 = 0x0A * 4, /* Power */ VSR_PHY_MODE11 = 0x0B * 4, /* Phy Mode */ - VSR_PHY_VS0 = 0x0C * 4, /* Vednor Specific 0 */ - VSR_PHY_VS1 = 0x0D * 4, /* Vednor Specific 1 */ + VSR_PHY_VS0 = 0x0C * 4, /* Vendor Specific 0 */ + VSR_PHY_VS1 = 0x0D * 4, /* Vendor Specific 1 */ }; enum chip_register_bits { Index: mvsas_tgt/mv_defs.h =================================================================== --- mvsas_tgt/mv_defs.h (revision 1390) +++ mvsas_tgt/mv_defs.h (working copy) @@ -230,7 +230,7 @@ /* MVS_Px_INT_STAT, MVS_Px_INT_MASK (per-phy events) */ PHYEV_DEC_ERR = (1U << 24), /* Phy Decoding Error */ - PHYEV_DCDR_ERR = (1U << 23), /* STP Deocder Error */ + PHYEV_DCDR_ERR = (1U << 23), /* STP Decoder Error */ PHYEV_CRC_ERR = (1U << 22), /* STP CRC Error */ PHYEV_UNASSOC_FIS = (1U << 19), /* unassociated FIS rx'd */ PHYEV_AN = (1U << 18), /* SATA async notification */ @@ -362,7 +362,7 @@ CMD_SATA_PORT_MEM_CTL0 = 0x158, /* SATA Port Memory Control 0 */ CMD_SATA_PORT_MEM_CTL1 = 0x15c, /* SATA Port Memory Control 1 */ CMD_XOR_MEM_BIST_CTL = 0x160, /* XOR Memory BIST Control */ - CMD_XOR_MEM_BIST_STAT = 0x164, /* XOR Memroy BIST Status */ + CMD_XOR_MEM_BIST_STAT = 0x164, /* XOR Memory BIST Status */ CMD_DMA_MEM_BIST_CTL = 0x168, /* DMA Memory BIST Control */ CMD_DMA_MEM_BIST_STAT = 0x16c, /* DMA Memory BIST Status */ CMD_PORT_MEM_BIST_CTL = 0x170, /* Port Memory BIST Control */ Index: mvsas_tgt/mv_sas.c =================================================================== --- mvsas_tgt/mv_sas.c (revision 1390) +++ mvsas_tgt/mv_sas.c (working copy) @@ -645,7 +645,7 @@ hdr->flags = cpu_to_le32(flags); - /* FIXME: the low order order 5 bits for the TAG if enable NCQ */ + /* FIXME: the low order 5 bits for the TAG if enable NCQ */ if (task->ata_task.use_ncq && mvs_get_ncq_tag(task, &hdr_tag)) task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); else @@ -1485,7 +1485,7 @@ if (res) { del_timer(&task->timer); - mv_printk("executing internel task failed:%d\n", res); + mv_printk("executing internal task failed:%d\n", res); goto ex_err; } Index: mvsas_tgt/mv_sas.h =================================================================== --- mvsas_tgt/mv_sas.h (revision 1390) +++ mvsas_tgt/mv_sas.h (working copy) @@ -286,7 +286,7 @@ #endif #ifdef SUPPORT_TARGET u32 target_cmd_tag; - /* interrnal command if NULL */ + /* internal command if NULL */ void *slot_scst_cmd; void *slot_scst_mgmt_cmd; struct mvst_port *slot_tgt_port; |