Menu

#22 module use count and device name patches

open
nobody
None
5
2003-01-20
2003-01-20
Anonymous
No

Here are a couple of patches for the USB driver:

atmel.1.usecount.patch:

This patch cleans up a lot of the module use tracking
and actually makes it possible to unload the module
without unplugging the device (and unplug the device
without unloading the module, and generally act like a
proper kernel module). This patch also cleans up a
couple of debugging/info messages I came across along
the way (printk's with no severity markers, etc)

This patch is relative to the current
patches-07-12-2002 branch, as it's the one that works
for my WUSB11 card.

atmel.2.devname.patch:

This patch adds a 'devname' module parameter which
allows the user to specify the network device name to
be used. It also changes the default network device
name to "wlan0"(/wlan1/etc), as it's more technically
correct for this hardware (these aren't really ethernet
devices), it's more consistent with things like the
prism2 drivers, and it avoids some of the issues of
this driver stealing people's eth0 when they don't want
it to.

These patches modify overlapping segments of code. the
devname patch is relative to the moduse patch, so
you'll probably need to apply them in the correct order
(as indicated by their numbers) for them both to apply
cleanly.

-alex

Discussion

  • Nobody/Anonymous

    Patch to fix module use counting

     
  • Alex Stewart

    Alex Stewart - 2003-01-20

    Logged In: YES
    user_id=61071

    ARGH! I tried to submit this and sourceforge went kablooey,
    so I waited a bit and tried to submit it again, and now it
    accepted it but it apparently forgot who I was, so it
    submitted it as an anonymous user, so now I can't attach a
    second patchfile as I'd intended to.

    Sourceforge really gets on my nerves sometimes.

    I'll post the second patch separately, I guess.. sigh.

    -alex

     

Log in to post a comment.