aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorEd Lin <ed.lin@promise.com>2006-12-04 20:49:28 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-12-05 12:31:43 -0500
commit4eea9dc45fa7feb42e6dce32d94ea9ea4d64e40b (patch)
treed1c99f57d68e2ab961984db08edcbdc14b640430 /drivers/scsi
parentb4b8bed12345bc03dfcef80cbbe78582429b063c (diff)
[SCSI] stex: fix controller_info command handling
This command needs information from both firmware and driver. First copy information from firmware to buffer, then fill in driver information. Signed-off-by: Ed Lin <ed.lin@promise.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/stex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 91d484c0dd93..ea0d82461317 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -507,6 +507,7 @@ static void stex_controller_info(struct st_hba *hba, struct st_ccb *ccb)
507 size_t count = sizeof(struct st_frame); 507 size_t count = sizeof(struct st_frame);
508 508
509 p = hba->copy_buffer; 509 p = hba->copy_buffer;
510 stex_internal_copy(ccb->cmd, p, &count, ccb->sg_count, ST_FROM_CMD);
510 memset(p->base, 0, sizeof(u32)*6); 511 memset(p->base, 0, sizeof(u32)*6);
511 *(unsigned long *)(p->base) = pci_resource_start(hba->pdev, 0); 512 *(unsigned long *)(p->base) = pci_resource_start(hba->pdev, 0);
512 p->rom_addr = 0; 513 p->rom_addr = 0;