Re: extcon-next regression ?

2014-04-24 Thread Felipe Balbi
Hi,

On Thu, Apr 24, 2014 at 02:31:29PM +0900, Chanwoo Choi wrote:
 On 04/24/2014 02:20 AM, Felipe Balbi wrote:
  Hi,
  
  On Wed, Apr 23, 2014 at 11:40:33AM -0500, Felipe Balbi wrote:
  Hi Chanwoo,
 
  I've been testing extcon-next to make sure USB3 on OMAP5 will work out
  of the box but I see a regression when I merge your tree on top of
  v3.15-rc2 + Tony's DT fixes.
 
  Here's what I see (trimmed):
 
  [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
  [1.812516] [ cut here ]
  [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
  kobject_get+0x64/0x78()
  [1.817691]  mmcblk0boot1: unknown partition table
  [1.830601] Modules linked in:
  [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [1.84] Workqueue: deferwq deferred_probe_work_func
  [1.848728]  mmcblk0boot0: unknown partition table
  [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
  (dump_stack+0x84/0x9c)
  [1.869667] [c05426b4] (dump_stack) from [c0040928] 
  (warn_slowpath_common+0x6c/0x90)
  [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
  (warn_slowpath_null+0x1c/0x24)
  [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
  (kobject_get+0x64/0x78)
  [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
  (device_add+0x18/0x520)
  [1.903629] [c0350188] (device_add) from [c0462a5c] 
  (extcon_dev_register+0x48/0x104)
  [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
  (devm_extcon_dev_register+0x2c/0x68)
  [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
  (palmas_usb_probe+0x110/0x304)
  [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [1.967003] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [1.983678] [c0350590] (device_add) from [c045a310] 
  (of_platform_device_create_pdata+0x6c/0x8c)
  [1.993155] [c045a310] (of_platform_device_create_pdata) from 
  [c045a418] (of_platform_bus_create+0xdc/0x168)
  [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
  (of_platform_populate+0x5c/0xa0)
  [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
  (palmas_i2c_probe+0x30c/0x584)
  [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.049098] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [2.065774] [c0350590] (device_add) from [c0424020] 
  (i2c_new_device+0x12c/0x18c)
  [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
  (i2c_register_adapter+0x278/0x498)
  [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
  (omap_i2c_probe+0x4a4/0x6d0)
  [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.127194] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
  (deferred_probe_work_func+0x64/0x94)
  [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
  (process_one_work+0x1ac/0x4cc)
  [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
  (worker_thread+0x114/0x3b4)
  [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
  (kthread+0xd4/0xf0)
  [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
  (ret_from_fork+0x14/0x2c)
  [2.178259] ---[ end trace 3006de6450234d28 ]---
  [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
  uninitialized object, something is seriously wrong.
  [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [2.203201] Workqueue: deferwq deferred_probe_work_func
  [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
  

Re: extcon-next regression ?

2014-04-24 Thread Felipe Balbi
Hi,

On Thu, Apr 24, 2014 at 02:35:44PM +0900, Chanwoo Choi wrote:
 Hi Felipe,
 
 Thanks for your test and review.
 
 On 04/24/2014 03:28 AM, Felipe Balbi wrote:
  Hi,
  
  On Wed, Apr 23, 2014 at 12:20:52PM -0500, Felipe Balbi wrote:
  I've been testing extcon-next to make sure USB3 on OMAP5 will work out
  of the box but I see a regression when I merge your tree on top of
  v3.15-rc2 + Tony's DT fixes.
 
  Here's what I see (trimmed):
 
  [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
  [1.812516] [ cut here ]
  [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
  kobject_get+0x64/0x78()
  [1.817691]  mmcblk0boot1: unknown partition table
  [1.830601] Modules linked in:
  [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [1.84] Workqueue: deferwq deferred_probe_work_func
  [1.848728]  mmcblk0boot0: unknown partition table
  [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
  (dump_stack+0x84/0x9c)
  [1.869667] [c05426b4] (dump_stack) from [c0040928] 
  (warn_slowpath_common+0x6c/0x90)
  [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
  (warn_slowpath_null+0x1c/0x24)
  [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
  (kobject_get+0x64/0x78)
  [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
  (device_add+0x18/0x520)
  [1.903629] [c0350188] (device_add) from [c0462a5c] 
  (extcon_dev_register+0x48/0x104)
  [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
  (devm_extcon_dev_register+0x2c/0x68)
  [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
  (palmas_usb_probe+0x110/0x304)
  [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [1.967003] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [1.983678] [c0350590] (device_add) from [c045a310] 
  (of_platform_device_create_pdata+0x6c/0x8c)
  [1.993155] [c045a310] (of_platform_device_create_pdata) from 
  [c045a418] (of_platform_bus_create+0xdc/0x168)
  [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
  (of_platform_populate+0x5c/0xa0)
  [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
  (palmas_i2c_probe+0x30c/0x584)
  [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.049098] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [2.065774] [c0350590] (device_add) from [c0424020] 
  (i2c_new_device+0x12c/0x18c)
  [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
  (i2c_register_adapter+0x278/0x498)
  [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
  (omap_i2c_probe+0x4a4/0x6d0)
  [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.127194] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
  (deferred_probe_work_func+0x64/0x94)
  [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
  (process_one_work+0x1ac/0x4cc)
  [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
  (worker_thread+0x114/0x3b4)
  [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
  (kthread+0xd4/0xf0)
  [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
  (ret_from_fork+0x14/0x2c)
  [2.178259] ---[ end trace 3006de6450234d28 ]---
  [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
  uninitialized object, something is seriously wrong.
  [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [2.203201] Workqueue: deferwq deferred_probe_work_func
  [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [2.216789] [c0011d6c] (show_stack) 

Re: extcon-next regression ?

2014-04-24 Thread Chanwoo Choi
Hi,

On 04/24/2014 03:47 PM, Felipe Balbi wrote:
 Hi,
 
 On Thu, Apr 24, 2014 at 02:35:44PM +0900, Chanwoo Choi wrote:
 Hi Felipe,

 Thanks for your test and review.

 On 04/24/2014 03:28 AM, Felipe Balbi wrote:
 Hi,

 On Wed, Apr 23, 2014 at 12:20:52PM -0500, Felipe Balbi wrote:
 I've been testing extcon-next to make sure USB3 on OMAP5 will work out
 of the box but I see a regression when I merge your tree on top of
 v3.15-rc2 + Tony's DT fixes.

 Here's what I see (trimmed):

 [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
 [1.812516] [ cut here ]
 [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
 kobject_get+0x64/0x78()
 [1.817691]  mmcblk0boot1: unknown partition table
 [1.830601] Modules linked in:
 [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [1.84] Workqueue: deferwq deferred_probe_work_func
 [1.848728]  mmcblk0boot0: unknown partition table
 [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [1.869667] [c05426b4] (dump_stack) from [c0040928] 
 (warn_slowpath_common+0x6c/0x90)
 [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
 (warn_slowpath_null+0x1c/0x24)
 [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
 (kobject_get+0x64/0x78)
 [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
 (device_add+0x18/0x520)
 [1.903629] [c0350188] (device_add) from [c0462a5c] 
 (extcon_dev_register+0x48/0x104)
 [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
 (devm_extcon_dev_register+0x2c/0x68)
 [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
 (palmas_usb_probe+0x110/0x304)
 [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [1.967003] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [1.983678] [c0350590] (device_add) from [c045a310] 
 (of_platform_device_create_pdata+0x6c/0x8c)
 [1.993155] [c045a310] (of_platform_device_create_pdata) from 
 [c045a418] (of_platform_bus_create+0xdc/0x168)
 [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
 (of_platform_populate+0x5c/0xa0)
 [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
 (palmas_i2c_probe+0x30c/0x584)
 [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.049098] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [2.065774] [c0350590] (device_add) from [c0424020] 
 (i2c_new_device+0x12c/0x18c)
 [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
 (i2c_register_adapter+0x278/0x498)
 [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
 (omap_i2c_probe+0x4a4/0x6d0)
 [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.127194] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
 (deferred_probe_work_func+0x64/0x94)
 [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
 (process_one_work+0x1ac/0x4cc)
 [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
 (worker_thread+0x114/0x3b4)
 [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
 (kthread+0xd4/0xf0)
 [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
 (ret_from_fork+0x14/0x2c)
 [2.178259] ---[ end trace 3006de6450234d28 ]---
 [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
 uninitialized object, something is seriously wrong.
 [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [2.203201] Workqueue: deferwq deferred_probe_work_func
 [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [2.224357] 

Re: extcon-next regression ?

2014-04-24 Thread Felipe Balbi
On Thu, Apr 24, 2014 at 05:13:09PM +0900, Chanwoo Choi wrote:
 Hi,
 
 On 04/24/2014 03:47 PM, Felipe Balbi wrote:
  Hi,
  
  On Thu, Apr 24, 2014 at 02:35:44PM +0900, Chanwoo Choi wrote:
  Hi Felipe,
 
  Thanks for your test and review.
 
  On 04/24/2014 03:28 AM, Felipe Balbi wrote:
  Hi,
 
  On Wed, Apr 23, 2014 at 12:20:52PM -0500, Felipe Balbi wrote:
  I've been testing extcon-next to make sure USB3 on OMAP5 will work out
  of the box but I see a regression when I merge your tree on top of
  v3.15-rc2 + Tony's DT fixes.
 
  Here's what I see (trimmed):
 
  [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
  [1.812516] [ cut here ]
  [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
  kobject_get+0x64/0x78()
  [1.817691]  mmcblk0boot1: unknown partition table
  [1.830601] Modules linked in:
  [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [1.84] Workqueue: deferwq deferred_probe_work_func
  [1.848728]  mmcblk0boot0: unknown partition table
  [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
  (dump_stack+0x84/0x9c)
  [1.869667] [c05426b4] (dump_stack) from [c0040928] 
  (warn_slowpath_common+0x6c/0x90)
  [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
  (warn_slowpath_null+0x1c/0x24)
  [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
  (kobject_get+0x64/0x78)
  [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
  (device_add+0x18/0x520)
  [1.903629] [c0350188] (device_add) from [c0462a5c] 
  (extcon_dev_register+0x48/0x104)
  [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
  (devm_extcon_dev_register+0x2c/0x68)
  [1.921847] [c0462b44] (devm_extcon_dev_register) from 
  [c04630c0] (palmas_usb_probe+0x110/0x304)
  [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [1.967003] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [1.983678] [c0350590] (device_add) from [c045a310] 
  (of_platform_device_create_pdata+0x6c/0x8c)
  [1.993155] [c045a310] (of_platform_device_create_pdata) from 
  [c045a418] (of_platform_bus_create+0xdc/0x168)
  [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
  (of_platform_populate+0x5c/0xa0)
  [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
  (palmas_i2c_probe+0x30c/0x584)
  [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.049098] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [2.065774] [c0350590] (device_add) from [c0424020] 
  (i2c_new_device+0x12c/0x18c)
  [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
  (i2c_register_adapter+0x278/0x498)
  [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
  (omap_i2c_probe+0x4a4/0x6d0)
  [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.127194] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
  (deferred_probe_work_func+0x64/0x94)
  [2.144975] [c03524ac] (deferred_probe_work_func) from 
  [c0058c70] (process_one_work+0x1ac/0x4cc)
  [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
  (worker_thread+0x114/0x3b4)
  [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
  (kthread+0xd4/0xf0)
  [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
  (ret_from_fork+0x14/0x2c)
  [2.178259] ---[ end trace 3006de6450234d28 ]---
  [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
  uninitialized object, something is seriously wrong.
  [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [2.203201] Workqueue: deferwq deferred_probe_work_func
  [

extcon-next regression ?

2014-04-23 Thread Felipe Balbi
Hi Chanwoo,

I've been testing extcon-next to make sure USB3 on OMAP5 will work out
of the box but I see a regression when I merge your tree on top of
v3.15-rc2 + Tony's DT fixes.

Here's what I see (trimmed):

[1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
[1.812516] [ cut here ]
[1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
kobject_get+0x64/0x78()
[1.817691]  mmcblk0boot1: unknown partition table
[1.830601] Modules linked in:
[1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
3.15.0-rc2-00041-g3019b77 #308
[1.84] Workqueue: deferwq deferred_probe_work_func
[1.848728]  mmcblk0boot0: unknown partition table
[1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
(show_stack+0x10/0x14)
[1.862086] [c0011d6c] (show_stack) from [c05426b4] 
(dump_stack+0x84/0x9c)
[1.869667] [c05426b4] (dump_stack) from [c0040928] 
(warn_slowpath_common+0x6c/0x90)
[1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
(warn_slowpath_null+0x1c/0x24)
[1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
(kobject_get+0x64/0x78)
[1.895837] [c02d50c4] (kobject_get) from [c0350188] 
(device_add+0x18/0x520)
[1.903629] [c0350188] (device_add) from [c0462a5c] 
(extcon_dev_register+0x48/0x104)
[1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
(devm_extcon_dev_register+0x2c/0x68)
[1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
(palmas_usb_probe+0x110/0x304)
[1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
(platform_drv_probe+0x18/0x48)
[1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
(driver_probe_device+0x110/0x22c)
[1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
(bus_for_each_drv+0x58/0x8c)
[1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
(device_attach+0x74/0x8c)
[1.967003] [c03529c8] (device_attach) from [c035206c] 
(bus_probe_device+0x88/0xb0)
[1.975387] [c035206c] (bus_probe_device) from [c0350590] 
(device_add+0x420/0x520)
[1.983678] [c0350590] (device_add) from [c045a310] 
(of_platform_device_create_pdata+0x6c/0x8c)
[1.993155] [c045a310] (of_platform_device_create_pdata) from [c045a418] 
(of_platform_bus_create+0xdc/0x168)
[2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
(of_platform_populate+0x5c/0xa0)
[2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
(palmas_i2c_probe+0x30c/0x584)
[2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
(driver_probe_device+0x110/0x22c)
[2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
(bus_for_each_drv+0x58/0x8c)
[2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
(device_attach+0x74/0x8c)
[2.049098] [c03529c8] (device_attach) from [c035206c] 
(bus_probe_device+0x88/0xb0)
[2.057482] [c035206c] (bus_probe_device) from [c0350590] 
(device_add+0x420/0x520)
[2.065774] [c0350590] (device_add) from [c0424020] 
(i2c_new_device+0x12c/0x18c)
[2.073885] [c0424020] (i2c_new_device) from [c0424980] 
(i2c_register_adapter+0x278/0x498)
[2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
(omap_i2c_probe+0x4a4/0x6d0)
[2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
(platform_drv_probe+0x18/0x48)
[2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
(driver_probe_device+0x110/0x22c)
[2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
(bus_for_each_drv+0x58/0x8c)
[2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
(device_attach+0x74/0x8c)
[2.127194] [c03529c8] (device_attach) from [c035206c] 
(bus_probe_device+0x88/0xb0)
[2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
(deferred_probe_work_func+0x64/0x94)
[2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
(process_one_work+0x1ac/0x4cc)
[2.154545] [c0058c70] (process_one_work) from [c0059b10] 
(worker_thread+0x114/0x3b4)
[2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
(kthread+0xd4/0xf0)
[2.170695] [c005f6f0] (kthread) from [c000e3c8] 
(ret_from_fork+0x14/0x2c)
[2.178259] ---[ end trace 3006de6450234d28 ]---
[2.183081] kobject 'palmas_usb' (eca58c38): tried to add an uninitialized 
object, something is seriously wrong.
[2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
3.15.0-rc2-00041-g3019b77 #308
[2.203201] Workqueue: deferwq deferred_probe_work_func
[2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
(show_stack+0x10/0x14)
[2.216789] [c0011d6c] (show_stack) from [c05426b4] 
(dump_stack+0x84/0x9c)
[2.224357] [c05426b4] (dump_stack) from [c02d5c28] 
(kobject_add+0x88/0x98)
[2.232014] [c02d5c28] (kobject_add) from [c0350250] 
(device_add+0xe0/0x520)
[2.239758] [c0350250] (device_add) from [c0462a5c] 
(extcon_dev_register+0x48/0x104)
[2.248235] [c0462a5c] (extcon_dev_register) from [c0462b44] 
(devm_extcon_dev_register+0x2c/0x68)
[2.257901] [c0462b44] 

Re: extcon-next regression ?

2014-04-23 Thread Felipe Balbi
Hi,

On Wed, Apr 23, 2014 at 11:40:33AM -0500, Felipe Balbi wrote:
 Hi Chanwoo,
 
 I've been testing extcon-next to make sure USB3 on OMAP5 will work out
 of the box but I see a regression when I merge your tree on top of
 v3.15-rc2 + Tony's DT fixes.
 
 Here's what I see (trimmed):
 
 [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
 [1.812516] [ cut here ]
 [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
 kobject_get+0x64/0x78()
 [1.817691]  mmcblk0boot1: unknown partition table
 [1.830601] Modules linked in:
 [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [1.84] Workqueue: deferwq deferred_probe_work_func
 [1.848728]  mmcblk0boot0: unknown partition table
 [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [1.869667] [c05426b4] (dump_stack) from [c0040928] 
 (warn_slowpath_common+0x6c/0x90)
 [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
 (warn_slowpath_null+0x1c/0x24)
 [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
 (kobject_get+0x64/0x78)
 [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
 (device_add+0x18/0x520)
 [1.903629] [c0350188] (device_add) from [c0462a5c] 
 (extcon_dev_register+0x48/0x104)
 [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
 (devm_extcon_dev_register+0x2c/0x68)
 [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
 (palmas_usb_probe+0x110/0x304)
 [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [1.967003] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [1.983678] [c0350590] (device_add) from [c045a310] 
 (of_platform_device_create_pdata+0x6c/0x8c)
 [1.993155] [c045a310] (of_platform_device_create_pdata) from 
 [c045a418] (of_platform_bus_create+0xdc/0x168)
 [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
 (of_platform_populate+0x5c/0xa0)
 [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
 (palmas_i2c_probe+0x30c/0x584)
 [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.049098] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [2.065774] [c0350590] (device_add) from [c0424020] 
 (i2c_new_device+0x12c/0x18c)
 [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
 (i2c_register_adapter+0x278/0x498)
 [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
 (omap_i2c_probe+0x4a4/0x6d0)
 [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.127194] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
 (deferred_probe_work_func+0x64/0x94)
 [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
 (process_one_work+0x1ac/0x4cc)
 [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
 (worker_thread+0x114/0x3b4)
 [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
 (kthread+0xd4/0xf0)
 [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
 (ret_from_fork+0x14/0x2c)
 [2.178259] ---[ end trace 3006de6450234d28 ]---
 [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an uninitialized 
 object, something is seriously wrong.
 [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [2.203201] Workqueue: deferwq deferred_probe_work_func
 [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [2.224357] [c05426b4] (dump_stack) from [c02d5c28] 
 (kobject_add+0x88/0x98)
 [2.232014] [c02d5c28] (kobject_add) from [c0350250] 
 (device_add+0xe0/0x520)
 [2.239758] [c0350250] (device_add) from 

Re: extcon-next regression ?

2014-04-23 Thread Felipe Balbi
Hi,

On Wed, Apr 23, 2014 at 12:20:52PM -0500, Felipe Balbi wrote:
  I've been testing extcon-next to make sure USB3 on OMAP5 will work out
  of the box but I see a regression when I merge your tree on top of
  v3.15-rc2 + Tony's DT fixes.
  
  Here's what I see (trimmed):
  
  [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
  [1.812516] [ cut here ]
  [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
  kobject_get+0x64/0x78()
  [1.817691]  mmcblk0boot1: unknown partition table
  [1.830601] Modules linked in:
  [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [1.84] Workqueue: deferwq deferred_probe_work_func
  [1.848728]  mmcblk0boot0: unknown partition table
  [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
  (dump_stack+0x84/0x9c)
  [1.869667] [c05426b4] (dump_stack) from [c0040928] 
  (warn_slowpath_common+0x6c/0x90)
  [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
  (warn_slowpath_null+0x1c/0x24)
  [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
  (kobject_get+0x64/0x78)
  [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
  (device_add+0x18/0x520)
  [1.903629] [c0350188] (device_add) from [c0462a5c] 
  (extcon_dev_register+0x48/0x104)
  [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
  (devm_extcon_dev_register+0x2c/0x68)
  [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
  (palmas_usb_probe+0x110/0x304)
  [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [1.967003] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [1.983678] [c0350590] (device_add) from [c045a310] 
  (of_platform_device_create_pdata+0x6c/0x8c)
  [1.993155] [c045a310] (of_platform_device_create_pdata) from 
  [c045a418] (of_platform_bus_create+0xdc/0x168)
  [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
  (of_platform_populate+0x5c/0xa0)
  [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
  (palmas_i2c_probe+0x30c/0x584)
  [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.049098] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
  (device_add+0x420/0x520)
  [2.065774] [c0350590] (device_add) from [c0424020] 
  (i2c_new_device+0x12c/0x18c)
  [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
  (i2c_register_adapter+0x278/0x498)
  [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
  (omap_i2c_probe+0x4a4/0x6d0)
  [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
  (platform_drv_probe+0x18/0x48)
  [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
  (driver_probe_device+0x110/0x22c)
  [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
  (bus_for_each_drv+0x58/0x8c)
  [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
  (device_attach+0x74/0x8c)
  [2.127194] [c03529c8] (device_attach) from [c035206c] 
  (bus_probe_device+0x88/0xb0)
  [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
  (deferred_probe_work_func+0x64/0x94)
  [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
  (process_one_work+0x1ac/0x4cc)
  [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
  (worker_thread+0x114/0x3b4)
  [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
  (kthread+0xd4/0xf0)
  [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
  (ret_from_fork+0x14/0x2c)
  [2.178259] ---[ end trace 3006de6450234d28 ]---
  [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
  uninitialized object, something is seriously wrong.
  [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
  3.15.0-rc2-00041-g3019b77 #308
  [2.203201] Workqueue: deferwq deferred_probe_work_func
  [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
  (show_stack+0x10/0x14)
  [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
  (dump_stack+0x84/0x9c)
  [2.224357] [c05426b4] (dump_stack) from [c02d5c28] 
  (kobject_add+0x88/0x98)
  [2.232014] [c02d5c28] (kobject_add) 

Re: extcon-next regression ?

2014-04-23 Thread Chanwoo Choi
Hi Felipe,

Thanks for your test and review.

On 04/24/2014 02:20 AM, Felipe Balbi wrote:
 Hi,
 
 On Wed, Apr 23, 2014 at 11:40:33AM -0500, Felipe Balbi wrote:
 Hi Chanwoo,

 I've been testing extcon-next to make sure USB3 on OMAP5 will work out
 of the box but I see a regression when I merge your tree on top of
 v3.15-rc2 + Tony's DT fixes.

 Here's what I see (trimmed):

 [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
 [1.812516] [ cut here ]
 [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
 kobject_get+0x64/0x78()
 [1.817691]  mmcblk0boot1: unknown partition table
 [1.830601] Modules linked in:
 [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [1.84] Workqueue: deferwq deferred_probe_work_func
 [1.848728]  mmcblk0boot0: unknown partition table
 [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [1.869667] [c05426b4] (dump_stack) from [c0040928] 
 (warn_slowpath_common+0x6c/0x90)
 [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
 (warn_slowpath_null+0x1c/0x24)
 [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
 (kobject_get+0x64/0x78)
 [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
 (device_add+0x18/0x520)
 [1.903629] [c0350188] (device_add) from [c0462a5c] 
 (extcon_dev_register+0x48/0x104)
 [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
 (devm_extcon_dev_register+0x2c/0x68)
 [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
 (palmas_usb_probe+0x110/0x304)
 [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [1.967003] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [1.983678] [c0350590] (device_add) from [c045a310] 
 (of_platform_device_create_pdata+0x6c/0x8c)
 [1.993155] [c045a310] (of_platform_device_create_pdata) from 
 [c045a418] (of_platform_bus_create+0xdc/0x168)
 [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
 (of_platform_populate+0x5c/0xa0)
 [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
 (palmas_i2c_probe+0x30c/0x584)
 [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.049098] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [2.065774] [c0350590] (device_add) from [c0424020] 
 (i2c_new_device+0x12c/0x18c)
 [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
 (i2c_register_adapter+0x278/0x498)
 [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
 (omap_i2c_probe+0x4a4/0x6d0)
 [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.127194] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
 (deferred_probe_work_func+0x64/0x94)
 [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
 (process_one_work+0x1ac/0x4cc)
 [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
 (worker_thread+0x114/0x3b4)
 [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
 (kthread+0xd4/0xf0)
 [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
 (ret_from_fork+0x14/0x2c)
 [2.178259] ---[ end trace 3006de6450234d28 ]---
 [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
 uninitialized object, something is seriously wrong.
 [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [2.203201] Workqueue: deferwq deferred_probe_work_func
 [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [2.224357] [c05426b4] (dump_stack) from [c02d5c28] 
 (kobject_add+0x88/0x98)
 [2.232014] [c02d5c28] (kobject_add) 

Re: extcon-next regression ?

2014-04-23 Thread Chanwoo Choi
Hi Felipe,

Thanks for your test and review.

On 04/24/2014 03:28 AM, Felipe Balbi wrote:
 Hi,
 
 On Wed, Apr 23, 2014 at 12:20:52PM -0500, Felipe Balbi wrote:
 I've been testing extcon-next to make sure USB3 on OMAP5 will work out
 of the box but I see a regression when I merge your tree on top of
 v3.15-rc2 + Tony's DT fixes.

 Here's what I see (trimmed):

 [1.805870] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
 [1.812516] [ cut here ]
 [1.817387] WARNING: CPU: 0 PID: 6 at include/linux/kref.h:47 
 kobject_get+0x64/0x78()
 [1.817691]  mmcblk0boot1: unknown partition table
 [1.830601] Modules linked in:
 [1.833827] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [1.84] Workqueue: deferwq deferred_probe_work_func
 [1.848728]  mmcblk0boot0: unknown partition table
 [1.853928] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [1.862086] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [1.869667] [c05426b4] (dump_stack) from [c0040928] 
 (warn_slowpath_common+0x6c/0x90)
 [1.878181] [c0040928] (warn_slowpath_common) from [c00409e8] 
 (warn_slowpath_null+0x1c/0x24)
 [1.887421] [c00409e8] (warn_slowpath_null) from [c02d50c4] 
 (kobject_get+0x64/0x78)
 [1.895837] [c02d50c4] (kobject_get) from [c0350188] 
 (device_add+0x18/0x520)
 [1.903629] [c0350188] (device_add) from [c0462a5c] 
 (extcon_dev_register+0x48/0x104)
 [1.912145] [c0462a5c] (extcon_dev_register) from [c0462b44] 
 (devm_extcon_dev_register+0x2c/0x68)
 [1.921847] [c0462b44] (devm_extcon_dev_register) from [c04630c0] 
 (palmas_usb_probe+0x110/0x304)
 [1.931453] [c04630c0] (palmas_usb_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [1.940333] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [1.949664] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [1.958634] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [1.967003] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [1.975387] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [1.983678] [c0350590] (device_add) from [c045a310] 
 (of_platform_device_create_pdata+0x6c/0x8c)
 [1.993155] [c045a310] (of_platform_device_create_pdata) from 
 [c045a418] (of_platform_bus_create+0xdc/0x168)
 [2.003818] [c045a418] (of_platform_bus_create) from [c045a5cc] 
 (of_platform_populate+0x5c/0xa0)
 [2.013399] [c045a5cc] (of_platform_populate) from [c0373c78] 
 (palmas_i2c_probe+0x30c/0x584)
 [2.022606] [c0373c78] (palmas_i2c_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.031722] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.040715] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.049098] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.057482] [c035206c] (bus_probe_device) from [c0350590] 
 (device_add+0x420/0x520)
 [2.065774] [c0350590] (device_add) from [c0424020] 
 (i2c_new_device+0x12c/0x18c)
 [2.073885] [c0424020] (i2c_new_device) from [c0424980] 
 (i2c_register_adapter+0x278/0x498)
 [2.082903] [c0424980] (i2c_register_adapter) from [c04275c0] 
 (omap_i2c_probe+0x4a4/0x6d0)
 [2.091925] [c04275c0] (omap_i2c_probe) from [c0354284] 
 (platform_drv_probe+0x18/0x48)
 [2.100582] [c0354284] (platform_drv_probe) from [c0352b0c] 
 (driver_probe_device+0x110/0x22c)
 [2.109883] [c0352b0c] (driver_probe_device) from [c03511a0] 
 (bus_for_each_drv+0x58/0x8c)
 [2.118823] [c03511a0] (bus_for_each_drv) from [c03529c8] 
 (device_attach+0x74/0x8c)
 [2.127194] [c03529c8] (device_attach) from [c035206c] 
 (bus_probe_device+0x88/0xb0)
 [2.135584] [c035206c] (bus_probe_device) from [c03524ac] 
 (deferred_probe_work_func+0x64/0x94)
 [2.144975] [c03524ac] (deferred_probe_work_func) from [c0058c70] 
 (process_one_work+0x1ac/0x4cc)
 [2.154545] [c0058c70] (process_one_work) from [c0059b10] 
 (worker_thread+0x114/0x3b4)
 [2.163119] [c0059b10] (worker_thread) from [c005f6f0] 
 (kthread+0xd4/0xf0)
 [2.170695] [c005f6f0] (kthread) from [c000e3c8] 
 (ret_from_fork+0x14/0x2c)
 [2.178259] ---[ end trace 3006de6450234d28 ]---
 [2.183081] kobject 'palmas_usb' (eca58c38): tried to add an 
 uninitialized object, something is seriously wrong.
 [2.193731] CPU: 0 PID: 6 Comm: kworker/u4:0 Tainted: GW 
 3.15.0-rc2-00041-g3019b77 #308
 [2.203201] Workqueue: deferwq deferred_probe_work_func
 [2.208687] [c0015110] (unwind_backtrace) from [c0011d6c] 
 (show_stack+0x10/0x14)
 [2.216789] [c0011d6c] (show_stack) from [c05426b4] 
 (dump_stack+0x84/0x9c)
 [2.224357] [c05426b4] (dump_stack) from [c02d5c28] 
 (kobject_add+0x88/0x98)
 [2.232014] [c02d5c28] (kobject_add) from