Skip to content
Commit 0a2456c0 authored by Antonio Tessarolo's avatar Antonio Tessarolo Committed by Carles Cufí
Browse files

i2c_imx: Fix system fault when there is no data to send



When there is no data to send (e.g. i2c message with NULL buffer and
len=0), i2c_imx driver locks itself in isr handling forever.
So if there is no data to send, only device's address must be written
on bus. This fixes i2c_shell's scan command on both imx7 and imx6sx.

Signed-off-by: default avatarAntonio Tessarolo <anthonytexdev@gmail.com>
parent fbee6cc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment