diff options
| -rw-r--r-- | drivers/firewire/core-transaction.c | 4 | ||||
| -rw-r--r-- | drivers/firewire/ohci.c | 5 | ||||
| -rw-r--r-- | drivers/firewire/sbp2.c | 11 |
3 files changed, 2 insertions, 18 deletions
diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c index eb6935c8ad94..d6a09b9cd8cc 100644 --- a/drivers/firewire/core-transaction.c +++ b/drivers/firewire/core-transaction.c | |||
| @@ -1246,14 +1246,14 @@ static const u32 model_textual_descriptor[] = { | |||
| 1246 | 1246 | ||
| 1247 | static struct fw_descriptor vendor_id_descriptor = { | 1247 | static struct fw_descriptor vendor_id_descriptor = { |
| 1248 | .length = ARRAY_SIZE(vendor_textual_descriptor), | 1248 | .length = ARRAY_SIZE(vendor_textual_descriptor), |
| 1249 | .immediate = 0x03d00d1e, | 1249 | .immediate = 0x03001f11, |
| 1250 | .key = 0x81000000, | 1250 | .key = 0x81000000, |
| 1251 | .data = vendor_textual_descriptor, | 1251 | .data = vendor_textual_descriptor, |
| 1252 | }; | 1252 | }; |
| 1253 | 1253 | ||
| 1254 | static struct fw_descriptor model_id_descriptor = { | 1254 | static struct fw_descriptor model_id_descriptor = { |
| 1255 | .length = ARRAY_SIZE(model_textual_descriptor), | 1255 | .length = ARRAY_SIZE(model_textual_descriptor), |
| 1256 | .immediate = 0x17000001, | 1256 | .immediate = 0x17023901, |
| 1257 | .key = 0x81000000, | 1257 | .key = 0x81000000, |
| 1258 | .data = model_textual_descriptor, | 1258 | .data = model_textual_descriptor, |
| 1259 | }; | 1259 | }; |
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index aff9018d0658..f51d376d10ba 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
| @@ -718,11 +718,6 @@ static inline unsigned int ar_next_buffer_index(unsigned int index) | |||
| 718 | return (index + 1) % AR_BUFFERS; | 718 | return (index + 1) % AR_BUFFERS; |
| 719 | } | 719 | } |
| 720 | 720 | ||
| 721 | static inline unsigned int ar_prev_buffer_index(unsigned int index) | ||
| 722 | { | ||
| 723 | return (index - 1 + AR_BUFFERS) % AR_BUFFERS; | ||
| 724 | } | ||
| 725 | |||
| 726 | static inline unsigned int ar_first_buffer_index(struct ar_context *ctx) | 721 | static inline unsigned int ar_first_buffer_index(struct ar_context *ctx) |
| 727 | { | 722 | { |
| 728 | return ar_next_buffer_index(ctx->last_buffer_index); | 723 | return ar_next_buffer_index(ctx->last_buffer_index); |
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index 64ac8f8f5098..c22606fe3d44 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c | |||
| @@ -1463,17 +1463,6 @@ static int sbp2_scsi_queuecommand(struct Scsi_Host *shost, | |||
| 1463 | struct sbp2_command_orb *orb; | 1463 | struct sbp2_command_orb *orb; |
| 1464 | int generation, retval = SCSI_MLQUEUE_HOST_BUSY; | 1464 | int generation, retval = SCSI_MLQUEUE_HOST_BUSY; |
| 1465 | 1465 | ||
| 1466 | /* | ||
| 1467 | * Bidirectional commands are not yet implemented, and unknown | ||
| 1468 | * transfer direction not handled. | ||
| 1469 | */ | ||
| 1470 | if (cmd->sc_data_direction == DMA_BIDIRECTIONAL) { | ||
| 1471 | dev_err(lu_dev(lu), "cannot handle bidirectional command\n"); | ||
| 1472 | cmd->result = DID_ERROR << 16; | ||
| 1473 | cmd->scsi_done(cmd); | ||
| 1474 | return 0; | ||
| 1475 | } | ||
| 1476 | |||
| 1477 | orb = kzalloc(sizeof(*orb), GFP_ATOMIC); | 1466 | orb = kzalloc(sizeof(*orb), GFP_ATOMIC); |
| 1478 | if (orb == NULL) | 1467 | if (orb == NULL) |
| 1479 | return SCSI_MLQUEUE_HOST_BUSY; | 1468 | return SCSI_MLQUEUE_HOST_BUSY; |
