Hello,
I have been looking into the Linux kernel (3.14.49) driver for I2C controller (i2c-omap.c) and I do not find support for I2C_M_RECV_LEN flag.
From what I can see in the implementation, the FIFOs are configured according to the length given from i2c message structure. So, in fact, the application "must" know what length it "expects".
The flag I2C_M_RECV_LEN tells the driver that the length of the response will be sent in the first byte of the response. It is used in SMbus read block command.
I have a chip connected to the I2C controller and the chip uses a protocol, that requires the flag. So my question is, can I use it on AM335x?
Are there any limitations that do not allow using this mode? If yes, how can I use AM335x and the chip that requires this operation mode?
If this is an incorrect forum, please tell me where can I look for answers.
Best regards,
Rafal Fabich