prism54 Refix TRDY/RETRY_TIMEOUT
Subsystems (3)
PATCH 1/1 prism54 Refix TRDY/RETRY_TIMEOUT
2004-07-21 Margit Schubert-While <[email protected]>
* Reintroduce pushing 0 into the TRDY_TIMEOUT and RETRY_TIMEOUT registers. Make this configurable with module parameter init_pcitm.
* We now have the ludicrous situation that some hardware setups require this (not even pushing 0xFF helps), whilst others don't care either way (the majority), and yet others bork if anything is pushed into these regs.
If anybody can explain this (including Conexant :-) ), my ears are open.
Jeff, this patch together with the mgtframeptr patch from 07/15 are pretty urgent.
Margit
drivers/net/wireless/prism54/islpci_hotplug.c +10 -7
@@ -36,6 +36,9 @@MODULE_DESCRIPTION ("The Prism54 802.11 Wireless LAN adapter" );MODULE_LICENSE ("GPL" ); +static int init_pcitm =0 ; +module_param (init_pcitm, int,0 ); +/* In this order: vendor, device, subvendor, subdevice, class, class_mask, * driver_data * If you have an update for this please contact [email protected]
@@ -292,14 +295,14 @@* * Writing zero to both these two registers will disable both timeouts and * *can* solve problems caused by devices that are slow to respond. +* Make this configurable - MSW */ -/* I am taking these out, we should not be poking around in the -* programmable timers - MSW -*/ -/* Do not zero the programmable timers -pci_write_config_byte(pdev, 0x40, 0); -pci_write_config_byte(pdev, 0x41, 0); -*/ +if ( init_pcitm >=0 ) { +pci_write_config_byte (pdev,0x40 , (u8 )init_pcitm); +pci_write_config_byte (pdev,0x41 , (u8 )init_pcitm); + }else { +printk (KERN_INFO "PCI TRDY/RETRY unchanged\n" ); + }/* request the pci device I/O regions */ rvalue =pci_request_regions (pdev,DRV_NAME );
_______________________________________________
Prism54-devel mailing list
[email protected]
http://prism54.org/mailman/listinfo/prism54-devel
Jeff Garzik
Appliedapplied