Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208295
b: refs/heads/master
c: dac5488
h: refs/heads/master
i:
  208293: c50ee80
  208291: 128df65
  208287: ddd5afe
v: v3
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Aug 7, 2010
1 parent 852ff79 commit 62d6728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: dd9c426e92d0cbd710c8df5b84afe9a2eeda3918
refs/heads/master: dac5488a9ed6b6e59749e161209a6678980803f1
11 changes: 5 additions & 6 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void cciss_geometry_inquiry(int ctlr, int logvol,
sector_t total_size,
unsigned int block_size, InquiryData_struct *inq_buff,
drive_info_struct *drv);
static void __devinit cciss_interrupt_mode(ctlr_info_t *, __u32);
static void __devinit cciss_interrupt_mode(ctlr_info_t *);
static void start_io(ctlr_info_t *h);
static int sendcmd_withirq(__u8 cmd, int ctlr, void *buff, size_t size,
__u8 page_code, unsigned char scsi3addr[],
Expand Down Expand Up @@ -3932,7 +3932,7 @@ cciss_put_controller_into_performant_mode(ctlr_info_t *h)
* controllers that are capable. If not, we use IO-APIC mode.
*/

static void __devinit cciss_interrupt_mode(ctlr_info_t *c, __u32 board_id)
static void __devinit cciss_interrupt_mode(ctlr_info_t *c)
{
#ifdef CONFIG_PCI_MSI
int err;
Expand All @@ -3941,9 +3941,8 @@ static void __devinit cciss_interrupt_mode(ctlr_info_t *c, __u32 board_id)
};

/* Some boards advertise MSI but don't really support it */
if ((board_id == 0x40700E11) ||
(board_id == 0x40800E11) ||
(board_id == 0x40820E11) || (board_id == 0x40830E11))
if ((c->board_id == 0x40700E11) || (c->board_id == 0x40800E11) ||
(c->board_id == 0x40820E11) || (c->board_id == 0x40830E11))
goto default_int_mode;

if (pci_find_capability(c->pdev, PCI_CAP_ID_MSIX)) {
Expand Down Expand Up @@ -4052,7 +4051,7 @@ static int __devinit cciss_pci_init(ctlr_info_t *c)
/* If the kernel supports MSI/MSI-X we will try to enable that functionality,
* else we use the IO-APIC interrupt assigned to us by system ROM.
*/
cciss_interrupt_mode(c, c->board_id);
cciss_interrupt_mode(c);

/* find the memory BAR */
for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
Expand Down

0 comments on commit 62d6728

Please sign in to comment.