aboutsummaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorJaemin Yoo <jmin.yoo@samsung.com>2013-03-26 04:29:56 +0000
committerWolfram Sang <wsa@the-dreams.de>2013-04-09 11:23:05 +0200
commit85747311ecb6167c989093c64a13807366fdd3a9 (patch)
treef0fdf82d8c9173441bfce04a5b7dfcf491ce908d /Kconfig
parent51d95709dddf7fdf6769a547de37a9c98edf8df9 (diff)
i2c: s3c2410: Add SMBus emulation for block read
SMBus read and write are supported by the emulation layer of i2c framework if the controller doesn't have SMBus features. I2C_M_RECV_LEN flag is used to let i2c drivers know rx length is not yet determined but will be read to the first byte in rx buffer. s3c2410 doesn't handle this flag. So only one byte is read from slave. There fore following two features are added to the driver code. 1. skip rx length check if I2C_M_RECV_LEN is set and the length is 1. 2. add actual bytes to the rx length after reading first bytes if I2C_M_RECV_LEN. I2C_M_RECV_LEN is only set for SMBus command. So this code does not affect legacy codes which only use i2c command for s3c2410. Signed-off-by: Jaemin Yoo <jmin.yoo@samsung.com> Tested-by: Prasanna Kumar <prasanna.ps@samsung.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions