[yocto] Strange USB behavior

Darren Hart dvhart at linux.intel.com
Thu Aug 18 14:06:22 PDT 2011



On 08/18/2011 12:36 PM, Chris Tapp wrote:
> On 18 Aug 2011, at 09:19, Chris Tapp wrote:
> 
>> I'm running on a platform using the Vortex86DX SoC which includes a  
>> CM119 USB audio interface.
>>
>> I've got a kernel configuration that recognizes and initializes this  
>> ok (dmesg reports it as an ALSA device). However, this is only the  
>> case if I also have a USB storage device connected when it boots!
>>
>> 1) The audio works if I boot the kernel from the USB device;
>> 2) The audio works if I boot from the system SD card and any USB  
>> storage device is connected (it's not booting from this accidentally);
>> 3) The audio does not work if I boot from the SD card without a USB  
>> storage device.
>>
>> Can anyone give me an idea where I should start looking to try and  
>> understand what's going on here?
>>
>> Kernel is a modified 'common-pc' 2.6.34 wrs that has been built  
>> using Yocto 0.9.
> 
> Looks like this is just a kernel load order issue.
> 
> The USB storage device seems to cause the sound device to initialise  
> earlier in the boot so it's ready when ALSA loads. Without it, it's  
> not loaded before ALSA, so a 'No sound card' message is produced in  
> the log - but there is one once the system is up.
> 

I asked Sarah Sharp if she had any thoughts, she responded in part:

One thing I might suspect is a problem with the host controller going
into suspend.  I think 2.6.34 didn't have support for USB suspend for
mass storage devices, so booting with a mass storage device would keep
the USB host controller from going into suspend.  This would also be
true of mice, since they did support suspend in 2.6.34, but it was
disabled by default.

Does it help if he disables USB device suspend in the kernel config?

--
Darren

> Chris Tapp
> 
> opensource at keylevel.com
> www.keylevel.com
> 
> 
> 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel



More information about the yocto mailing list