diff options
author | Abhishek Sahu <absahu@codeaurora.org> | 2016-05-09 15:44:31 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-15 09:37:53 +0300 |
commit | 5c135e151aee5f7e7f2ffb336cdb3e4e041caef4 (patch) | |
tree | 5d27c4e6d88d2fde9596f61d3156788ef69e1ecc /drivers/memstick | |
parent | 2b84a4dd4be0fd6d6fecdb14040cbbc38a3b525a (diff) | |
download | linux-5c135e151aee5f7e7f2ffb336cdb3e4e041caef4.tar.xz |
i2c: qup: Fixed the DMA segments length
1. The current QCOM I2C driver code is failing for transfer length
greater than 255. This is happening due to improper segments length
as the I2C DMA segments can be maximum of 256 bytes.
2. The transfer length tlen was being initialized with 0 for 256
bytes, which is being passed for DMA mappings resulting in improper
DMA mapping length.
This patch fixes the above said problems by initializing the block
count with the values calculated in qup_i2c_set_blk_data and calculating
the remaining length for last DMA segment. Also, the block data length
need to be decremented after each transfer. Additionally, this patch
corrects the tlen assignment for DMA mapping.
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/memstick')
0 files changed, 0 insertions, 0 deletions