All of lore.kernel.org
 help / color / mirror / Atom feed
* question on non-kernel patch
@ 2012-04-19 20:56 Don Fry
  2012-04-20 14:09 ` John W. Linville
  0 siblings, 1 reply; 7+ messages in thread
From: Don Fry @ 2012-04-19 20:56 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

Hi John,
	We have a change to the iwlwifi driver for the near future
which will dynamically load a different module based on the version
of microcode installed on the system.  The driver does a
request_module_nowait after obtaining the firmware file loaded as part
of modprobe.  This all works fine, however unloading the module is not
symmetrical/straight forward.
	It looks like there are capabilities already implemented to
make this easy.  If I put the following script into /etc/modprobe.d
then modprobe iwlwifi-r will do the right thing.
	It is backward compatible with the current iwlwifi driver.
How do I get this out in the community before we submit the patch that
would break iwlwifi removal?

Thanks,
Don


# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-25 23:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19 20:56 question on non-kernel patch Don Fry
2012-04-20 14:09 ` John W. Linville
2012-04-20 14:41   ` Fry, Donald H
2012-04-20 15:17     ` Larry Finger
2012-04-23 18:56     ` Michal Marek
2012-04-25 19:36     ` John W. Linville
2012-04-25 23:28       ` Kay Sievers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.