From patchwork Fri Jan 15 12:54:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoichi Yuasa X-Patchwork-Id: 8040241 Return-Path: X-Original-To: patchwork-ltsi-dev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 90BB4BEEE5 for ; Fri, 15 Jan 2016 13:25:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69D7C20454 for ; Fri, 15 Jan 2016 13:25:23 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71BBF2044C for ; Fri, 15 Jan 2016 13:25:22 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 59D7C8D7; Fri, 15 Jan 2016 13:25:22 +0000 (UTC) X-Original-To: ltsi-dev@lists.linuxfoundation.org Delivered-To: ltsi-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 449248D7 for ; Fri, 15 Jan 2016 13:25:20 +0000 (UTC) X-Greylist: delayed 00:30:07 by SQLgrey-1.7.6 Received: from mo-sg-fb.iij4u.or.jp (mo-sg-fb1500.iij4u.or.jp [210.130.239.7]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 1F7A589 for ; Fri, 15 Jan 2016 13:25:18 +0000 (UTC) Received: by mo-sg-fb.iij4u.or.jp (4u-mo-sg-fb1500) id u0FCtEFp008085; Fri, 15 Jan 2016 21:55:14 +0900 Received: by mo-sg.iij4u.or.jp (4u-mo-sg1501) id u0FCsuBn004095; Fri, 15 Jan 2016 21:54:56 +0900 Received: from delta (242.108.240.49.ap.yournet.ne.jp [49.240.108.242]) by mbox.iij4u.or.jp (4u-mbox1500) id u0FCssfQ027313 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 15 Jan 2016 21:54:56 +0900 Date: Fri, 15 Jan 2016 21:54:54 +0900 From: Yoichi Yuasa To: Greg Kroah-Hartman Message-Id: <20160115215454.188d9afdf87363204a350eaa@linux-mips.org> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org Cc: ltsi-dev@lists.linuxfoundation.org, yuasa@linux-mips.org Subject: [LTSI-dev] [PATCH for 4.1.15-ltsi-rc2] Input: rohm_bu21023 - fix handling of retrying X-BeenThere: ltsi-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "A list to discuss patches, development, and other things related to the LTSI project" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ltsi-dev-bounces@lists.linuxfoundation.org Errors-To: ltsi-dev-bounces@lists.linuxfoundation.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Greg, This is a fix for rohm_bu21023. It has been picked from mainline. From 415a249f88fd263bed0f7cca86ecde8c57aba9dc Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 6 Jan 2016 14:44:02 -0800 Subject: [PATCH] Input: rohm_bu21023 - fix handling of retrying firmware update Because of the wrong condition we'd never retry firmware update. Acked-by: Yoichi Yuasa Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/rohm_bu21023.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c index ba6024f..611156a 100644 --- a/drivers/input/touchscreen/rohm_bu21023.c +++ b/drivers/input/touchscreen/rohm_bu21023.c @@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct i2c_client *client, break; error = -EIO; - } while (++retry >= FIRMWARE_RETRY_MAX); + } while (++retry <= FIRMWARE_RETRY_MAX); out: error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);