i2c: img-scb: support I2C_M_IGNORE_NAK
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 19 Nov 2015 09:35:13 +0000 (09:35 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 2 Jan 2016 21:03:39 +0000 (22:03 +0100)
commitc55ebe0e72737dd3d49f6fa3156313e1cab5dcab
treed70021f8e4abd2c2d83cfec35156d674fe26ca95
parent54177ccfbe95fcf250a89508a705bfe4706e3b86
i2c: img-scb: support I2C_M_IGNORE_NAK

This commit adds support for the I2C_M_IGNORE_NAK protocol
modification.

Such behaviour can only be implemented in atomic mode. So, if a
transaction contains a message with such flag the drivers
switches to atomic mode. The implementation consists simply in
treating NAKs as ACKs.

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: James Hartley <james.hartley@imgtec.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-img-scb.c
This page took 0.02637 seconds and 5 git commands to generate.