Skip to content

Commit

Permalink
Merge branch 'i2c/for-current' into i2c/for-next
Browse files Browse the repository at this point in the history
  • Loading branch information
wsakernel committed Mar 31, 2021
2 parents 24f9176 + 629a411 commit 58da3e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Bindings for GPIO bitbanged I2C

maintainers:
- Wolfram Sang <[email protected]>
- Wolfram Sang <[email protected]>

allOf:
- $ref: /schemas/i2c/i2c-controller.yaml#
Expand Down
3 changes: 0 additions & 3 deletions Documentation/devicetree/bindings/i2c/i2c-imx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale Inter IC (I2C) and High Speed Inter IC (HS-I2C) for i.MX

maintainers:
- Wolfram Sang <[email protected]>

allOf:
- $ref: /schemas/i2c/i2c-controller.yaml#

Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-hix5hd2.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2014 Linaro Ltd.
* Copyright (c) 2014 Hisilicon Limited.
* Copyright (c) 2014 HiSilicon Limited.
*
* Now only support 7 bit address.
*/
Expand Down
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-jz4780.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ static irqreturn_t jz4780_i2c_irq(int irqno, void *dev_id)
i2c_sta = jz4780_i2c_readw(i2c, JZ4780_I2C_STA);
data = *i2c->wbuf;
data &= ~JZ4780_I2C_DC_READ;
if ((!i2c->stop_hold) && (i2c->cdata->version >=
ID_X1000))
if ((i2c->wt_len == 1) && (!i2c->stop_hold) &&
(i2c->cdata->version >= ID_X1000))
data |= X1000_I2C_DC_STOP;
jz4780_i2c_writew(i2c, JZ4780_I2C_DC, data);
i2c->wbuf++;
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-stm32f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static void stm32f4_i2c_handle_rx_addr(struct stm32f4_i2c_dev *i2c_dev)
default:
/*
* N-byte reception:
* Enable ACK, reset POS (ACK postion) and clear ADDR flag.
* Enable ACK, reset POS (ACK position) and clear ADDR flag.
* In that way, ACK will be sent as soon as the current byte
* will be received in the shift register
*/
Expand Down

0 comments on commit 58da3e5

Please sign in to comment.