Skip to contentSkip to conversation

fix for cpqarray for 2.6.9-rc2

PATCH [email protected] 3 participants 3 messages Sep 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch fixes a problem with cpqarray and the SA4200 controller. Our online config utility cannot properly communicate with the controller. Patch by [email protected].
Applies to 2.6.9-rc2. Please consider this for inclusion.

Thanks,
mikem
-------------------------------------------------------------------------------

drivers/block/cpqarray.c +2 -0
diff -burNp lx269-rc2.orig/drivers/block/cpqarray.c lx269-rc2/drivers/block/cpqarray.c
@@ -1286,6 +1286,7 @@ static int ida_ctlr_ioctl(ctlr_info_t *h
 		c->req.hdr.sg_cnt = 1;
 		break;
 	case IDA_READ:
+	case SENSE_SURF_STATUS:
 	case READ_FLASH_ROM:
 	case SENSE_CONTROLLER_PERFORMANCE:
 		p = kmalloc(io->sg[0].size, GFP_KERNEL);
@@ -1351,6 +1352,7 @@ static int ida_ctlr_ioctl(ctlr_info_t *h
                                 sizeof(ida_ioctl_t),
                                 PCI_DMA_BIDIRECTIONAL);
 	case IDA_READ:
+	case SENSE_SURF_STATUS:
 	case DIAG_PASS_THRU:
 	case SENSE_CONTROLLER_PERFORMANCE:
 	case READ_FLASH_ROM:
drivers/block/ida_cmd.h +2 -0
diff -burNp lx269-rc2.orig/drivers/block/ida_cmd.h lx269-rc2/drivers/block/ida_cmd.h
@@ -318,6 +318,8 @@ typedef struct {
 	__u8	reserved[510];
 } mp_delay_t;
 
+#define SENSE_SURF_STATUS       0x70
+
 #define PASSTHRU_A	0x91
 typedef struct {
 	__u8	target;
#1 lore raw

drivers/block/ida_cmd.h typedef struct { · line 321

Quoted 8 lines · [email protected] wrote:

diff -burNp lx269-rc2.orig/drivers/block/ida_cmd.h lx269-rc2/drivers/block/ida_cmd.h

drivers/block/ida_cmd.h +1 -0
@@ -318,6 +318,8 @@ typedef struct {
 	__u8	reserved[510];
 } mp_delay_t;
 
+#define SENSE_SURF_STATUS       0x70

I guess the return codes for this op are along the lines of "calm", "bitchin", and "gnarly"?

Jeff

#2 lore raw
Quoted 10 lines · Jeff Garzik
Quoted 9 lines · [email protected] wrote:

diff -burNp lx269-rc2.orig/drivers/block/ida_cmd.h lx269-rc2/drivers/block/ida_cmd.h
--- lx269-rc2.orig/drivers/block/ida_cmd.h 2004-08-14
00:36:44.000000000 -0500
+++ lx269-rc2/drivers/block/ida_cmd.h 2004-09-20 14:15:39.782595128 -0500

drivers/block/ida_cmd.h +0 -0
@@ -318,6 +318,8 @@ typedef struct {
 	__u8	reserved[510];
 } mp_delay_t;
 
Quoted 7 lines

drivers/block/ida_cmd.h typedef struct { · line 321

Quoted 1 line
drivers/block/ida_cmd.h +1 -0
+#define SENSE_SURF_STATUS       0x70

I guess the return codes for this op are along the lines of "calm", "bitchin", and "gnarly"?

Jeff

Hint taken, Chirag pls return something meaningful.

mikem

Quoted 2 lines