Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1229558imm; Fri, 13 Jul 2018 14:11:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdad0Tr45WX9mWWpnhv19zm1qL4NxB9lXHXvTlbfzegtANN8XJJsxrzssA4nhIRVLRQV5vs X-Received: by 2002:a62:b40c:: with SMTP id h12-v6mr8778395pfn.18.1531516294622; Fri, 13 Jul 2018 14:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531516294; cv=none; d=google.com; s=arc-20160816; b=qR8PDp2FzO+5gXI7fR9B48RDJEtOwjtrmIZcgwf/43eVjXACXQ+JY/qpdy4nhtuNiD m+yFq+ShHxfgFZr17Ue+SST0hGtNzSTgw2Arswdgq4ajVngJ7d3/9hqt3S6gaCkYNA0c UW1TjS/NflRcgOct4ZbHJMM1Fa0Ti5F8hh/uhfOEXtKxzxlHZlskEzLy2UM2ExCGDnrV I/FEjfo9b1cHYx2V788jB8P7e62ZBHN8KI1zaRFmebVjKRsPQbfUxxCCr4/XGUXXhZ4G JNvIP3QSUNQE+0ATeYHlmeXRmnno33bXRnwZLfMhjAuy4FUJU3SQnHjXWi5F8ogJM+Lx odQQ== 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=+EMODTTa57xjK0RYtfj0EjlKBcp+ZVT/ffOa6eLCrEI=; b=kA8f2NLgEcTrGhZfGYttZQay3/6Wim7ASG65D7mzbZQbxnadd60YvAh5yMQs5v7pF5 dZKz799p26GRml63HNlLMLrCm94SIBvexqpbCkWs2SR7UF/kD2pTH9VEDHkhaBgKU0em SynKJLPn5qT4T5abH/tAIXZybWKBhB3FlFgli8zb5t/Fd+YxihBPps31NCHtAshr66r9 QW7RQGF7zR0cNEgkRFIAb6x4AdxJ0aKkmMaHh8R1yVvnZr+9Mx5CbtN7EtheEei7L7Et Rmu1XG2t/DuVY0VCOBcg49GOV662CY31zEZv2UFmfmsyXrKcrBt42vyV6ebTtEUY4c3C EbNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="Sdjk2/9p"; 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 b6-v6si28133886pfb.131.2018.07.13.14.11.20; Fri, 13 Jul 2018 14:11:34 -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="Sdjk2/9p"; 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 S1732688AbeGMV0E (ORCPT + 99 others); Fri, 13 Jul 2018 17:26:04 -0400 Received: from www.zeus03.de ([194.117.254.33]:48434 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731962AbeGMV0E (ORCPT ); Fri, 13 Jul 2018 17:26:04 -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=ULm2Bo/WMxPVBZgzWE5gkC4xnOYTVZj8SgrPVWn9sy0=; b=Sdjk2/9pzZ+3 hc7KGchkgL7ASY/+UidBjOZNqm843yGSUylsiuw83SBWP7+IPgBGPI28j/QF/zOK J8svp2CGnG/DIOJa7LYJsWRXb1kEVhUPEr3Uod/eIv/ThPuknRv6Wd6hGY5zDNlk RwFwGAKDH8VVSVBaU2uu2lN2TaqH31I= Received: (qmail 3404 invoked from network); 13 Jul 2018 23:09:42 +0200 Received: by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 13 Jul 2018 23:09:42 +0200 X-UD-Smtp-Session: l3s3148p1@NHUL5udwduUgAwDPW8bBAAId4P/+oMhl From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, kernel@pengutronix.de, Wolfram Sang , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , linux-kernel@vger.kernel.org Subject: [PATCH/RFT 1/6] i2c: designware: use open drain for recovery GPIO Date: Fri, 13 Jul 2018 23:09:13 +0200 Message-Id: <20180713210920.3648-2-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 I2C is open drain, so set up the GPIO accordingly. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-designware-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c index fc7c255c80af..a546db80f53e 100644 --- a/drivers/i2c/busses/i2c-designware-master.c +++ b/drivers/i2c/busses/i2c-designware-master.c @@ -665,7 +665,7 @@ static int i2c_dw_init_recovery_info(struct dw_i2c_dev *dev) struct gpio_desc *gpio; int r; - gpio = devm_gpiod_get(dev->dev, "scl", GPIOD_OUT_HIGH); + gpio = devm_gpiod_get(dev->dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); if (IS_ERR(gpio)) { r = PTR_ERR(gpio); if (r == -ENOENT || r == -ENOSYS) -- 2.11.0