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

RTEMS trac trac at rtems.org
Mon Oct 2 11:47:06 UTC 2017


#3162: I2C EEPROM driver uses incorrect program timeout handling
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  closed
 Priority:  normal           |   Milestone:  4.11.3
Component:  cpukit           |     Version:  4.11
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |
-----------------------------+------------------------------
Changes (by Sebastian Huber <sebastian.huber@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"1a21831b3c8ed7925dbbfb3c3b04d90d5a16845d/rtems"
 1a21831/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="1a21831b3c8ed7925dbbfb3c3b04d90d5a16845d"
 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.

 Close #3162.
 }}}

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


More information about the bugs mailing list