Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2014 10:38:01 +0200
From:      Marius Strobl <marius@alchemy.franken.de>
To:        Hans Petter Selasky <hselasky@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r266006 - head/sys/modules/sound/driver/uaudio
Message-ID:  <20140514083801.GC679@alchemy.franken.de>
In-Reply-To: <201405140733.s4E7X6Ux080638@svn.freebsd.org>
References:  <201405140733.s4E7X6Ux080638@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 14, 2014 at 07:33:06AM +0000, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Wed May 14 07:33:06 2014
> New Revision: 266006
> URL: http://svnweb.freebsd.org/changeset/base/266006
> 
> Log:
>   Change the USB audio kernel module linking order, so that the USB
>   audio device driver is detached first and not its children. This fixes
>   a panic in some cases when unloading "snd_uaudio" while a USB device
>   is plugged. The linking order affects the order in which the module
>   dependencies are registered.

The right way of specifying that uaudio should be registered last, i. e.
after other device drivers employing DRIVER_MODULE(), would be using:
DRIVER_MODULE_ORDER(uaudio, uhub, uaudio_driver, uaudio_devclass, NULL, NULL,
    SI_ORDER_ANY);
instead of the existing DRIVER_MODULE() in uaudio.c.

Marius




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140514083801.GC679>