[RTEMS Project] #4592: BSP/Atsam: I2C driver doesn't return errors on NACK
RTEMS trac
trac at rtems.org
Fri Feb 11 07:37:34 UTC 2022
#4592: BSP/Atsam: I2C driver doesn't return errors on NACK
--------------------------------+---------------------------------
Reporter: Christian Mauderer | Owner: Christian Mauderer
Type: defect | Status: closed
Priority: normal | Milestone:
Component: bsps | Version: 6
Severity: normal | Resolution: fixed
Keywords: | Blocked By:
Blocking: |
--------------------------------+---------------------------------
Changes (by Christian Mauderer <christian.mauderer@…>):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"0074c9ecf3fafcceaf8a84d60304153cec7eed68/rtems"
0074c9ec/rtems]:
{{{
#!CommitTicketReference repository="rtems"
revision="0074c9ecf3fafcceaf8a84d60304153cec7eed68"
bsp/atsam/i2c: Add error return and fix edge cases
The driver didn't return with an error on (for example) a NACK on the
bus. This adds the expected error return. Due to the new case that a
transfer can be interrupted on an error, there were some new edge cases.
This patch therefore also fixes these edge cases by removing the
transfer_state that more or less duplicated the interrupt states.
Fixes #4592
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4592#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list