#11460 NORM 1.75-so: Accelerometer driver attempts to install twice on B1

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 15 12:06:47 EST 2011


#11460: Accelerometer driver attempts to install twice on B1
-----------------------+----------------------------------------------------
 Reporter:  greenfeld  |                 Owner:               
     Type:  defect     |                Status:  new          
 Priority:  normal     |             Milestone:  1.75-software
Component:  kernel     |               Version:  not specified
 Keywords:             |           Next_action:  diagnose     
 Verified:  0          |   Deployment_affected:               
Blockedby:             |              Blocking:               
-----------------------+----------------------------------------------------
 The accelerometer driver tries to register the same sysfs node twice on
 B1's with a kernel RPM created yesterday.

 On a C1 the initialization fails the first time around but claims to work
 the second time for the 16-bit sensor.

 Seen with 3.0.0_xo1.75-20111114.1639.olpc.184b135.

 {{{
 [  661.434822] brd: module loaded
 [  661.450245] lis3lv02d: 8 bits sensor found
 [  661.595025] input: ST LIS3LV02DL Accelerometer as
 /devices/platform/lis3lv02d
 [  661.610911] lis3lv02d: 16 bits sensor found
 [  661.621497] ------------[ cut here ]------------
 [  661.632497] WARNING: at fs/sysfs/dir.c:455 sysfs_add_one+0x68/0x88()
 [  661.645284] sysfs: cannot create duplicate filename
 '/devices/platform/lis3lv
 02d'
 [  661.659230] Modules linked in:
 [  661.668646] [<c00359ac>] (unwind_backtrace+0x0/0x120) from [<c004649c>]
 (warn
 _slowpath_common+0x4c/0x64)
 [  661.691158] [<c004649c>] (warn_slowpath_common+0x4c/0x64) from
 [<c0046534>] (
 warn_slowpath_fmt+0x2c/0x3c)
 [  661.714154] [<c0046534>] (warn_slowpath_fmt+0x2c/0x3c) from
 [<c010e290>] (sys
 fs_add_one+0x68/0x88)
 [  661.737074] [<c010e290>] (sysfs_add_one+0x68/0x88) from [<c010e310>]
 (create_
 dir+0x60/0xa8)
 [  661.752690] [<c010e310>] (create_dir+0x60/0xa8) from [<c010e430>]
 (sysfs_crea
 te_dir+0xb8/0xd4)
 [  661.768663] [<c010e430>] (sysfs_create_dir+0xb8/0xd4) from [<c017c59c>]
 (kobject_add_internal+0x134/0x224)
 [  661.793245] [<c017c59c>] (kobject_add_internal+0x134/0x224) from
 [<c017c9a0>] (kobject_add+0x68/0x8c)
 [  661.817862] [<c017c9a0>] (kobject_add+0x68/0x8c) from [<c01ca798>]
 (device_add+0xd0/0x55c)
 [  661.834182] [<c01ca798>] (device_add+0xd0/0x55c) from [<c01ce734>]
 (platform_device_add+0x140/0x1a4)
 [  661.859633] [<c01ce734>] (platform_device_add+0x140/0x1a4) from
 [<c01ce9d8>] (platform_device_register_resndata+0x58/0x7c)
 [  661.887563] [<c01ce9d8>] (platform_device_register_resndata+0x58/0x7c)
 from [<c01d85b8>] (lis3lv02d_init_device+0x1d4/0x578)
 [  661.916022] [<c01d85b8>] (lis3lv02d_init_device+0x1d4/0x578) from
 [<c037fbc0>] (lis3lv02d_i2c_probe+0x170/0x1d4)
 [  661.943780] [<c037fbc0>] (lis3lv02d_i2c_probe+0x170/0x1d4) from
 [<c023e7f8>] (i2c_device_probe+0xa0/0xd8)
 [  661.971180] [<c023e7f8>] (i2c_device_probe+0xa0/0xd8) from [<c01cce94>]
 (driver_probe_device+0x144/0x268)
 [  661.999174] [<c01cce94>] (driver_probe_device+0x144/0x268) from
 [<c01cd018>] (__driver_attach+0x60/0x84)
 [  662.027281] [<c01cd018>] (__driver_attach+0x60/0x84) from [<c01cbf1c>]
 (bus_for_each_dev+0x4c/0x78)
 [  662.084081] [<c01cc67c>] (bus_add_driver+0xbc/0x23c) from [<c01cd5a4>]
 (driver_register+0xa8/0x12c)
 [  662.113123] [<c01cd5a4>] (driver_register+0xa8/0x12c) from [<c023eb60>]
 (i2c_register_driver+0x40/0xd4)
 [  662.142877] [<c023eb60>] (i2c_register_driver+0x40/0xd4) from
 [<c002a4f8>] (do_one_initcall+0x9c/0x16c)
 [  662.172730] [<c002a4f8>] (do_one_initcall+0x9c/0x16c) from [<c0008994>]
 (kernel_init+0x74/0x118)
 [  662.191878] [<c0008994>] (kernel_init+0x74/0x118) from [<c0030f54>]
 (kernel_thread_exit+0x0/0x8)
 [  662.210990] ---[ end trace 4740aa524e67b357 ]---
 [  662.225735] kobject_add_internal failed for lis3lv02d with -EEXIST,
 don't try to register things with the same name in the same directory.
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/11460>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list