<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi Greg,<br></div><div><br></div><div>Thanks for the reply. <br></div><div><br></div><div>We have the device tree information and wrote in the board. In this device tree, we specify our I2c device details. <br></div><div>In usual, if the device is there, then driver probe gets called. This is the proper scenario.<br></div><div>But if the device is not there, then i2c master controller will not get the Ack from slave device. Still driver probe gets called without device<br></div><div> connected (In device tree, device node is there for slave device). <br></div><div>How the driver probe gets called?? This is the problem for us. <br></div><div><br></div><div id="Zm-_Id_-Sgn"><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px">Thanks & Regards</span></span></span></span><br></div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><b><span class="colour" style="color:rgb(192, 192, 192)">-<span> </span></span><i><span class="colour" style="color:rgb(51, 51, 51)">Asad</span></i></b></span></span></span></span><br></div><div style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="highlight" style="background-color:rgb(255, 255, 255)"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Verdana, Arial, Helvetica, sans-serif"><span class="size" style="font-size:13.3333px"><b><i><span class="colour" style="color:rgb(51, 51, 51)">  IQ Root Technologies</span></i></b></span></span></span></span><br></div></div><div><br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Fri, 23 Mar 2018 17:57:31 +0530 <b>Greg KH <greg@kroah.com></b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div>On Fri, Mar 23, 2018 at 05:47:01PM +0530, MUHAMMED ASAD P T wrote: <br></div><div>> Hi all, <br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>>  We didn't connect our i2c device with our board. But kernel driver <br></div><div>> <br></div><div>>  subsystem calls the probe function from driver code. How to debug the <br></div><div>> <br></div><div>>  issue. <br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>> our observation is as follows, <br></div><div>> <br></div><div>> <br></div><div>> <br></div><div>>  In driver, if we comment out the .id_table in driver struct, then it <br></div><div>>  is not loaded. When the device is connected or not, both the time, the <br></div><div>>  driver is not loaded. <br></div><div> <br></div><div>i2c is not a "hotplug" bus, so how would your device be found in order <br></div><div>to know to load it or not? <br></div><div> <br></div><div>Shouldn't you have some device tree information that knows to bind your <br></div><div>device to the driver properly? <br></div><div> <br></div><div>good luck! <br></div><div> <br></div><div>greg k-h <br></div><div> <br></div><div>_______________________________________________ <br></div><div>Kernelnewbies mailing list <br></div><div><a target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a> <br></div><div><a target="_blank" href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a> <br></div></div></blockquote></div><div><br></div></div><br></body></html>