mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: ieee1394: sbp2: add support for disks >2 TB (and 16 bytes long CDBs) firewire: sbp2: add support for disks >2 TB (and 16 bytes long CDBs) firewire: core: do not DMA-map stack addresses
This commit is contained in:
commit
f63bafe556
8 changed files with 43 additions and 22 deletions
|
|
@ -880,6 +880,7 @@ static struct sbp2_lu *sbp2_alloc_device(struct unit_directory *ud)
|
|||
}
|
||||
|
||||
shost->hostdata[0] = (unsigned long)lu;
|
||||
shost->max_cmd_len = SBP2_MAX_CDB_SIZE;
|
||||
|
||||
if (!scsi_add_host(shost, &ud->device)) {
|
||||
lu->shost = shost;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@
|
|||
|
||||
#define SBP2_DEVICE_NAME "sbp2"
|
||||
|
||||
/*
|
||||
* There is no transport protocol limit to the CDB length, but we implement
|
||||
* a fixed length only. 16 bytes is enough for disks larger than 2 TB.
|
||||
*/
|
||||
#define SBP2_MAX_CDB_SIZE 16
|
||||
|
||||
/*
|
||||
* SBP-2 specific definitions
|
||||
*/
|
||||
|
|
@ -51,7 +57,7 @@ struct sbp2_command_orb {
|
|||
u32 data_descriptor_hi;
|
||||
u32 data_descriptor_lo;
|
||||
u32 misc;
|
||||
u8 cdb[12];
|
||||
u8 cdb[SBP2_MAX_CDB_SIZE];
|
||||
} __attribute__((packed));
|
||||
|
||||
#define SBP2_LOGIN_REQUEST 0x0
|
||||
|
|
|
|||
Loading…
Reference in a new issue