Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2992152imm; Sun, 1 Jul 2018 09:53:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI8lWE9wOyv6eOdXvj7NJr7V/n5RZRpse3yZmj37hiPCSee0hpIw+IpCYLpQQWhIiaMEKLV X-Received: by 2002:a63:6157:: with SMTP id v84-v6mr18717038pgb.390.1530463997793; Sun, 01 Jul 2018 09:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463997; cv=none; d=google.com; s=arc-20160816; b=iKk7JhndCZL0bYf381MO5VGPDt2VgvM5erGzQkE9kjhou0a+WlWmddIW2eTL1V0pb/ 3EFB4s3xh7LbeCNGm2AMfgUc214XV8ZZ7abZ6ZeFh+ApgydWbs2I/h+AsB/OBS30ofsL 559VnWiU4+yIwEo6A2dNkk7jMB3LyOdQUflFdKNIcFvYO3h9TUCY+4uPXcWwYXukT4zk h/c39ffqQFgFqmvvr/0VqB824mw1RcW+guozsW+Br+2biVgNj1KkgE7vEYDJG0fM8a/T QCjSnxJMUCU/exuKSVKq1S2LA83tcrUeSvDlRObT2kBiqTdvmik5f+zH7ZH6eTYPh9ti xrHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2dV2oQ1TyoEGVQtb2MRW6kZBY74YaXJ5/16FiGDbkHA=; b=P6Ux1x74eWdBc2izT27x4eLx+ezFDQCQEAe3Of0B+kYGAO2SQyCvPmy5UQBnM3gX2U TMsIYcGSTgmfiVqmQEHoD40NypS1lcgQT00nbMrZPBWtPkC963zobMjihjTpkcnseFyj dOEZTroj7yRVugCrad3OlAlbi0Z5QFEdecER5PtVCdusgYdk8HFOXhCZnqW/dhpzW4iO SQnD6PNlVdp3IZkxX7YB12opPqBFm+KeVApRVu3ODFNB7xYDx3hbLf/zauF3EmSVhqxb uPbXpND4dGiyUkYBk5ygDOCFu2srOOo/kEF7trM1YMAL98Lf7lcUEX1kAppZWR7q7rpt 6WfQ== 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 v6-v6si9758341ply.300.2018.07.01.09.53.03; Sun, 01 Jul 2018 09:53:17 -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 S966000AbeGAQqM (ORCPT + 99 others); Sun, 1 Jul 2018 12:46:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38328 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965954AbeGAQqH (ORCPT ); Sun, 1 Jul 2018 12:46:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4F0DEA73; Sun, 1 Jul 2018 16:46:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Larin , Wolfram Sang , Alex Deucher , Wolfram Sang , stable@kernel.org Subject: [PATCH 4.17 206/220] Revert "i2c: algo-bit: init the bus to a known state" Date: Sun, 1 Jul 2018 18:23:50 +0200 Message-Id: <20180701160916.771492910@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wolfram Sang commit 2a2c8ee2d72c4f1ba0f7fbb02dc74f971df0f934 upstream. This reverts commit 3e5f06bed72fe72166a6778f630241a893f67799. As per bugzilla #200045, this caused a regression. I don't really see a way to fix it without having the hardware. So, revert the patch and I will fix the issue I was seeing originally in the i2c-gpio driver itself. I couldn't find new users of this algorithm since, so there should be no one depending on the new behaviour. Reported-by: Sergey Larin Fixes: 3e5f06bed72f ("i2c: algo-bit: init the bus to a known state") Signed-off-by: Wolfram Sang Acked-by: Alex Deucher Tested-by: Sergey Larin Signed-off-by: Wolfram Sang Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/algos/i2c-algo-bit.c | 5 ----- 1 file changed, 5 deletions(-) --- a/drivers/i2c/algos/i2c-algo-bit.c +++ b/drivers/i2c/algos/i2c-algo-bit.c @@ -649,11 +649,6 @@ static int __i2c_bit_add_bus(struct i2c_ if (bit_adap->getscl == NULL) adap->quirks = &i2c_bit_quirk_no_clk_stretch; - /* Bring bus to a known state. Looks like STOP if bus is not free yet */ - setscl(bit_adap, 1); - udelay(bit_adap->udelay); - setsda(bit_adap, 1); - ret = add_adapter(adap); if (ret < 0) return ret;