All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mathieu Geli <geli@enseirb.fr>
Cc: clemens@ladisch.de, nwgbh@swissonline.ch,
	alsa-devel@lists.sourceforge.net
Subject: Re: snd-usb-audio and midisport1x1 little hack fixes hotplug pb
Date: Tue, 16 Mar 2004 16:59:02 +0100	[thread overview]
Message-ID: <s5h8yi0g4vt.wl@alsa2.suse.de> (raw)
In-Reply-To: <20040313043234.49d783bb.geli@enseirb.fr>

At Sat, 13 Mar 2004 04:32:34 +0100,
Mathieu Geli wrote:
> 
> Ok, I applied your second patch, and get this dmesg output:
> 
> drivers/usb/core/usb.c: deregistering driver snd-usb-audio
> ALSA /home/mathieu/alsa-driver/usb/usbaudio.c:2944: snd_usb_audio_disconnect called, refcount = 1
> ALSA /home/mathieu/alsa-driver/usb/usbaudio.c:2944: snd_usb_audio_disconnect called, refcount = 0
> ALSA /home/mathieu/alsa-driver/alsa-kernel/usb/usbmidi.c:148: urb status -104
> ALSA /home/mathieu/alsa-driver/alsa-kernel/usb/usbmidi.c:134: usb_submit_urb: -32

this means that the urbs are still active.  i'm not sure whether these
messages appear after or before calling snd_usbmidi_disconnect(),
though.

> At this point the usb was down not responding anymore, like in the past.
> 
> what I did next, is put double each interesting lines printk, what I
> get is, that the rmmod of the driver was hanging on the midi
> ressources cleaning stuff. 
> Hum, first reflex: I just comment out those 3 lines =) and guess
> what.. that works fine now. I tried to plug/unplug several times my
> mouse, the midisport, and everything 
> works fine, so... I don't really know what was the bug's reason, but
> as long as that works I'm happy ;-) 

i also don't know yet why disconnect() call hangs up.
could you check at which point it happens by adding printk()'s in
snd_usbmidi_disconnect()?

the resource release can work even without disconnect() call, since
the clean up will be done later also by the workqueue when all devices
are closed properly.  the disconnect function should shut up possible
hardware features immediately.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

  parent reply	other threads:[~2004-03-16 15:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-11 14:16 snd-usb-audio hang when rmmoding after unplugging midisport1x1 Mathieu Geli
2004-03-11 15:46 ` Clemens Ladisch
2004-03-11 19:46   ` Mathieu Geli
2004-03-11 20:31     ` Mathieu Geli
2004-03-12  0:17       ` Hartmut Geissbauer
2004-03-12 12:17     ` Clemens Ladisch
2004-03-13  3:32       ` snd-usb-audio and midisport1x1 little hack fixes hotplug pb Mathieu Geli
2004-03-15 18:43         ` Hartmut Geissbauer
2004-03-16 15:59         ` Takashi Iwai [this message]
2004-03-16 17:03         ` Clemens Ladisch
2004-03-16 17:51           ` Hartmut Geissbauer
2004-03-17  8:03             ` Clemens Ladisch
2004-03-23 18:24               ` [fixed] " Hartmut Geissbauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h8yi0g4vt.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=geli@enseirb.fr \
    --cc=nwgbh@swissonline.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.