[PATCH] i2c: i2c_cdns: fix write timeout on fifo boundary

2019-12-09 Thread Michael Auchter
loop if there's still data to be written. Signed-off-by: Michael Auchter --- drivers/i2c/i2c-cdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 2c0301ad08..ff3956d8c2 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers

[PATCH] cros_ec: use uint instead of uint8_t for cmd param

2019-12-09 Thread Michael Auchter
Chromium EC commands can be up to 16-bits, so using a uint8_t here can cause truncation. Update to use a uint instead. It looks like this should likely have been done as a part of 9fea76f5d30264dc08ac591a7a89427b8441555b, but this function was skipped for some reason. Signed-off-by: Michael

[PATCH 2/2] dm: i2c-gpio: add support for clock stretching

2020-02-07 Thread Michael Auchter
). This is enabled by default; for gpios which cannot be configured as inputs, the i2c-gpio,scl-output-only property can be used to fall back to the previous behavior. Signed-off-by: Michael Auchter Cc: Heiko Schocher --- doc/device-tree-bindings/i2c/i2c-gpio.txt | 2 ++ drivers/i2c/i2c-gpio.c

[PATCH 1/2] dm: i2c-gpio: rework gpio get/set functions

2020-02-07 Thread Michael Auchter
This patch reworks i2c-gpio to make it easier to switch out the implementation of the sda/scl get/set functions. This is in preparation for a patch to conditionally implement clock stretching support. Signed-off-by: Michael Auchter Cc: Heiko Schocher --- drivers/i2c/i2c-gpio.c | 133

[PATCH] dm: i2c-gpio: add support for clock stretching

2020-01-23 Thread Michael Auchter
-by: Michael Auchter Cc: Heiko Schocher --- drivers/i2c/i2c-gpio.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 4e8fa21473..80ac26e583 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c