diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:30:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:30:48 -0400 |
commit | 5cc103506289de7ee0a0b526ae0381541990cad4 (patch) | |
tree | ae8a4958e70c6d1295030b40e333dcc007b3c074 /drivers/usb/storage/transport.c | |
parent | 73ecf3a6e3f0206bf56a0fefe3b3eda042fb7034 (diff) | |
parent | 92ca0dc5ee022e4c0e488177e1d8865a0778c6c2 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (141 commits)
USB: mct_u232: fix broken close
USB: gadget: amd5536udc.c: fix error path
USB: imx21-hcd - fix off by one resource size calculation
usb: gadget: fix Kconfig warning
usb: r8a66597-udc: Add processing when USB was removed.
mxc_udc: add workaround for ENGcm09152 for i.MX35
USB: ftdi_sio: add device ids for ScienceScope
USB: musb: AM35x: Workaround for fifo read issue
USB: musb: add musb support for AM35x
USB: AM35x: Add musb support
usb: Fix linker errors with CONFIG_PM=n
USB: ohci-sh - use resource_size instead of defining its own resource_len macro
USB: isp1362-hcd - use resource_size instead of defining its own resource_len macro
USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro
USB: xhci: Fix compile error when CONFIG_PM=n
USB: accept some invalid ep0-maxpacket values
USB: xHCI: PCI power management implementation
USB: xHCI: bus power management implementation
USB: xHCI: port remote wakeup implementation
USB: xHCI: port power management implementation
...
Manually fix up (non-data) conflict: the SCSI merge gad renamed the
'hw_sector_size' member to 'physical_block_size', and the USB tree
brought a new use of it.
Diffstat (limited to 'drivers/usb/storage/transport.c')
-rw-r--r-- | drivers/usb/storage/transport.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c index 64ec073e89de..00418995d8e9 100644 --- a/drivers/usb/storage/transport.c +++ b/drivers/usb/storage/transport.c | |||
@@ -642,7 +642,7 @@ void usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) | |||
642 | * unless the operation involved a data-in transfer. Devices | 642 | * unless the operation involved a data-in transfer. Devices |
643 | * can signal most data-in errors by stalling the bulk-in pipe. | 643 | * can signal most data-in errors by stalling the bulk-in pipe. |
644 | */ | 644 | */ |
645 | if ((us->protocol == US_PR_CB || us->protocol == US_PR_DPCM_USB) && | 645 | if ((us->protocol == USB_PR_CB || us->protocol == USB_PR_DPCM_USB) && |
646 | srb->sc_data_direction != DMA_FROM_DEVICE) { | 646 | srb->sc_data_direction != DMA_FROM_DEVICE) { |
647 | US_DEBUGP("-- CB transport device requiring auto-sense\n"); | 647 | US_DEBUGP("-- CB transport device requiring auto-sense\n"); |
648 | need_auto_sense = 1; | 648 | need_auto_sense = 1; |
@@ -701,8 +701,8 @@ Retry_Sense: | |||
701 | scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sense_size); | 701 | scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sense_size); |
702 | 702 | ||
703 | /* FIXME: we must do the protocol translation here */ | 703 | /* FIXME: we must do the protocol translation here */ |
704 | if (us->subclass == US_SC_RBC || us->subclass == US_SC_SCSI || | 704 | if (us->subclass == USB_SC_RBC || us->subclass == USB_SC_SCSI || |
705 | us->subclass == US_SC_CYP_ATACB) | 705 | us->subclass == USB_SC_CYP_ATACB) |
706 | srb->cmd_len = 6; | 706 | srb->cmd_len = 6; |
707 | else | 707 | else |
708 | srb->cmd_len = 12; | 708 | srb->cmd_len = 12; |
@@ -926,7 +926,7 @@ int usb_stor_CB_transport(struct scsi_cmnd *srb, struct us_data *us) | |||
926 | /* NOTE: CB does not have a status stage. Silly, I know. So | 926 | /* NOTE: CB does not have a status stage. Silly, I know. So |
927 | * we have to catch this at a higher level. | 927 | * we have to catch this at a higher level. |
928 | */ | 928 | */ |
929 | if (us->protocol != US_PR_CBI) | 929 | if (us->protocol != USB_PR_CBI) |
930 | return USB_STOR_TRANSPORT_GOOD; | 930 | return USB_STOR_TRANSPORT_GOOD; |
931 | 931 | ||
932 | result = usb_stor_intr_transfer(us, us->iobuf, 2); | 932 | result = usb_stor_intr_transfer(us, us->iobuf, 2); |
@@ -942,7 +942,7 @@ int usb_stor_CB_transport(struct scsi_cmnd *srb, struct us_data *us) | |||
942 | * that this means we could be ignoring a real error on these | 942 | * that this means we could be ignoring a real error on these |
943 | * commands, but that can't be helped. | 943 | * commands, but that can't be helped. |
944 | */ | 944 | */ |
945 | if (us->subclass == US_SC_UFI) { | 945 | if (us->subclass == USB_SC_UFI) { |
946 | if (srb->cmnd[0] == REQUEST_SENSE || | 946 | if (srb->cmnd[0] == REQUEST_SENSE || |
947 | srb->cmnd[0] == INQUIRY) | 947 | srb->cmnd[0] == INQUIRY) |
948 | return USB_STOR_TRANSPORT_GOOD; | 948 | return USB_STOR_TRANSPORT_GOOD; |