<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m testing USB3 device support on an Atom E3800 based system.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The system is running Yocto including the Atom E3800 BSP (valleyisland-4.0-jethro-2.0).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have the USB3 PCI device controller appearing in the list of PCI devices:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">00:16.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series OTG USB Device (rev 11)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So the controller is recognized by Yocto and the dwc3 driver also loads without any errors.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, when loading the g_mass_storage driver to emulate a mass storage device, I get the following error in dmesg:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">dwc3 dwc3.0.auto: failed to enable ep0out<br>
<br>
Just before the error I have the following in the log originating from the dwc3_send_gadget_ep_cmd() function in the dwc3 driver:<br>
<br>
[70392.820683] dwc3 dwc3.0.auto: ep0out: ep 0 cmd 'Start New Configuration' params 00000000 00000000 00000000<br>
[70392.820695] dwc3 dwc3.0.auto: ep0out: ep 0 cmd 'Set Endpoint Configuration' params 00001000 00000500 00000000<br>
<br>
The first command i.e. “Start New Configuration” seems to work fine, but the second one times out and the driver bails out.<br>
<br>
Any ideas on how to proceed from this are highly appreciated.<br>
<br>
Best Regards,<br>
Anders Christensen<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Senior Firmware Developer<br>
Global Scanning, Denmark<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>