Subject: Re: com rumblings...
To: Christos Zoulas <christos@astron.com>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 06/16/2006 14:01:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

>> The former.  It is bad practice, IMO, to create a softc that isn't
>> really a softc.
>
> I agree; the opl driver used to do this, and it was unclear which 
> fields
> of the softc the probe routine wanted initialized. At least 10 drivers
> used this, initializing the softc slightly differently. Some uses 
> memset()
> to 0 it initialized iot and ioh, others set an additional field and 
> did not
> bother with the rest.

Just for the records - I threw a hack like this out of the zs driver a 
while ago.

And something completely different - opl at yds and mpu at yds both 
crash on macppc when attaching - probably related?

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRJLyEspnzkX8Yg2nAQIXCAf+JwnlaY6zy4LoLGuAm+WUZYPIbkHK+9Yz
XkwLuvY5nfa3V2lA3eeM/7kgSwyAILmgfdSav0cr/J8Oxl3sAEza4+V6GMhwfhWA
7Q9ttRWg+yOFeurz/uB6PtN7Uq2imqMt4PDA/5w7tfbp9kpMsuPFWeghREkFtHEV
Y2+TvbLQIFmetLEARiu54eEUT2tlBSgaF6EavCBfpT25kv1M8+vpFLxMClyC3+WK
PEJ4kkq5uNipi8zqQkgQj4TKr+qXHXFqyPwLMDqIzSdkwjDQdlDmHRfR5ryV61Hf
FolHx/LcJA5BV3/2uf6CKuHhjIHnB8JjWR7n4k7YctgiglznNT3nwA==
=53b4
-----END PGP SIGNATURE-----