From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Fri, 21 Nov 2014 06:29:04 -0800 Subject: from WHERE platform driver's probe is called? In-Reply-To: <1986967250.1384469.1416575781214.JavaMail.yahoo@jws10947.mail.sg3.yahoo.com> References: <1986967250.1384469.1416575781214.JavaMail.yahoo@jws10947.mail.sg3.yahoo.com> Message-ID: <20141121142904.GA28490@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Nov 21, 2014 at 01:16:21PM +0000, Sunil Shahu wrote: > Hello, > > I am looking into platform driver and devices and understood HOW platform > driver's probe is called from kernel doc and following forum. > http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050 > > For further information I went through code in platform_driver_register() and > got lost. I looked web but could not find substantiation information. > > I am still not able to locate from WHERE this probe function is called and WHO > calls it? It all starts by your own driver, you end up calling it yourself, through the driver core callbacks. > Can someone please point to source code or some other document related to this? Can you please provide a specific example of what you are wanting to see the callback chain for? What driver are you asking about? Have you read the platform code in drivers/base/ ? thanks, greg k-h