Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp770281ybl; Wed, 11 Dec 2019 07:16:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxPulXqF0FzQd1E5pHE6RX5TWsvhl4CMM13pLXwWgghUlLAIUXDXmTJDvCoko3sqG+tDuzJ X-Received: by 2002:a9d:1b4e:: with SMTP id l72mr2686041otl.345.1576077365049; Wed, 11 Dec 2019 07:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576077365; cv=none; d=google.com; s=arc-20160816; b=iQmtQ7Q7nUeuDFwJNfoMpmvLCIYCdczh3XF4F7YL8My/o/x45rI2buF/HXtyHvUjl+ J4HdQtxOJp6ONUUHtAf9CziYDyxeZ6dzUTbp6/w+EDqV4EMHIvL9EVS5XIrTLjT9hOeY Q5imhS37Z5/OkmX2710BZcuefObR+eum7u14yl8ouDmBh/FGAwoSOvAgIoVwfmAGvaly i0RTEN9tsjK+pcwOy6lihm+jXLwCoo4OA9uEjmX6r6rZoWSMd8nkbL8imRuZH4tFfVYE 6exlhqIifi+HDMOYXzl0dm7zDxecpVvOBqqZMEgTkQsRNAnW3Z9OxGtAKHYucLiKWNzA hfVg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JdNFJSkKQYaNhgrLwHN95JjkLBghN6sBAnC97zFPy6A=; b=Rw1plJcmxMvuv8sJKioR4oRqZegldk+a4IThDFZi1XJjBfDqamdZiTTmHm6QPTqkYI Q2p2Ugq2LRoVi3Ok05WPzupe4ivc0EAriC0YbcW9bdjq11uscJBgnLGiiHkZM7Kd0z7d 6+6LdyO6QPG3IYF1TQafESYuw9JbA0m7YZE595dyqu+3bWXA8Xq89aur/sCFYWTqaC60 tazGN9t/OlrrSj899tesAmMj3GPTfVIj//IutebkNc5hCcIW3ZKohgl+kSmkHXzFhoUR xaL+thOH4ve6LH+RtIjA/gQ4Y9NOXTxiSj0akMNs7+jVA5vJ+B871wBdkr8CVPuh5E8q zetA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vYz6F2nN; 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 e21si1275119oti.246.2019.12.11.07.15.52; Wed, 11 Dec 2019 07:16:05 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=vYz6F2nN; 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 S1730870AbfLKPNw (ORCPT + 99 others); Wed, 11 Dec 2019 10:13:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:36744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731406AbfLKPNX (ORCPT ); Wed, 11 Dec 2019 10:13:23 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43170208C3; Wed, 11 Dec 2019 15:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077202; bh=DNRLEQwGx0SZ8K49kFtmbV0zzL7Hid2GPvjtmHZSL5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vYz6F2nNoPvpCbx5dGMx8KDZMEzAPwJMgloCG+GnnxZGDXupxF6Y1IpfbCowuS9Jo 1tAMYWp94of7+gV5D/cVEq3VMB/91Y4jeZ3rPKdRlbpkiucz1XivWw13FDPSqhzUgz /fide2C6PxHMQh4Ela+NeIFNCzlXq5aWmLroToKw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Dmitry Torokhov Subject: [PATCH 5.3 056/105] Input: synaptics-rmi4 - re-enable IRQs in f34v7_do_reflash Date: Wed, 11 Dec 2019 16:05:45 +0100 Message-Id: <20191211150243.200809101@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Stach commit 86bcd3a12999447faad60ec59c2d64d18d8e61ac upstream. F34 is a bit special as it reinitializes the device and related driver structs during the firmware update. This clears the fn_irq_mask which will then prevent F34 from receiving further interrupts, leading to timeouts during the firmware update. Make sure to reinitialize the IRQ enables at the appropriate times. The issue is in F34 code, but the commit in the fixes tag exposed the issue, as before this commit things would work by accident. Fixes: 363c53875aef (Input: synaptics-rmi4 - avoid processing unknown IRQs) Signed-off-by: Lucas Stach Link: https://lore.kernel.org/r/20191129133514.23224-1-l.stach@pengutronix.de Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/rmi4/rmi_f34v7.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/input/rmi4/rmi_f34v7.c +++ b/drivers/input/rmi4/rmi_f34v7.c @@ -1189,6 +1189,9 @@ int rmi_f34v7_do_reflash(struct f34_data { int ret; + f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev, + f34->fn->irq_mask); + rmi_f34v7_read_queries_bl_version(f34); f34->v7.image = fw->data;