Re: [zd1211-devs] Vendor driver v2.16.0.0

2006-12-23 Thread Matthieu CASTET
On Sat, 23 Dec 2006 10:10:56 +0100, Hans Dingemans wrote:

 I'm not the expert here, but wouldn't it be a good idea to make sure
 disconnect() is called on both reset and reboot (by root), and all other
 exit scenario's possible. That then would be a clean exit, not relying
 on how other components in the environment are acting?

The problem is that we can't rely in all case in a clean exit solution.
For example if you kernel panic and reboot, the kernel will reboot without
notifying the drivers. Same problem if you use the hardware reset. I am not
even certain that Linux call driver disconnect on normal reboot.

All sane device has a way (often reset) to go from an unknow state to a
know state.

The best solution should be to find a way to do the black magic for
reseting the device in probe and not in disconnect.

Matthieu


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs


Re: [zd1211-devs] Vendor driver v2.16.0.0

2006-12-23 Thread Daniel Drake
Matthieu CASTET wrote:
 BTW doing the reset in probe seems to work with new firmware :
 http://castet.matthieu.free.fr/tmp/zd_reset.diff

What do you mean by 'new firmware'? Does this work on all of:
  cold plugin
  warm rmmod/insmod
  warm reboot

Daniel


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs


Re: [zd1211-devs] Vendor driver v2.16.0.0

2006-12-23 Thread Matthieu CASTET
On Sat, 23 Dec 2006 09:23:47 -0500, Daniel Drake wrote:

 Matthieu CASTET wrote:
 BTW doing the reset in probe seems to work with new firmware :
 http://castet.matthieu.free.fr/tmp/zd_reset.diff
 
 What do you mean by 'new firmware'?
Firmware for 2.16.0.0

 Does this work on all of:
   cold plugin
yes
   warm rmmod/insmod
yes
   warm reboot
I don't try it yet.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs