Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp140201rdg; Thu, 12 Oct 2023 00:52:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFIzVIXLTFRGQxr+979G4ZbHDC6HXLVANofgtY5ucKqGR/77NP7cASyIKHH2bIY/JGxDGs X-Received: by 2002:a05:620a:1aa9:b0:767:f1e8:d38c with SMTP id bl41-20020a05620a1aa900b00767f1e8d38cmr28711913qkb.15.1697097126662; Thu, 12 Oct 2023 00:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697097126; cv=none; d=google.com; s=arc-20160816; b=db8gjxqNX9Ox7AoujZZha+b4d2jt0qFX37I5D3WKgAHb+g1KS2jJyWoTpp2BIaiVuI EfeswBfPuax9S+hH/Eu5ouw8hR4HcJQQgbg8cR9ucOtvq5fcnoZfQK2QBRSfR5KMoUPe yg8Hqe//sesqqxrG+cZALghA5PhwkO6XnkPMkPvMZExwh+YePwNmc+0yohbMlxFU9apf IJ7otf/UeMOQ63nhUaLQJervUjdbaHnTPZGCcng8+OKn/B13nTytAKTc1vF/TnT/G81d +7sbgMdGMlqX/UrzBB1WbE89kAKsfE4eQ6bSiic6ItYl63ZGHEQ2KUp2BLGw2+csu4BY 9A5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=IKxDqpYuWFgY+jUM6aKU1g9Q72AhrBRR9A6f3L+3nBY=; fh=CiSD+sDcM/vm9f98Zb1jfQM5vLxZHgsfZXDTHW5vPyc=; b=PliMYFQWajhM605qPmjaipF4i9TVqSAeaGMImq3wZLDOgKTXz9Zekh9e2nywfu4Eb6 tEzFgnLzU3LKgSWoYfkORp50diSIDXlZIcdIJqHDVlhxc9GHBFowhjtwJj4oU6JoED6y vkMOGOPEv6wx7hnB01WplWVka6AnhuZxPXBXXgw/OAyK1LQtcWn+Ok6GYvx7QSKH6NlO dq3kmQ4tvN02dK3/F/13zfQd1RIOKzXAL0JYSKJG/c4yM3iMmTPZloboUKy98KvMt48n xUpp2QfM4fb/L2UWfWrZwQCqcjmm3nWvbgWwaBPRLOZMRiKRm6WFtiZrszIgDqSNkg1i cjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=iXUhG+Pe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e23-20020a656497000000b00588fe3d83b3si1665678pgv.408.2023.10.12.00.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:52:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=iXUhG+Pe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3CF9A804B001; Thu, 12 Oct 2023 00:51:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378064AbjJLHvf (ORCPT + 99 others); Thu, 12 Oct 2023 03:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378087AbjJLHvd (ORCPT ); Thu, 12 Oct 2023 03:51:33 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B3BC6 for ; Thu, 12 Oct 2023 00:51:29 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C0399240029 for ; Thu, 12 Oct 2023 09:51:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1697097087; bh=IKxDqpYuWFgY+jUM6aKU1g9Q72AhrBRR9A6f3L+3nBY=; h=Message-ID:Subject:From:To:Cc:Date:Content-Transfer-Encoding: MIME-Version:From; b=iXUhG+Pe8MVO/M9kKMgYMuasYm4yDYOPNPDa+YS/e3AlA/syrxqAKHBDbpEV2666Y KfZGKRhWDVLrlq37Yujf0eMVGmFaaE198XZcnAfXngqSpqR22BvRXGZRtwRwPAKy5h 2jgUS+OCJNJyvnXFHw7znCXJtUAQGNI4x3x/LIpsz0S2M77itz5XWmS23wsAz6/hgY ytW7MouXGvF0vdGW86WYeLaFc9XsH92cch+RiVxGsAaK5t4yiJuYBTtie/c5cbeEzG lc0kgXA/QWP2SvXwczb8y2vQtxofFwQjl5QHLKVPctkxQxP78pRK+kuMloOGOV5s53 OC+FaPWKOm1jg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S5hfQ5yxJz6txR; Thu, 12 Oct 2023 09:51:26 +0200 (CEST) Message-ID: <15fd0e0400e5edab7f86e2f51ba3cb4faa52ed79.camel@posteo.de> Subject: Re: [PATCH] hid: lenovo: Resend all settings on reset_resume for compact keyboards From: Martin Kepplinger To: jikos@kernel.org, benjamin.tissoires@redhat.com, jm@lentin.co.uk, linux-kernel@vger.kernel.org Cc: linux-input@vger.kernel.org, stable@vger.kernel.org Date: Thu, 12 Oct 2023 07:51:26 +0000 In-Reply-To: <20231002150914.22101-1-martink@posteo.de> References: <20231002150914.22101-1-martink@posteo.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:51:57 -0700 (PDT) QW0gTW9udGFnLCBkZW0gMDIuMTAuMjAyMyB1bSAxNTowOSArMDAwMCBzY2hyaWViIE1hcnRpbiBL ZXBwbGluZ2VyOgo+IEZyb206IEphbWllIExlbnRpbiA8am1AbGVudGluLmNvLnVrPgo+IAo+IFRo ZSBVU0IgQ29tcGFjdCBLZXlib2FyZCB2YXJpYW50IHJlcXVpcmVzIGEgcmVzZXRfcmVzdW1lIGZ1 bmN0aW9uIHRvCj4gcmVzdG9yZSBrZXlib2FyZCBjb25maWd1cmF0aW9uIGFmdGVyIGEgc3VzcGVu ZCBpbiBzb21lIHNpdHVhdGlvbnMuCj4gTW92ZQo+IGNvbmZpZ3VyYXRpb24gbm9ybWFsbHkgZG9u ZSBvbiBwcm9iZSB0byBsZW5vdm9fZmVhdHVyZXNfc2V0X2NwdGtiZCgpLAo+IHRoZW4KPiByZWN5 Y2xlIHRoaXMgZm9yIHVzZSBvbiByZXNldF9yZXN1bWUuCj4gCj4gV2l0aG91dCwgdGhlIGtleWJv YXJkIGFuZCBkcml2ZXIgd291bGQgZW5kIHVwIGluIGFuIGluY29uc2lzdGVudAo+IHN0YX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