Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208304
b: refs/heads/master
c: ff5f58f
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Aug 7, 2010
1 parent d0c20b0 commit a0d7e8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: bfd63ee571ed2a1ab7af99544e326483f84c0544
refs/heads/master: ff5f58f06deb3f7b9a865093d7f580bbc2b9b498
10 changes: 3 additions & 7 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3711,9 +3711,9 @@ static int check_for_unit_attention(ctlr_info_t *h, CommandList_struct *c)
* the io functions.
* This is for debug only.
*/
#ifdef CCISS_DEBUG
static void print_cfg_table(CfgTable_struct *tb)
{
#ifdef CCISS_DEBUG
int i;
char temp_name[17];

Expand Down Expand Up @@ -3742,8 +3742,8 @@ static void print_cfg_table(CfgTable_struct *tb)
temp_name[16] = '\0';
printk(" Server Name = %s\n", temp_name);
printk(" Heartbeat Counter = 0x%x\n\n\n", readl(&(tb->HeartBeat)));
}
#endif /* CCISS_DEBUG */
}

static int find_PCI_BAR_index(struct pci_dev *pdev, unsigned long pci_bar_addr)
{
Expand Down Expand Up @@ -3833,6 +3833,7 @@ cciss_put_controller_into_performant_mode(ctlr_info_t *h)

BUILD_BUG_ON(28 > MAXSGENTRIES + 4);

dev_dbg(&h->pdev->dev, "Trying to put board into Performant mode\n");
/* Attempt to put controller into performant mode if supported */
/* Does board support performant mode? */
trans_support = readl(&(h->cfgtable->TransportSupport));
Expand Down Expand Up @@ -4190,9 +4191,7 @@ static int __devinit cciss_pci_init(ctlr_info_t *c)
err = cciss_find_cfgtables(c);
if (err)
goto err_out_free_res;
#ifdef CCISS_DEBUG
print_cfg_table(c->cfgtable);
#endif /* CCISS_DEBUG */
cciss_find_board_params(c);

if (!CISS_signature_present(c)) {
Expand All @@ -4201,9 +4200,6 @@ static int __devinit cciss_pci_init(ctlr_info_t *c)
}
cciss_enable_scsi_prefetch(c);
cciss_p600_dma_prefetch_quirk(c);
#ifdef CCISS_DEBUG
printk(KERN_WARNING "Trying to put board into Performant mode\n");
#endif /* CCISS_DEBUG */
cciss_put_controller_into_performant_mode(c);
return 0;

Expand Down

0 comments on commit a0d7e8e

Please sign in to comment.