Re: pci sleep mode disabling 0n 82559..
Donald Becker <[email protected]> Sat, 5 Apr 2003 07:13:46 -0500 (EST)
| Newsgroups | gmane.linux.drivers.eepro100.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2 Apr 2003, Ashish anand wrote: > I am getting "wait_for_cmd_done timeout " messages > while using eepro100.c v 1.09j-t (9/29/99) and revision 1.1.1.5 for > 82559 card. > > after browsing the mailing list i found that it might be possible because > of pci sleep mode enabled which was detected after eepro100-diag.c > diagnostic programme. > > but since I have just completed my BSP and i am using a precompiled > busybox ramdisk hence I want to disable the pci slep mode explicitly from > within my driver. > > How can i do this..? I strongly recommend against changing the EEPROM within a driver. Let me repeat that. "I strongly recommend against changing the EEPROM within a driver." If I thought that it was a good idea, I would have done it. The eepro100-diag code to handle the EEPROM is deliberately identical to the code in the driver. It is trivial to add the update to the driver, if that's the only way to access your machine. But please do not distribute the result. Note that the change will not take place unless the machine is completely powered off (hard-off, not just soft-off). The only way to change this internal setting is reloading the configuration EEPROM from a completely powered off state. The EEPROM configuration will not be re-read if the machine is in soft-off mode as the NIC remains powered in order to do Wake-On-LAN. -- Donald Becker [email protected] Scyld Computing Corporation http://www.scyld.com 410 Severn Ave. Suite 210 Scyld Beowulf cluster system Annapolis MD 21403 410-990-9993