From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jae Hyun Yoo Subject: [PATCH i2c-next 0/2] i2c: aspeed: Add H/W timeout support Date: Mon, 21 Oct 2019 13:24:12 -0700 Message-ID: <20191021202414.17484-1-jae.hyun.yoo@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Brendan Higgins , Wolfram Sang , Benjamin Herrenschmidt , Joel Stanley , Rob Herring , Mark Rutland , Andrew Jeffery , Tao Ren , Cedric Le Goater Cc: devicetree@vger.kernel.org, Jae Hyun Yoo , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-i2c@vger.kernel.org In case of multi-master environment, if a peer master incorrectly handles a bus in the middle of a transaction, I2C hardware hangs in slave state and it can't escape from the slave state, so this commit adds slave inactive timeout support to recover the bus in the case. By applying this change, SDA data-low and SCL clock-low timeout feature also can be enabled which was disabled previously. Jae Hyun Yoo (2): dt-bindings: i2c: aspeed: add hardware timeout support i2c: aspeed: add slave inactive timeout support .../devicetree/bindings/i2c/i2c-aspeed.txt | 2 + drivers/i2c/busses/i2c-aspeed.c | 82 +++++++++++++++++-- 2 files changed, 78 insertions(+), 6 deletions(-) -- 2.23.0