[RTEMS Project] #3162: I2C EEPROM driver uses incorrect program timeout handling

RTEMS trac trac at rtems.org
Mon Oct 2 11:41:28 UTC 2017


#3162: I2C EEPROM driver uses incorrect program timeout handling
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  assigned
 Priority:  normal           |   Milestone:  4.11.3
Component:  cpukit           |     Version:  4.11
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by Sebastian Huber <sebastian.huber@…>):

 In [changeset:"9c063df3ab0d7617b02379a4f5ae9b47cfdc7077/rtems"
 9c063df/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="9c063df3ab0d7617b02379a4f5ae9b47cfdc7077"
 i2c: Fix EEPROM driver program timeout handling

 The RTEMS_MILLISECONDS_TO_TICKS() macro doesn't round up. Do not use it
 to calculate the program timeout in ticks. Check program done condition
 after the timeout check to account for pre-emptions.

 Update #3162.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3162#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list