LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-01-2014, 12:23 PM   #1
raj.pandey
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Registering dummy driver with power supply subsystem


Hi Experts,

It might sound a bit naive. I am working on a dummy driver which needs to load on a pre-condition. Driver needs to register with the power supply subsystem and does the reporting after consolidating from other drivers. Driver is not associated with any hardware so presumably no parent device.
I am initializing the device via platform_device_alloc and adding via platform_device_add. In the probe function, I am registering with the power supply subsystem via power_supply_register call and it is failing in that call. I am not getting any stack dump to figure what what exactly is failing but my suspicion is device_add call.
The suspicion more so with device_add call because this call is already made during platform_device_add call and since same device is used in registering with power supply subsystem. Ideally if the device is already added earlier the next call to device_add should simply fail and my driver should not be able to register with the PSS, but frustrating part is I am not able to figure out where the system is crashing because as I said earlier, not stack dump .

Appreciate if someone could help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Power to the PC: How to Select a Computer Power Supply LXer Syndicated Linux News 0 09-16-2010 07:12 PM
Does Power Supply, supply power? --> Need comments SHENGTON Linux - Hardware 4 07-04-2009 10:46 AM
Power supply kalleanka General 3 05-06-2006 07:12 AM
Power Supply brokenflea Linux - Hardware 6 02-24-2005 04:21 PM
Power Supply tarballedtux General 3 10-31-2001 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration