#3162 closed defect (fixed)

I2C EEPROM driver uses incorrect program timeout handling

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 4.11.3
Component: score Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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.

Change History (2)

comment:1 Changed on Oct 2, 2017 at 11:41:28 AM by Sebastian Huber <sebastian.huber@…>

In 9c063df/rtems:

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.

comment:2 Changed on Oct 2, 2017 at 11:47:06 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 1a21831/rtems:

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.

Note: See TracTickets for help on using tickets.