[RTEMS Project] #2335: MVME3100 libi2c broken by "IO_MANAGER: early dynamic driver registration" change

RTEMS trac trac at rtems.org
Mon Apr 27 07:11:13 UTC 2015


#2335: MVME3100 libi2c broken by "IO_MANAGER: early dynamic driver registration"
change
--------------------------+-----------------------------------
 Reporter:  nick.withers  |      Owner:
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:  4.11.1
Component:  bsps          |    Version:  4.11
 Severity:  normal        |   Keywords:  libi2c, i2c, mvme3100
--------------------------+-----------------------------------
 Commit 04cf2c5556428e836e7c024258851e24f10b2693 of the 2015-04-16 broke
 the MVME3100's libi2c driver.

 From ''src/lib/libbsp/powerpc/mvme3100/i2c/i2c_init.c'':
 {{{

         /* Initialize the library */
         if ( rtems_libi2c_initialize() ) {
                 safe_printf("Initializing I2C library failed\n");
                 return -1;
         }

         /* Register our bus driver */
         if ( (busno=rtems_libi2c_register_bus(
                                         BSP_I2C_BUS0_NAME,
                                         BSP_I2C_BUS_DESCRIPTOR) ) < 0 ) {
                 safe_perror("Registering mpc8540 i2c bus driver");
                 return -1;
         }
 }}}

 It's assumed that the i2c driver's ready to go after a successful return
 from rtems_libi2c_initialize(), which is no longer the case.

 (P.S., "_IO_Manager_drivers_inititalized" should probably be
 "_IO_Manager_drivers_initialized", too)

--
Ticket URL: <http://devel.rtems.org/ticket/2335>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list