Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1749522rda; Tue, 24 Oct 2023 01:56:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBphABJ1LDXKYZwCNcpqedfH0K3afrklxCakVe0aNsTTQHdcgPrD7qto/3Z+2Ay3XVpVbA X-Received: by 2002:a05:6a00:2d10:b0:6b6:5ed4:dd42 with SMTP id fa16-20020a056a002d1000b006b65ed4dd42mr14686764pfb.31.1698137795990; Tue, 24 Oct 2023 01:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698137795; cv=none; d=google.com; s=arc-20160816; b=Hd5Uu9CYIrgGAXg0RaepsH+RF7Ab8zUD4ekpmOODHxN47KpnCN4a6YpC9saCetbmvz WMFc1bSvdV3a/MlRKby5mTZl5uQELd71bJw1hrCYb0rsclSywX65dt1dLF5RoZrLUWpt NGxzZbSvOr8BBp8bBgNeW+x1SUz3jl08UudWr1JjIHGjY9e9ZMvxBlpE88MW/VhkeJjj N5p6q5O/t4mPW9bBneQksRwbDpYIJqLo/jM37SoSjMh+oCtwY/MPt9mIoa1Q6X4unebE ZZv/WzdeNvLUcnKSlc30hRSHlPLyqGqx4d6SCNPcw4c+6SbSxFswj4Lv45ncHtbHaRW4 rB9w== 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=ctRKDMA8yPGXschkZ9aIEe4B0oYbgmQ2FdUIx2Ql04c=; fh=Z/4oh5mkP8CGERZniHy7qMPYKjYCckRu78QPciac/Og=; b=A5bA90noVHDfcnWxoKnn+XpmacnrebsYh1axUlSAdkCbGLTKMyjJmZIxG0ZX8JRpCD 1bOd7RJsSvQt7iXRmtW8RUTlPvp2p8dq+Bn3oQVqDfBr1hv7QOFwEZpc+xgC6YB8WgNJ y4Yt6cw9vJa7tiyoXvHen5RjYD1lVD5aZUo5YZbgRT0bzSi8H5r9ImpWbz7Y8IU23r/g 8L1/uwItYS684IwSR1A+MnkAdH6V2mredh3qtgwLIy57SXGyp+BqDaE4nQ11dqUx2EbP 6ftVIIBlq4LUJkMVtsNpXR9P3X3cBMnVRH7xfBGMA8HNlfSl5VG4eGDubeXJTZcO41ks Ea/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b="g+N3UbG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id r35-20020a632063000000b005b7c45c7b8fsi7844429pgm.664.2023.10.24.01.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 01:56:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b="g+N3UbG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id DFD228080E3F; Tue, 24 Oct 2023 01:56:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234211AbjJXI4Q (ORCPT + 99 others); Tue, 24 Oct 2023 04:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233903AbjJXIz7 (ORCPT ); Tue, 24 Oct 2023 04:55:59 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49AAE1BDB for ; Tue, 24 Oct 2023 01:55:28 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 270C224002B for ; Tue, 24 Oct 2023 10:55:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1698137726; bh=ctRKDMA8yPGXschkZ9aIEe4B0oYbgmQ2FdUIx2Ql04c=; h=Message-ID:Subject:From:To:Cc:Date:Content-Transfer-Encoding: MIME-Version:From; b=g+N3UbG/m++dtxlfMRT5eZiYW987UAmSEBrg6LbKtcAZWHeyJgSjjFcdofUmWWlog sPk5Phuwt/hO7hNh7b/rWodpZEwHqrb0mZl2J4yBohgxywKqZyy4CAN0wcy7rS6Njf XNRARQreRIXQgZN3MdSsmbAlBG4keYHIObu2lsB4es/u70YCLtC2PTZj0U4+Rc3nOI Apx3JbgdIms78ZvO22kiJh5I41VhTEH0tQWEZmF1zXmCTE8h59hXpBszFcwH9ntCSm RE/DFVQyto3+zPakbKHqUdi8BoMnm44C01GY0V8GGCzNhUuetsuVZa0J6slkg4nfhf IOzPSTsJEbDlQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SF5Vh15NZz6twT; Tue, 24 Oct 2023 10:55:24 +0200 (CEST) Message-ID: 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, mail@bernhard-seibold.de, hdegoede@redhat.com, iam@valdikss.org.ru Date: Tue, 24 Oct 2023 08:55:22 +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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 01:56:33 -0700 (PDT) QW0gTW9udGFnLCBkZW0gMDIuMTAuMjAyMyB1bSAxNTowOSArMDAwMCBzY2hyaWViIE1hcnRpbiBL ZXBwbGluZ2VyOgo+IEZyb206IEphbWllIExlbnRpbiA8am1AbGVudGluLmNvLnVrPgo+IAo+IFRo ZSBVU0IgQ29tcGFjdCBLZXlib2FyZCB2YXJpYW50IHJlcXVpcmVzIGEgcmVzZXRfcmVzdW1lIGZ1 bmN0aW9uIHRvCj4gcmVzdG9yZSBrZXlib2FyZCBjb25maWd1cmF0aW9uIGFmdGVyIGEgc3VzcGVu ZCBpbiBzb21lIHNpdHVhdGlvbnMuCj4gTW92ZQo+IGNvbmZpZ3VyYXRpb24gbm9ybWFsbHkgZG9u ZSBvbiBwcm9iZSB0byBsZW5vdm9fZmVhdHVyZXNfc2V0X2NwdGtiZCgpLAo+IHRoZW4KPiByZWN5 Y2xlIHRoaXMgZm9yIHVzZSBvbiByZXNldF9yZXN1bWUuCj4gCj4gV2l0aG91dCwgdGhlIGtleWJv YXJkIGFuZCBkcml2ZXIgd291bGQgZW5kIHVwIGluIGFuIGluY29uc2lzdGVudAo+IHN0YXRlLAo+ IGJyZWFraW5nIG1pZGRsZS1idXR0b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