diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:19:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:19:08 -0500 |
commit | 9b73e76f3cf63379dcf45fcd4f112f5812418d0a (patch) | |
tree | 4e6bef87cd0cd6d848fc39a5ae25b981dbbe035b /drivers/scsi/ultrastor.c | |
parent | 50d9a126240f9961cfdd063336bbeb91f77a7dce (diff) | |
parent | 23c3e290fb9ce38cabc2822b47583fc8702411bf (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (200 commits)
[SCSI] usbstorage: use last_sector_bug flag universally
[SCSI] libsas: abstract STP task status into a function
[SCSI] ultrastor: clean up inline asm warnings
[SCSI] aic7xxx: fix firmware build
[SCSI] aacraid: fib context lock for management ioctls
[SCSI] ch: remove forward declarations
[SCSI] ch: fix device minor number management bug
[SCSI] ch: handle class_device_create failure properly
[SCSI] NCR5380: fix section mismatch
[SCSI] sg: fix /proc/scsi/sg/devices when no SCSI devices
[SCSI] IB/iSER: add logical unit reset support
[SCSI] don't use __GFP_DMA for sense buffers if not required
[SCSI] use dynamically allocated sense buffer
[SCSI] scsi.h: add macro for enclosure bit of inquiry data
[SCSI] sd: add fix for devices with last sector access problems
[SCSI] fix pcmcia compile problem
[SCSI] aacraid: add Voodoo Lite class of cards.
[SCSI] aacraid: add new driver features flags
[SCSI] qla2xxx: Update version number to 8.02.00-k7.
[SCSI] qla2xxx: Issue correct MBC_INITIALIZE_FIRMWARE command.
...
Diffstat (limited to 'drivers/scsi/ultrastor.c')
-rw-r--r-- | drivers/scsi/ultrastor.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/scsi/ultrastor.c b/drivers/scsi/ultrastor.c index 6d1f0edd7985..75eca6b22db5 100644 --- a/drivers/scsi/ultrastor.c +++ b/drivers/scsi/ultrastor.c | |||
@@ -298,9 +298,16 @@ static inline int find_and_clear_bit_16(unsigned long *field) | |||
298 | { | 298 | { |
299 | int rv; | 299 | int rv; |
300 | 300 | ||
301 | if (*field == 0) panic("No free mscp"); | 301 | if (*field == 0) |
302 | asm("xorl %0,%0\n0:\tbsfw %1,%w0\n\tbtr %0,%1\n\tjnc 0b" | 302 | panic("No free mscp"); |
303 | : "=&r" (rv), "=m" (*field) : "1" (*field)); | 303 | |
304 | asm volatile ( | ||
305 | "xorl %0,%0\n\t" | ||
306 | "0: bsfw %1,%w0\n\t" | ||
307 | "btr %0,%1\n\t" | ||
308 | "jnc 0b" | ||
309 | : "=&r" (rv), "=m" (*field) :); | ||
310 | |||
304 | return rv; | 311 | return rv; |
305 | } | 312 | } |
306 | 313 | ||
@@ -741,7 +748,7 @@ static int ultrastor_queuecommand(struct scsi_cmnd *SCpnt, | |||
741 | } | 748 | } |
742 | my_mscp->command_link = 0; /*???*/ | 749 | my_mscp->command_link = 0; /*???*/ |
743 | my_mscp->scsi_command_link_id = 0; /*???*/ | 750 | my_mscp->scsi_command_link_id = 0; /*???*/ |
744 | my_mscp->length_of_sense_byte = sizeof SCpnt->sense_buffer; | 751 | my_mscp->length_of_sense_byte = SCSI_SENSE_BUFFERSIZE; |
745 | my_mscp->length_of_scsi_cdbs = SCpnt->cmd_len; | 752 | my_mscp->length_of_scsi_cdbs = SCpnt->cmd_len; |
746 | memcpy(my_mscp->scsi_cdbs, SCpnt->cmnd, my_mscp->length_of_scsi_cdbs); | 753 | memcpy(my_mscp->scsi_cdbs, SCpnt->cmnd, my_mscp->length_of_scsi_cdbs); |
747 | my_mscp->adapter_status = 0; | 754 | my_mscp->adapter_status = 0; |