Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp698843rwb; Fri, 23 Sep 2022 02:57:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xbJEN/InuJqEg4BNE3QPUwD098FQev9KVdTWQR4OeSqUshMNkDtY+d9vw056VUwc8hbBK X-Received: by 2002:a17:90b:35ca:b0:202:61d9:d2d5 with SMTP id nb10-20020a17090b35ca00b0020261d9d2d5mr20450914pjb.50.1663927028131; Fri, 23 Sep 2022 02:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663927028; cv=none; d=google.com; s=arc-20160816; b=MFloyqXScYUxqEePCSjmjGH6maYw+rQBpV1HuPLm+IBg3r8D/gAihiEpmmvtguFD1X O5JxUNoCBgVZEjPjiZc6mEPLqPfjoEQOy1zU/dAdT9qnIDyfbmBntawhNG+eO/FwCNcu didc1Qh7HjhckqfFQIys4aqJm3mrVfUd84YdmZaHIpuY6HPWf7Q6ZKxyzsXqpnJTRLXM ZARBs3LFBaG2elpYGHiBnq/P93/Ii7IHafiRHvwExzH6Uejsl+yGIvbgFMog/OmSflgr SpuK71DXEqaRAwejxZuPOQNJsBKGPSOCkjrDHWqNUc42vSKp2VuQst/8zMiMroPNIhRc rTEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=7crnXgUhmUDKPsinAJs7KiF3E10gRKIRmlXb6HsKEMk=; b=IeOoL5ofmCm2xVI76/iQjuY8BqLGIcABJas2BToF9sqqHqz4KMJ4oiYdLh4UQkyKbM 13bNxvQ57ztNdSuccr61L1wpMmGtQKdl+r4rUWJ/0N3+rSZLYryl1JZ6BuIeDf0HRckD 7rxCetI0HGKPLweVEcKYzY4U6VKGNYexJlQaER7A1qhcwlnUL1yblTcD5B4ktSfqILZQ 4d+pqEpE+nm87dM70Tf0xWfgZ12Un/lrjXvm0W9mx0fHI95xhiVzYdAKh4GcPCBeY3E6 WX3uQonu8J7QrhDC84O6g/k6QRPPYY++RYvKoONOy0k3FrZJyShhbjZmwJYHgwVPX7mV 1CpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=KCyofKMh; dkim=pass header.i=@tq-group.com header.s=key1 header.b=iglEljJQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk5-20020a17090b224500b001fe0ec39286si2663590pjb.162.2022.09.23.02.56.56; Fri, 23 Sep 2022 02:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=KCyofKMh; dkim=pass header.i=@tq-group.com header.s=key1 header.b=iglEljJQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiIWJMg (ORCPT + 99 others); Fri, 23 Sep 2022 05:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiIWJMb (ORCPT ); Fri, 23 Sep 2022 05:12:31 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3356912E40E; Fri, 23 Sep 2022 02:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663924350; x=1695460350; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=7crnXgUhmUDKPsinAJs7KiF3E10gRKIRmlXb6HsKEMk=; b=KCyofKMh+kqeVk85vpLLqymkQI6OTuMlP9Jc3T7Tbwxly6P7tljFHgAQ VWGK3m6jKURR3eOSPX1b5r0MS510xbdieSRHwNY7pOw93pQl3RBBvqz2d 7kGIAyIB+evUhx0ukmrU1Q5lg4yqG5jVznRGd6knlaspWCmnYsBKnesLK TuNm7S3zbW4iDbo/iH2Yj/GIO/hksk2YSCNLSGeloyXYHi6bW19TfkEKS grgk6MP0kDhLejxp+D7b9Xhwu8kV8QoBkuHV4yUnCa7B4lAqcGk3qqj+f A9+jMcKB6gWkY8AKW2F19hrMs5S4Mi+BfHiBBd140mzlf6ly/r1x0tNhH Q==; X-IronPort-AV: E=Sophos;i="5.93,337,1654552800"; d="scan'208";a="26356784" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 23 Sep 2022 11:12:27 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 23 Sep 2022 11:12:27 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 23 Sep 2022 11:12:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663924347; x=1695460347; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=7crnXgUhmUDKPsinAJs7KiF3E10gRKIRmlXb6HsKEMk=; b=iglEljJQIWicaxkwaHinrmworcUuswA/tBTawfotF29tbvhDfFp2jOJk 6oq7cV8iPNsaLAE6eyyJuWChB2QNze4/E7KNlJcAxNd4/1XbX0USsS+s/ a4VD+Ia77pqhQVPamIFCtTJ3YgcKJlMnsvR29HopT2IdIpDINLuEwqDD+ X4pR6BUSat4TGt40vnfVkDgznLr0IaMPA+sIW0HPpCYDimBUNkJEEtpyJ GVI9upFVq/7fHxGx6FV1XXYFkc5KizIfS98rD03EyVa6R27Y1UHui2qgU L6aifLE2aNYkHE9WI4rBZqGF1ZacxJ8DePrFEc17IXDk6mgW6KqBGy4xO Q==; X-IronPort-AV: E=Sophos;i="5.93,337,1654552800"; d="scan'208";a="26356783" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 23 Sep 2022 11:12:27 +0200 Received: from schifferm-ubuntu (SCHIFFERM-M2.tq-net.de [10.121.49.14]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 85D1A280056; Fri, 23 Sep 2022 11:12:27 +0200 (CEST) Message-ID: Subject: Re: [PATCH 1/9] Input: synaptics-rmi4 - fix firmware update operations with bootloader v8 From: Matthias Schiffer To: Lyude Paul , Dmitry Torokhov Cc: "Jason A. Donenfeld" , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 23 Sep 2022 11:12:25 +0200 In-Reply-To: <3da8a0c9ae4e6d8a1d772498e4d4186bf969fd76.camel@redhat.com> References: <20220608124808.51402-1-matthias.schiffer@ew.tq-group.com> <20220608124808.51402-2-matthias.schiffer@ew.tq-group.com> <3da8a0c9ae4e6d8a1d772498e4d4186bf969fd76.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-09-22 at 16:06 -0400, Lyude Paul wrote: > Would add a Cc: stable@vger.kernel.org for this > > With that fixed: Reviewed-by: Lyude Paul Thanks for the review! Should I reroll with the added Cc? In my experience, patches will end up queued for stable through AUTOSEL anyways as soon as the word "fix" appears somewhere in the commit message. > > On Wed, 2022-06-08 at 14:48 +0200, Matthias Schiffer wrote: > > Commit a6977d758fed ("Input: synaptics-rmi4 - support bootloader v8 in > > f34v7") allowed the F34v7 driver to probe with bootloader v8, but it did > > not update various other bootloader version checks in the F34 code. > > > > Fixes: a6977d758fed ("Input: synaptics-rmi4 - support bootloader v8 in f34v7") > > Signed-off-by: Matthias Schiffer > > --- > > drivers/input/rmi4/rmi_f34.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/input/rmi4/rmi_f34.c b/drivers/input/rmi4/rmi_f34.c > > index e5dca9868f87..3afc94f679ed 100644 > > --- a/drivers/input/rmi4/rmi_f34.c > > +++ b/drivers/input/rmi4/rmi_f34.c > > @@ -370,7 +370,7 @@ static int rmi_firmware_update(struct rmi_driver_data *data, > > > > f34 = dev_get_drvdata(&data->f34_container->dev); > > > > - if (f34->bl_version == 7) { > > + if (f34->bl_version >= 7) { > > if (data->pdt_props & HAS_BSR) { > > dev_err(dev, "%s: LTS not supported\n", __func__); > > return -ENODEV; > > @@ -382,7 +382,7 @@ static int rmi_firmware_update(struct rmi_driver_data *data, > > } > > > > /* Enter flash mode */ > > - if (f34->bl_version == 7) > > + if (f34->bl_version >= 7) > > ret = rmi_f34v7_start_reflash(f34, fw); > > else > > ret = rmi_f34_enable_flash(f34); > > @@ -413,7 +413,7 @@ static int rmi_firmware_update(struct rmi_driver_data *data, > > f34 = dev_get_drvdata(&data->f34_container->dev); > > > > /* Perform firmware update */ > > - if (f34->bl_version == 7) > > + if (f34->bl_version >= 7) > > ret = rmi_f34v7_do_reflash(f34, fw); > > else > > ret = rmi_f34_update_firmware(f34, fw);