Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1443970 > unrolled thread

Re: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

Started byWolfram Sang <wsa@the-dreams.de>
First post2016-07-15 08:40 +0200
Last post2016-07-15 08:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/2] i2c: qup: Fixed the DMA segments length Wolfram Sang <wsa@the-dreams.de> - 2016-07-15 08:40 +0200

#1443970 — Re: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

FromWolfram Sang <wsa@the-dreams.de>
Date2016-07-15 08:40 +0200
SubjectRe: [PATCH 2/2] i2c: qup: Fixed the DMA segments length
Message-ID<rV4WZ-3uz-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Mon, May 09, 2016 at 06:14:31PM +0530, Abhishek Sahu wrote:
> 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>

Applied to for-next, thanks!

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web