Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226855
b: refs/heads/master
c: 0d49016
h: refs/heads/master
i:
  226853: 1ebb18e
  226851: 274054e
  226847: 43016ee
v: v3
  • Loading branch information
adam radford authored and James Bottomley committed Dec 21, 2010
1 parent 33dd0c1 commit 7310c36
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd01a6632da253210c3dbc7814bc6eceda96623d
refs/heads/master: 0d49016bbab4fe9164710b1d4bbae116b89b7f7e
1 change: 1 addition & 0 deletions trunk/drivers/scsi/megaraid/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
obj-$(CONFIG_MEGARAID_MM) += megaraid_mm.o
obj-$(CONFIG_MEGARAID_MAILBOX) += megaraid_mbox.o
obj-$(CONFIG_MEGARAID_SAS) += megaraid_sas.o
megaraid_sas-objs := megaraid_sas_base.o
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)


/**
* The following functions are defined for xscale
* The following functions are defined for xscale
* (deviceid : 1064R, PERC5) controllers
*/

Expand Down Expand Up @@ -210,7 +210,7 @@ megasas_read_fw_status_reg_xscale(struct megasas_register_set __iomem * regs)
* megasas_clear_interrupt_xscale - Check & clear interrupt
* @regs: MFI register set
*/
static int
static int
megasas_clear_intr_xscale(struct megasas_register_set __iomem * regs)
{
u32 status;
Expand Down Expand Up @@ -243,7 +243,7 @@ megasas_clear_intr_xscale(struct megasas_register_set __iomem * regs)
* @frame_count : Number of frames for the command
* @regs : MFI register set
*/
static inline void
static inline void
megasas_fire_cmd_xscale(struct megasas_instance *instance,
dma_addr_t frame_phys_addr,
u32 frame_count,
Expand Down Expand Up @@ -326,12 +326,12 @@ static struct megasas_instance_template megasas_instance_template_xscale = {
};

/**
* This is the end of set of functions & definitions specific
* This is the end of set of functions & definitions specific
* to xscale (deviceid : 1064R, PERC5) controllers
*/

/**
* The following functions are defined for ppc (deviceid : 0x60)
* The following functions are defined for ppc (deviceid : 0x60)
* controllers
*/

Expand All @@ -343,7 +343,7 @@ static inline void
megasas_enable_intr_ppc(struct megasas_register_set __iomem * regs)
{
writel(0xFFFFFFFF, &(regs)->outbound_doorbell_clear);

writel(~0x80000000, &(regs)->outbound_intr_mask);

/* Dummy readl to force pci flush */
Expand Down Expand Up @@ -377,7 +377,7 @@ megasas_read_fw_status_reg_ppc(struct megasas_register_set __iomem * regs)
* megasas_clear_interrupt_ppc - Check & clear interrupt
* @regs: MFI register set
*/
static int
static int
megasas_clear_intr_ppc(struct megasas_register_set __iomem * regs)
{
u32 status;
Expand Down Expand Up @@ -406,15 +406,15 @@ megasas_clear_intr_ppc(struct megasas_register_set __iomem * regs)
* @frame_count : Number of frames for the command
* @regs : MFI register set
*/
static inline void
static inline void
megasas_fire_cmd_ppc(struct megasas_instance *instance,
dma_addr_t frame_phys_addr,
u32 frame_count,
struct megasas_register_set __iomem *regs)
{
unsigned long flags;
spin_lock_irqsave(&instance->hba_lock, flags);
writel((frame_phys_addr | (frame_count<<1))|1,
writel((frame_phys_addr | (frame_count<<1))|1,
&(regs)->inbound_queue_port);
spin_unlock_irqrestore(&instance->hba_lock, flags);
}
Expand All @@ -441,7 +441,7 @@ megasas_check_reset_ppc(struct megasas_instance *instance,
return 0;
}
static struct megasas_instance_template megasas_instance_template_ppc = {

.fire_cmd = megasas_fire_cmd_ppc,
.enable_intr = megasas_enable_intr_ppc,
.disable_intr = megasas_disable_intr_ppc,
Expand Down Expand Up @@ -754,7 +754,7 @@ static struct megasas_instance_template megasas_instance_template_gen2 = {
/**
* megasas_issue_polled - Issues a polling command
* @instance: Adapter soft state
* @cmd: Command packet to be issued
* @cmd: Command packet to be issued
*
* For polling, MFI requires the cmd_status to be set to 0xFF before posting.
*/
Expand Down Expand Up @@ -1242,9 +1242,9 @@ megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp,
/**
* megasas_is_ldio - Checks if the cmd is for logical drive
* @scmd: SCSI command
*
*
* Called by megasas_queue_command to find out if the command to be queued
* is a logical drive command
* is a logical drive command
*/
static inline int megasas_is_ldio(struct scsi_cmnd *cmd)
{
Expand Down Expand Up @@ -2000,8 +2000,8 @@ megasas_complete_int_cmd(struct megasas_instance *instance,
* @instance: Adapter soft state
* @cmd: Cmd that was issued to abort another cmd
*
* The megasas_issue_blocked_abort_cmd() function waits on abort_cmd_wait_q
* after it issues an abort on a previously issued command. This function
* The megasas_issue_blocked_abort_cmd() function waits on abort_cmd_wait_q
* after it issues an abort on a previously issued command. This function
* wakes up all functions waiting on the same wait queue.
*/
static void
Expand All @@ -2021,7 +2021,7 @@ megasas_complete_abort(struct megasas_instance *instance,
* megasas_complete_cmd - Completes a command
* @instance: Adapter soft state
* @cmd: Command to be completed
* @alt_status: If non-zero, use this value as status to
* @alt_status: If non-zero, use this value as status to
* SCSI mid-layer instead of the value returned
* by the FW. This should be used if caller wants
* an alternate status (as in the case of aborted
Expand Down Expand Up @@ -2476,8 +2476,8 @@ megasas_transition_to_ready(struct megasas_instance* instance)
fw_state = instance->instancet->read_fw_status_reg(instance->reg_set) & MFI_STATE_MASK;

if (fw_state != MFI_STATE_READY)
printk(KERN_INFO "megasas: Waiting for FW to come to ready"
" state\n");
printk(KERN_INFO "megasas: Waiting for FW to come to ready"
" state\n");

while (fw_state != MFI_STATE_READY) {

Expand Down Expand Up @@ -2590,7 +2590,7 @@ megasas_transition_to_ready(struct megasas_instance* instance)
* The cur_state should not last for more than max_wait secs
*/
for (i = 0; i < (max_wait * 1000); i++) {
fw_state = instance->instancet->read_fw_status_reg(instance->reg_set) &
fw_state = instance->instancet->read_fw_status_reg(instance->reg_set) &
MFI_STATE_MASK ;
curr_abs_state =
instance->instancet->read_fw_status_reg(instance->reg_set);
Expand All @@ -2610,7 +2610,7 @@ megasas_transition_to_ready(struct megasas_instance* instance)
return -ENODEV;
}
}
printk(KERN_INFO "megasas: FW now in Ready state\n");
printk(KERN_INFO "megasas: FW now in Ready state\n");

return 0;
}
Expand Down Expand Up @@ -3290,7 +3290,7 @@ static int megasas_init_mfi(struct megasas_instance *instance)
* does not exceed max cmds that the FW can support
*/
instance->max_fw_cmds = instance->max_fw_cmds-1;
instance->max_num_sge = (instance->instancet->read_fw_status_reg(reg_set) & 0xFF0000) >>
instance->max_num_sge = (instance->instancet->read_fw_status_reg(reg_set) & 0xFF0000) >>
0x10;
/*
* Create a pool of commands
Expand Down Expand Up @@ -3733,7 +3733,7 @@ megasas_set_dma_mask(struct pci_dev *pdev)
/**
* megasas_probe_one - PCI hotplug entry point
* @pdev: PCI device structure
* @id: PCI ids of supported hotplugged adapter
* @id: PCI ids of supported hotplugged adapter
*/
static int __devinit
megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
Expand Down Expand Up @@ -5165,7 +5165,7 @@ static int __init megasas_init(void)
pci_unregister_driver(&megasas_pci_driver);
err_pcidrv:
unregister_chrdev(megasas_mgmt_majorno, "megaraid_sas_ioctl");
return rval;
return rval;
}

/**
Expand Down

0 comments on commit 7310c36

Please sign in to comment.