Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5766249imm; Mon, 23 Jul 2018 05:50:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeSr0662/CI6Pdj3AGIGGLjdD8GInYzvyCbvUR3iOo4KM/fYs6PXjwGvng6a8DJhXQeoquA X-Received: by 2002:a65:4783:: with SMTP id e3-v6mr12231879pgs.235.1532350211396; Mon, 23 Jul 2018 05:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350211; cv=none; d=google.com; s=arc-20160816; b=Hddb6iH00RxfDyQUTlIDEITfWrnPcvgGwH9brk7bjywLTu2IJEumaFgC553sS+M9/f AhUQjYFPIrb2hHNZiLn+Z5ZCREjzlUiEVs6AYuTCjiFXZDKIhOI+uGm8rF1s5c1KTG51 j/iemlI6sfn9f+5FTvVTcE2/BmQXBnJaDbZxq0YJ6M2z/qT0xOL3CF7xafoIrtvazLJt hEmBvriNzYYEl5YoFUB+ASUGPAD1hfAuRE9utE+5Of8cpxkRk2NddJGpRrD9yV2c6Tof XdQWI4ERDHMHzHgdUog2sspsaUYVFWk7kTe+rskDK7wOLLaWWqjmB+DjXXFXJXo69QCW chtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Q6q8jZpfNrR3eJ6SdkLO3frkbTGVf8DXJL/kzpXY194=; b=qhww0LBsacumN0WJDz5przMIFz6mK1OvAzgSY9yNW0mwTGWRnfyuzqNDz8CN36eJ8v kAXVkOLfDIRuuPaC2PomywvQO8AMoF+Vdg284hmNlOx43q1RJjKwYJtCLGAgpQCsAQVY /7ywsf33AN+J4Ezv8iRKRWONB3j0DxX7KmwdwWl2hauWGCRR65fqZF46XBYbSfBwQqlT 4jQsH/RAo3cKpT2VNyrRqb8RnjZ7yluE59QwyHCEI4fDEDvDW1GaeqtoTGt4AYp5Rjuq eNMv8SdIZ4chjui7osoX0HhlUfbyyhh2lLfDuBDc/+OeVxGBtI0tDTkH/fnRmS2K29P5 Nr7g== ARC-Authentication-Results: i=1; mx.google.com; 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 l192-v6si8395691pge.81.2018.07.23.05.49.56; Mon, 23 Jul 2018 05:50:11 -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; 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 S2389804AbeGWNsg (ORCPT + 99 others); Mon, 23 Jul 2018 09:48:36 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:51215 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389782AbeGWNse (ORCPT ); Mon, 23 Jul 2018 09:48:34 -0400 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1fhaFM-0006uC-4L; Mon, 23 Jul 2018 14:47:28 +0200 Message-ID: <1532350048.3163.101.camel@pengutronix.de> Subject: Re: [PATCH/RFT 2/6] i2c: imx: use open drain for recovery GPIO From: Lucas Stach To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Date: Mon, 23 Jul 2018 14:47:28 +0200 In-Reply-To: <20180713210920.3648-3-wsa+renesas@sang-engineering.com> References: <20180713210920.3648-1-wsa+renesas@sang-engineering.com> <20180713210920.3648-3-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 13.07.2018, 23:09 +0200 schrieb Wolfram Sang: > I2C is open drain, so set up the GPIO accordingly. > > Signed-off-by: Wolfram Sang I don't think this matters on any of the i.MX platforms, as the GPIO pin configuration (including open-drain) is only taken from the DT pinctrl, with the GPIO driver not being able to change any of those. On the flipside this results in a near zero probability of regressions. ;) As this is obviously right even if it doesn't have any effect on current software: Reviewed-by: Lucas Stach > --- >  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 0207e194f84b..3e23ee26c55c 100644 > --- a/drivers/i2c/busses/i2c-imx.c > +++ b/drivers/i2c/busses/i2c-imx.c > @@ -1010,7 +1010,7 @@ static int i2c_imx_init_recovery_info(struct imx_i2c_struct *i2c_imx, > >   i2c_imx->pinctrl_pins_gpio = pinctrl_lookup_state(i2c_imx->pinctrl, > >   "gpio"); > >   rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); > > - rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", GPIOD_OUT_HIGH); > > + rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); >   > >   if (PTR_ERR(rinfo->sda_gpiod) == -EPROBE_DEFER || > >       PTR_ERR(rinfo->scl_gpiod) == -EPROBE_DEFER) {