drivers: i2c_nrfx_twim: Remove extra path for zero-length transfers
nrfx 2.5.0 release includes the patch in the nrfx_twim driver that
fixes the driver behavior for zero-length transfers. No need to keep
the same fix in the shim layer.
This effectively reverts cb86a2b306
.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
3d609d7e5a
commit
96f20cfb99
1 changed files with 0 additions and 11 deletions
|
@ -127,17 +127,6 @@ static int i2c_nrfx_twim_transfer(const struct device *dev,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cur_xfer.primary_length == 0) {
|
|
||||||
/* For a zero-length transfer, the STOP task will not
|
|
||||||
* be triggered automatically by the shortcut with the
|
|
||||||
* event that signals the transfer end. It needs to be
|
|
||||||
* done "manually" to prevent the driver getting stuck
|
|
||||||
* after the address byte is acknowledged.
|
|
||||||
*/
|
|
||||||
nrf_twim_task_trigger(get_dev_config(dev)->twim.p_twim,
|
|
||||||
NRF_TWIM_TASK_STOP);
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = k_sem_take(&(get_dev_data(dev)->completion_sync),
|
ret = k_sem_take(&(get_dev_data(dev)->completion_sync),
|
||||||
I2C_TRANSFER_TIMEOUT_MSEC);
|
I2C_TRANSFER_TIMEOUT_MSEC);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue