<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 4, 2016 at 10:38 PM, Dave Hylands <span dir="ltr">&lt;<a href="mailto:dhylands@gmail.com" target="_blank">dhylands@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Aug 4, 2016 at 10:02 AM, Susanoo Tux <span dir="ltr">&lt;<a href="mailto:susanootux@gmail.com" target="_blank">susanootux@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>I was looking into USB gadget mode to work on my laptop. One simple basic doubt I have is how do I know whether my USB controller supports gadget mode ? If it supports which module do I need to modprobe ? </div><div><br></div><div><br></div><div>Found gadget directory here /lib/modules/4.6.4-1-ARCH/kern<wbr>el/drivers/usb/gadget , but not getting which one to load. Any pointer where I can learn about this more ?<br></div></div></blockquote><div><br></div></span><div>Checkout Documentation/usb (in your kernel source tree). You&#39;ll find a bunch of files starting with the word gadget which describe the various gadget drivers and how to use them.</div></div><span class=""><font color="#888888"><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com" target="_blank">http://www.davehylands.com</a></div>
</font></span></div></div>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Hi Dave,</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for the reference, I gone through the configfs. And tried creating it, but</div><div class="gmail_extra">it&#39;s not working. I am using x86, is that configfs method configures the usb</div><div class="gmail_extra">controllers to behave a device ? because nothing is there in /sys/class/udc/.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">SusanooTux</div></div>