diff options
| -rw-r--r-- | drivers/ieee1394/sbp2.c | 1 | ||||
| -rw-r--r-- | drivers/ieee1394/sbp2.h | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index a51ab233342d..f599f4934739 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
| @@ -880,6 +880,7 @@ static struct sbp2_lu *sbp2_alloc_device(struct unit_directory *ud) | |||
| 880 | } | 880 | } |
| 881 | 881 | ||
| 882 | shost->hostdata[0] = (unsigned long)lu; | 882 | shost->hostdata[0] = (unsigned long)lu; |
| 883 | shost->max_cmd_len = SBP2_MAX_CDB_SIZE; | ||
| 883 | 884 | ||
| 884 | if (!scsi_add_host(shost, &ud->device)) { | 885 | if (!scsi_add_host(shost, &ud->device)) { |
| 885 | lu->shost = shost; | 886 | lu->shost = shost; |
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h index c5036f1cc5b0..64a3a66a8a39 100644 --- a/drivers/ieee1394/sbp2.h +++ b/drivers/ieee1394/sbp2.h | |||
| @@ -25,6 +25,12 @@ | |||
| 25 | #define SBP2_DEVICE_NAME "sbp2" | 25 | #define SBP2_DEVICE_NAME "sbp2" |
| 26 | 26 | ||
| 27 | /* | 27 | /* |
| 28 | * There is no transport protocol limit to the CDB length, but we implement | ||
| 29 | * a fixed length only. 16 bytes is enough for disks larger than 2 TB. | ||
| 30 | */ | ||
| 31 | #define SBP2_MAX_CDB_SIZE 16 | ||
| 32 | |||
| 33 | /* | ||
| 28 | * SBP-2 specific definitions | 34 | * SBP-2 specific definitions |
| 29 | */ | 35 | */ |
| 30 | 36 | ||
| @@ -51,7 +57,7 @@ struct sbp2_command_orb { | |||
| 51 | u32 data_descriptor_hi; | 57 | u32 data_descriptor_hi; |
| 52 | u32 data_descriptor_lo; | 58 | u32 data_descriptor_lo; |
| 53 | u32 misc; | 59 | u32 misc; |
| 54 | u8 cdb[12]; | 60 | u8 cdb[SBP2_MAX_CDB_SIZE]; |
| 55 | } __attribute__((packed)); | 61 | } __attribute__((packed)); |
| 56 | 62 | ||
| 57 | #define SBP2_LOGIN_REQUEST 0x0 | 63 | #define SBP2_LOGIN_REQUEST 0x0 |
