From patchwork Mon Jun 4 14:32:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 925042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40zy8j11q7z9ryk for ; Tue, 5 Jun 2018 00:33:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503AbeFDOdA (ORCPT ); Mon, 4 Jun 2018 10:33:00 -0400 Received: from sauhun.de ([88.99.104.3]:40048 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753494AbeFDOc6 (ORCPT ); Mon, 4 Jun 2018 10:32:58 -0400 Received: from localhost (p54B3359D.dip0.t-ipconnect.de [84.179.53.157]) by pokefinder.org (Postfix) with ESMTPSA id BA4BD5434AF; Mon, 4 Jun 2018 16:32:55 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang Subject: [PATCH 0/2] i2c: gpio: fault-injector: add new injector Date: Mon, 4 Jun 2018 16:32:50 +0200 Message-Id: <20180604143252.325-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Hi, here comes another fault injector which stress tests I2C bus recovery implementations. The generic_scl algorithm in the I2C core doesn't handle this yet. I have a prototype for a fix which I want to double check tomorrow. But first, here is the test environment for it. Please share your thoughts if you have any. Thanks, Wolfram Wolfram Sang (2): i2c: gpio: fault-injector: refactor incomplete transfer i2c: gpio: fault-injector: add incomplete_write_byte Documentation/i2c/gpio-fault-injection | 43 +++++++++++++++++++------ drivers/i2c/busses/i2c-gpio.c | 57 +++++++++++++++++++++++++--------- 2 files changed, 76 insertions(+), 24 deletions(-)