diff options
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/ohci.c | 20 | ||||
-rw-r--r-- | drivers/firewire/ohci.h | 8 |
2 files changed, 2 insertions, 26 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index be29b0bb2471..9dcb17d51aee 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -263,6 +263,7 @@ static const struct { | |||
263 | {PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB38X_FW, QUIRK_NO_MSI}, | 263 | {PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB38X_FW, QUIRK_NO_MSI}, |
264 | {PCI_VENDOR_ID_NEC, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, | 264 | {PCI_VENDOR_ID_NEC, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, |
265 | {PCI_VENDOR_ID_VIA, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, | 265 | {PCI_VENDOR_ID_VIA, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, |
266 | {PCI_VENDOR_ID_RICOH, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, | ||
266 | {PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_FW, QUIRK_BE_HEADERS}, | 267 | {PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_FW, QUIRK_BE_HEADERS}, |
267 | }; | 268 | }; |
268 | 269 | ||
@@ -2839,7 +2840,7 @@ static int __devinit pci_probe(struct pci_dev *dev, | |||
2839 | const struct pci_device_id *ent) | 2840 | const struct pci_device_id *ent) |
2840 | { | 2841 | { |
2841 | struct fw_ohci *ohci; | 2842 | struct fw_ohci *ohci; |
2842 | u32 bus_options, max_receive, link_speed, version, link_enh; | 2843 | u32 bus_options, max_receive, link_speed, version; |
2843 | u64 guid; | 2844 | u64 guid; |
2844 | int i, err, n_ir, n_it; | 2845 | int i, err, n_ir, n_it; |
2845 | size_t size; | 2846 | size_t size; |
@@ -2893,23 +2894,6 @@ static int __devinit pci_probe(struct pci_dev *dev, | |||
2893 | if (param_quirks) | 2894 | if (param_quirks) |
2894 | ohci->quirks = param_quirks; | 2895 | ohci->quirks = param_quirks; |
2895 | 2896 | ||
2896 | /* TI OHCI-Lynx and compatible: set recommended configuration bits. */ | ||
2897 | if (dev->vendor == PCI_VENDOR_ID_TI) { | ||
2898 | pci_read_config_dword(dev, PCI_CFG_TI_LinkEnh, &link_enh); | ||
2899 | |||
2900 | /* adjust latency of ATx FIFO: use 1.7 KB threshold */ | ||
2901 | link_enh &= ~TI_LinkEnh_atx_thresh_mask; | ||
2902 | link_enh |= TI_LinkEnh_atx_thresh_1_7K; | ||
2903 | |||
2904 | /* use priority arbitration for asynchronous responses */ | ||
2905 | link_enh |= TI_LinkEnh_enab_unfair; | ||
2906 | |||
2907 | /* required for aPhyEnhanceEnable to work */ | ||
2908 | link_enh |= TI_LinkEnh_enab_accel; | ||
2909 | |||
2910 | pci_write_config_dword(dev, PCI_CFG_TI_LinkEnh, link_enh); | ||
2911 | } | ||
2912 | |||
2913 | ar_context_init(&ohci->ar_request_ctx, ohci, | 2897 | ar_context_init(&ohci->ar_request_ctx, ohci, |
2914 | OHCI1394_AsReqRcvContextControlSet); | 2898 | OHCI1394_AsReqRcvContextControlSet); |
2915 | 2899 | ||
diff --git a/drivers/firewire/ohci.h b/drivers/firewire/ohci.h index 0e6c5a466908..ef5e7336da68 100644 --- a/drivers/firewire/ohci.h +++ b/drivers/firewire/ohci.h | |||
@@ -155,12 +155,4 @@ | |||
155 | 155 | ||
156 | #define OHCI1394_phy_tcode 0xe | 156 | #define OHCI1394_phy_tcode 0xe |
157 | 157 | ||
158 | /* TI extensions */ | ||
159 | |||
160 | #define PCI_CFG_TI_LinkEnh 0xf4 | ||
161 | #define TI_LinkEnh_enab_accel 0x00000002 | ||
162 | #define TI_LinkEnh_enab_unfair 0x00000080 | ||
163 | #define TI_LinkEnh_atx_thresh_mask 0x00003000 | ||
164 | #define TI_LinkEnh_atx_thresh_1_7K 0x00001000 | ||
165 | |||
166 | #endif /* _FIREWIRE_OHCI_H */ | 158 | #endif /* _FIREWIRE_OHCI_H */ |