diff options
Diffstat (limited to 'drivers/usb/host/ohci-q.c')
| -rw-r--r-- | drivers/usb/host/ohci-q.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-q.c b/drivers/usb/host/ohci-q.c index 16fecb8ecc3..35288bcae0d 100644 --- a/drivers/usb/host/ohci-q.c +++ b/drivers/usb/host/ohci-q.c | |||
| @@ -49,9 +49,12 @@ __acquires(ohci->lock) | |||
| 49 | switch (usb_pipetype (urb->pipe)) { | 49 | switch (usb_pipetype (urb->pipe)) { |
| 50 | case PIPE_ISOCHRONOUS: | 50 | case PIPE_ISOCHRONOUS: |
| 51 | ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; | 51 | ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; |
| 52 | if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0 | 52 | if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { |
| 53 | && quirk_amdiso(ohci)) | 53 | if (quirk_amdiso(ohci)) |
| 54 | quirk_amd_pll(1); | 54 | quirk_amd_pll(1); |
| 55 | if (quirk_amdprefetch(ohci)) | ||
| 56 | sb800_prefetch(ohci, 0); | ||
| 57 | } | ||
| 55 | break; | 58 | break; |
| 56 | case PIPE_INTERRUPT: | 59 | case PIPE_INTERRUPT: |
| 57 | ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; | 60 | ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; |
| @@ -680,9 +683,12 @@ static void td_submit_urb ( | |||
| 680 | data + urb->iso_frame_desc [cnt].offset, | 683 | data + urb->iso_frame_desc [cnt].offset, |
| 681 | urb->iso_frame_desc [cnt].length, urb, cnt); | 684 | urb->iso_frame_desc [cnt].length, urb, cnt); |
| 682 | } | 685 | } |
| 683 | if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0 | 686 | if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { |
| 684 | && quirk_amdiso(ohci)) | 687 | if (quirk_amdiso(ohci)) |
| 685 | quirk_amd_pll(0); | 688 | quirk_amd_pll(0); |
| 689 | if (quirk_amdprefetch(ohci)) | ||
| 690 | sb800_prefetch(ohci, 1); | ||
| 691 | } | ||
| 686 | periodic = ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs++ == 0 | 692 | periodic = ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs++ == 0 |
| 687 | && ohci_to_hcd(ohci)->self.bandwidth_int_reqs == 0; | 693 | && ohci_to_hcd(ohci)->self.bandwidth_int_reqs == 0; |
| 688 | break; | 694 | break; |
