Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-19 Thread John Baldwin
On Monday 19 June 2006 14:24, Ian Dowse wrote: > In message <[EMAIL PROTECTED]>, John Baldwin writes: > >On Friday 16 June 2006 20:47, Ian Dowse wrote: > >> - driver calls firmware_get, firmware image loaded and fp->file set to non-NULL > >> - manually kldload some_module_that_depends_on_firmwar

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-19 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, John Baldwin writes: >On Friday 16 June 2006 20:47, Ian Dowse wrote: >> - driver calls firmware_get, firmware image loaded and fp->file set to >> non-NULL >> - manually kldload some_module_that_depends_on_firmware_image >> - driver calls firmware_put, unloadentry

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-19 Thread John Baldwin
On Friday 16 June 2006 20:47, Ian Dowse wrote: > In message <[EMAIL PROTECTED]>, John Baldwin writes: > >But unloadentry() would never unload such a module because fp->file > >is NULL. unloadentry() would only call clearentry() and then > >linker_file_unload() on an explicitly loaded firmware mod

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-16 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, John Baldwin writes: >But unloadentry() would never unload such a module because fp->file >is NULL. unloadentry() would only call clearentry() and then >linker_file_unload() on an explicitly loaded firmware module. - driver calls firmware_get, firmware image load

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-16 Thread John Baldwin
On Thursday 15 June 2006 20:49, Ian Dowse wrote: > In message <[EMAIL PROTECTED]>, John Baldwin writes: > >On Monday 12 June 2006 20:50, Ian Dowse wrote: > >> That would bring back the original issue where a manually kldloaded > >> firmware image would be removed from the list when a driver calls >

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-15 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, John Baldwin writes: >On Monday 12 June 2006 20:50, Ian Dowse wrote: >> That would bring back the original issue where a manually kldloaded >> firmware image would be removed from the list when a driver calls >> firmware_put(), even though the kld will remain loaded;

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-13 Thread John Baldwin
On Monday 12 June 2006 20:50, Ian Dowse wrote: > In message <[EMAIL PROTECTED]>, John Baldwin writes: > >On Saturday 10 June 2006 13:04, Ian Dowse wrote: > >> Keep firmware images on the list until they have been unregistered > >> with firmware_unregister(). Previously when the last driver refe

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-12 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, John Baldwin writes: >On Saturday 10 June 2006 13:04, Ian Dowse wrote: >> Keep firmware images on the list until they have been unregistered >> with firmware_unregister(). Previously when the last driver reference >> had been dropped we would clear the list ent

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-12 Thread John Baldwin
On Saturday 10 June 2006 13:04, Ian Dowse wrote: > iedowse 2006-06-10 17:04:07 UTC > > FreeBSD src repository > > Modified files: > sys/sys firmware.h > sys/kern subr_firmware.c > Log: > Keep firmware images on the list until they have been unregiste

Re: cvs commit: src/sys/sys firmware.h src/sys/kern subr_firmware.c

2006-06-12 Thread John Baldwin
On Saturday 10 June 2006 13:04, Ian Dowse wrote: > iedowse 2006-06-10 17:04:07 UTC > > FreeBSD src repository > > Modified files: > sys/sys firmware.h > sys/kern subr_firmware.c > Log: > Keep firmware images on the list until they have been unregiste