[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Message du noyau



Salut,


> > > Depuis que l'on est passé en 3.2 (il me semble), on lit souvent ça
> > > dans les messages du noyau :
> > > 
> > > kernel : [191055.472723] Did not find alt setting 1 for intf 0,
> > > config 1
> > > 
> > > J'ai un peu cherché sur le net, mais rien de bien probant.
> > > 
> > > Avez-vous la même chose ? Des renseignements à ce sujet ?
> > 
> > Personne ?
> 
>    Apparemment non :-P
> 
> Tu peux toujours faire un grep dans les sources de ton noyau, cela
> pourrait te donner une indication...

Ce que j'ai fait. La chaîne crachée provient du fichier
drivers/usb/core/usb.c, et se trouve dans le bloc suivant :

struct usb_host_interface *usb_find_alt_setting(
                struct usb_host_config *config,
                unsigned int iface_num,
                unsigned int alt_num)
{
        struct usb_interface_cache *intf_cache = NULL ;
        int i ;

        for (i = 0 ; i < config->desc.bNumInterfaces ; i++) {
                if
                  (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber == iface_num) {
                        intf_cache = config->intf_cache[i] ;
                        break ;
                }
        }
        if ( !intf_cache)
                return NULL ;
        for (i = 0 ; i < intf_cache->num_altsetting ; i++)
                if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num)
                        return &intf_cache->altsetting[i] ;

        printk(KERN_DEBUG "Did not find alt setting %u for intf %u, "
                        "config %u\n", alt_num, iface_num,
                        config->desc.bConfigurationValue) ;
        return NULL ;
}
EXPORT_SYMBOL_GPL(usb_find_alt_setting) ;

Mais cela ne m'aide pas beaucoup plus.... à part le fait que c'est un
message de déboggage (KERN_DEBUG). J'en conclus que c'est un bug, mais
je ne vois ni lequel ni comment le réparer.

Peut-être que quelqu'un dans l'assemblée a une idée ?

Merci,
Steve








Reply to: