<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 4:01 PM, Greg KH <span dir="ltr">&lt;<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Aug 04, 2016 at 10:32:16PM +0530, Susanoo Tux wrote:<br>
&gt; Hello All,<br>
&gt;<br>
&gt; I was looking into USB gadget mode to work on my laptop. One simple basic doubt<br>
&gt; I have is how do I know whether my USB controller supports gadget mode ? If it<br>
&gt; supports which module do I need to modprobe ? <br>
<br>
</span>Why would a laptop support gadget mode?  A USB &quot;gadget&quot; is USB hardware<br>
that acts like a device (keyboard, mouse, storage, etc.).  Laptops<br>
almost never have that type of hardware in them as they are USB &quot;hosts&quot;<br>
and control USB devices.<br>
<br>
You can buy PCI devices that act as USB gadgets, and that&#39;s used for<br>
development of systems, and many smaller devices (phone, tablets, etc.)<br>
have hardware that can act in both host and gadget mode.  But again, you<br>
need special hardware for this, something that I have never seen built<br>
into a laptop.<br>
<br>
So, sorry, I don&#39;t think you will be able to do this.<br>
<br>
greg k-h<br>
</blockquote></div><br></div><div class="gmail_extra">Hi Greg,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Its basically for embedded Linux simulation which I am running in my laptop. So, some</div><div class="gmail_extra">applications I know needs USB device mode enabled. So, this requirement came </div><div class="gmail_extra">into picture and worked on it and no use :(.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Yes, Had looked into some PCI cards, where it can be installed into desktop and </div><div class="gmail_extra">make it works as device mode. This is one option for me :). </div><div class="gmail_extra"><br></div><div class="gmail_extra">I think all the laptop manufacturers are closely depending on windows and don&#39;t enable the device</div><div class="gmail_extra">mode (OTG) or I can say they don&#39;t put the OTG supported controller :(. AFAIK, only from windows </div><div class="gmail_extra">10 on wards they have OTG support. So, bad for Linux users where  we have capability in OS but </div><div class="gmail_extra">hardware won&#39;t supports. Not sure, windows 10 based laptop hardwares supports OTG now.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Anyways, Great. Got clear picture now :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks Greg</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">SusanooTux</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>