Skip to content

Commit

Permalink
i2c: synquacer: fix synquacer_i2c_doxfer() return value
Browse files Browse the repository at this point in the history
master_xfer should return the number of messages successfully
processed.

Fixes: 0d676a6 ("i2c: add support for Socionext SynQuacer I2C controller")
Cc: <stable@vger.kernel.org> # v4.19+
Signed-off-by: Okamoto Satoru <okamoto.satoru@socionext.com>
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Masahisa Kojima authored and Wolfram Sang committed May 27, 2019
1 parent 13067ef commit ff93789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-synquacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static int synquacer_i2c_doxfer(struct synquacer_i2c *i2c,
/* wait 2 clock periods to ensure the stop has been through the bus */
udelay(DIV_ROUND_UP(2 * 1000, i2c->speed_khz));

return 0;
return ret;
}

static irqreturn_t synquacer_i2c_isr(int irq, void *dev_id)
Expand Down

0 comments on commit ff93789

Please sign in to comment.