Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46Q82g5jg1zDrDT for ; Sat, 7 Sep 2019 06:16:09 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Sep 2019 13:16:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,474,1559545200"; d="scan'208";a="334989172" Received: from maru.jf.intel.com ([10.54.51.77]) by orsmga004.jf.intel.com with ESMTP; 06 Sep 2019 13:16:07 -0700 From: Jae Hyun Yoo To: Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , Ryan Chen , Tao Ren Cc: openbmc@lists.ozlabs.org, Jae Hyun Yoo Subject: [PATCH v2 dev-5.2 0/2] i2c: aspeed: Add H/W timeout support Date: Fri, 6 Sep 2019 13:16:03 -0700 Message-Id: <20190906201605.14540-1-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 20:16:12 -0000 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 could be enabled which was disabled previously. Changes since v1: - Made it use bus auto recovery feature so that bus can recover itself automatically. 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