Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1228934imm; Fri, 13 Jul 2018 14:10:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNScnstgW/Mi0lsttM9HW+s3xTbv9Btmque6o3enBNlGMunNRyvbG4Qw5vhTqR9S4XzcDg X-Received: by 2002:a63:5025:: with SMTP id e37-v6mr7560587pgb.341.1531516242291; Fri, 13 Jul 2018 14:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531516242; cv=none; d=google.com; s=arc-20160816; b=lM6W/HSj3ARAFNHvcOATzXMmk0c07Pa8LVjmowjFQ/1svcYhr7trIDaD0MNiiUdnIQ UeveHJIpzt+S1Ua5ilW+lbwH2q3wm4SYGaiz9AtobniqEVog4snafKQPm1WJOEayOlf/ ybYwB6DZMLxO2zjQDAaImEHI24kcrVFGkdfskOPd4yuXudtrM+oVHGN7n/v4HJRmQuvd KoLHMmQVpidE8Pj5VLMECXVEQMfSYIY56VJh7XjkNCQ7OKP4uUwZrIN+OgAZDUwSJ/5V kGhwL7+HBA2MbYlQiScVY6kCA1sUgUs4q/60QzTKJnHtA73sQ9P7vIhJWGCtd6IcAIjF GAlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=CJEKK/GRc+1/BaRGTjqMVWVX3apHRncw3JVdPULAgOM=; b=Q670DAc6I2i9EzMXosUUCWfOQVF6ImcoqrYlYZ6n21R3T+4hvmqSdQzgl6wXl6pjsI aNI0VEHC9wNlu/eHeCb+uOPvCW7/w8H8Xw9JPDruEelRshUJw8RFYh46ev+pYAqXtwlU RTOFPdzCbRWWQNNgaK4Bk67yX1f7bPlfW3/s9fepvpHm9bZGnYHJbgIdTJZ6t+Q5a8Ip dX8rSrsEyhDostXWTl3GubgElj6lz+YZ8wrS6nNfrVe542OWQz/jmJ7N5xRi5GqaBmSk bN9KYQPndhHNbmbhhhKRKCL8eOpBT+fFbagTLaA/1iLwsNI0OBtmZytKdJ1S7jAQ9d2E kEXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="E/PhizbG"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si22871198pga.609.2018.07.13.14.10.27; Fri, 13 Jul 2018 14:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="E/PhizbG"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387712AbeGMV0I (ORCPT + 99 others); Fri, 13 Jul 2018 17:26:08 -0400 Received: from www.zeus03.de ([194.117.254.33]:48518 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732899AbeGMV0H (ORCPT ); Fri, 13 Jul 2018 17:26:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references; s=k1; bh=b6oGDBIBfv/l0HoECb650AG0im9yfc37flMn/wBVbNQ=; b=E/PhizbGDs2C nmJzLFHh6i3bLfBfp4JV+QsTa6UaIHznQLrQvmWj44hCkyZUwmb77InHDZtpaCNo iML/mnWzEYUU7jqN0MaqZ0GJ3Oo/K/n2Vc+riztk5EFYHWOS6eu3IfMmpWxUr56o /LYuBPNL3wxXVZhKsMVFGZDAhlugiP0= Received: (qmail 3547 invoked from network); 13 Jul 2018 23:09:45 +0200 Received: by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 13 Jul 2018 23:09:45 +0200 X-UD-Smtp-Session: l3s3148p1@C90y5udwfuUgAwDPW8bBAAId4P/+oMhl From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, kernel@pengutronix.de, Wolfram Sang , linux-kernel@vger.kernel.org Subject: [PATCH/RFT 5/6] i2c: imx: set SDA as output for recovery Date: Fri, 13 Jul 2018 23:09:17 +0200 Message-Id: <20180713210920.3648-6-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180713210920.3648-1-wsa+renesas@sang-engineering.com> References: <20180713210920.3648-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows for sending STOP when generating pulses which is much more robust because it will bring clients into a default state. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 3e23ee26c55c..a3881e270106 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -1009,7 +1009,7 @@ static int i2c_imx_init_recovery_info(struct imx_i2c_struct *i2c_imx, PINCTRL_STATE_DEFAULT); i2c_imx->pinctrl_pins_gpio = pinctrl_lookup_state(i2c_imx->pinctrl, "gpio"); - rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); + rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_OUT_HIGH_OPEN_DRAIN); rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); if (PTR_ERR(rinfo->sda_gpiod) == -EPROBE_DEFER || -- 2.11.0