i2c: qup: Fix wrong value of index variable
authorSricharan R <sricharan@codeaurora.org>
Fri, 10 Jun 2016 18:08:20 +0000 (23:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 10:54:49 +0000 (12:54 +0200)
commitf5be1dff829038ff2225238291c67fdeb7caa0c9
treeab495ec63dc152207406164eab8569f3a1b8ed2a
parent9388174e5d878444e78103f9e97e656a463bc5e4
i2c: qup: Fix wrong value of index variable

commit d4f56c7773483b8829e89cfc739b7a5a071f6da0 upstream.

index gets incremented during check to determine if the
messages can be transferred with dma. But not reset after
that, resulting in wrong start value in subsequent loop,
causing failure. Fix it.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-qup.c