Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2301264rdb; Thu, 21 Sep 2023 14:42:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJxWygl58p9OOvy8P/xs4StQGyX4nMaD7YH80E32YWvIGwXiCi23cOrfbVQC5PHVGcDjlq X-Received: by 2002:a54:4515:0:b0:3a7:2456:6af6 with SMTP id l21-20020a544515000000b003a724566af6mr6253893oil.31.1695332534821; Thu, 21 Sep 2023 14:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695332534; cv=none; d=google.com; s=arc-20160816; b=ebWrOXE76Uoa/0TQTLX2Tl1mUmNNIyoH2Pkq3Nafy92+bBowXPr/q0+xUY9PBpFSLa 5jpuLKcSuTdRByA4eZFL1G4BtQqeh6sI6WS9wgo+xB+VA25Xyxb23i59ZPa3M1JClgPG fTyqvzXSkf/aPFqNrndHfRzleIILZRQdcaA9yoIkP4kO31PuYTOS0jQ4UP6THrVQJmqf 5lVKBWDcKkYzdpcBAbhfMHVTeET3c3wmscwQRS5i34LQHRuD/YoZm9x6IVWnouCzHvM+ 8rnyVYXJG8z/FAbi/QAXTa0Ctxo+VbHjhDqtRN5Y3aHzcBuPjQsmheINZqO87rlTLXzC jdWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=izrp+cJi2u747koHaPS9Jf/GEMu7z4u0VpmdINLgVsQ=; fh=d7wW0+OcOqa0dPhOCcJzVTeHxm9Z8CGzT21uiqOCeU8=; b=JVEXfYLvIBji5cVT+Y60I11dWEUuOaqCMiVkpTqhs0dcTJngFjSEYudtRwmDjGCQyb +IYUX9FwkTKPQ5eHL2xpR1dFVCgaZOXTAHgd8MAiAKRGnqybNHbw4klYRAxlnjZwcTcN +rjNLwfNskW65cONw7gT3im8bBtgOjAJojGuBu8gRcQt62l5Iju+n1gP/PiFGEitNK1C WhHm2ttoUg/nqgqgLkCILZD/1tJy8NABl9A2WUMQW4ePjoiABDbvlyhbqavXDyeFHHe9 2cB6DCo00PyihMX6rpwF99vIcXZ6QCvwSKQZPUzqQjaK91CQMzhLCx+waTsbBZ2CJ7Ri O/hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b="GtC/oMMo"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oE56bQtb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bq26-20020a056a000e1a00b006826c8d5a31si2307490pfb.21.2023.09.21.14.42.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b="GtC/oMMo"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oE56bQtb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 856748098BAF; Thu, 21 Sep 2023 13:31:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbjIUU07 (ORCPT + 99 others); Thu, 21 Sep 2023 16:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjIUU00 (ORCPT ); Thu, 21 Sep 2023 16:26:26 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B61428D9FC; Thu, 21 Sep 2023 10:43:59 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CB4A13200903; Thu, 21 Sep 2023 13:43:58 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Thu, 21 Sep 2023 13:43:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1695318238; x=1695404638; bh=iz rp+cJi2u747koHaPS9Jf/GEMu7z4u0VpmdINLgVsQ=; b=GtC/oMMoJ9bdksDxAW 427oN83lEq5BwJXiXE/03wjPNfk1rIpF1y3pSoE/d9tImirddwxtspxpOx6En4zC iaFQPRV10lLFUuIQgKmGRee0KXzSHpRwirEeUeMKwIFNxsEr6+l8ww1z/YlpSG+v rkZU9KyyC9NOk/PO7SPxfRPmFHjKHUpUI50ryYegAL2RRwgLp2Davymxby19+FjA z3YRSm6IjGyP+awWBLJfLNwMhWLusw36MmgL6qSLXrWHeZd3RjmLX14QlJVhwUva HZuG5aXiPriP3UIApOCTJhH7EnoRNP3bGWw++OVZxVX3yaX87xV3i2SgsXrAsWB2 MCNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695318238; x=1695404638; bh=izrp+cJi2u747 koHaPS9Jf/GEMu7z4u0VpmdINLgVsQ=; b=oE56bQtbb8z8D5sUxAdtiKTRxFh/y I9BZc7b+wu8t4w3pBEkP6tnwrV+YCGVbFcBJwYsVA81hBQ0awGBSIR4bBmlIqram nTA5jdOpdRGscoPvwdUMzLs5E3yEHgiyBnuijCEOI9sTV5qDPQM8VbfaFAWY+p5/ 65osX/9ue6+APKAgZdXhGtXkl8Vck/sStgxevFjr51Vn8R1mX8owa0M3amvtoCQJ JVu4DfYNEJsJ3zUsEjCvk2u84oTleYAY5B7N5SHuDRnqWnMdUtokCLuTzzoE0mjH eUOaCptoD8VvHE7cO/s6qPgnIbB6gIk+MWonL2NoDZWyj91MW7u9emVQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekiedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdfo rghrkhcurfgvrghrshhonhdfuceomhhpvggrrhhsohhnqdhlvghnohhvohesshhquhgvsg gsrdgtrgeqnecuggftrfgrthhtvghrnhepieeufeejieevteduvdekteefledtveffvedu hefffeejudefvdeijeegudegkefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepmhhpvggrrhhsohhnqdhlvghnohhvohesshhquhgvsggsrdgt rg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EF390C6008B; Thu, 21 Sep 2023 13:43:57 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-761-gece9e40c48-fm-20230913.001-gece9e40c MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20230919141530.4805-1-mpearson-lenovo@squebb.ca> Date: Thu, 21 Sep 2023 13:43:36 -0400 From: "Mark Pearson" To: "Hans de Goede" Cc: "markgross@kernel.org" , "Andy Shevchenko" , "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] platform/x86: think-lmi: Add bulk save feature Content-Type: text/plain 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:31:17 -0700 (PDT) On Thu, Sep 21, 2023, at 12:38 PM, Hans de Goede wrote: > Hi Mark, > > On 9/19/23 16:15, Mark Pearson wrote: >> On Lenovo platforms there is a limitation in the number of times an >> attribute can be saved. This is an architectural limitation and it limits >> the number of attributes that can be modified to 48. >> A solution for this is instead of the attribute being saved after every >> modification allow a user to bulk set the attributes and then trigger a >> final save. This allows unlimited attributes. >> >> This patch introduces a save_settings attribute that can be configured to >> either single or bulk mode by the user. >> Single mode is the default but customers who want to avoid the 48 >> attribute limit can enable bulk mode. >> >> Displaying the save_settings attribute will display the enabled mode. >> >> When in bulk mode writing 'save' to the save_settings attribute will >> trigger a save. Once this has been done a reboot is required before more >> attributes can be modified. >> >> Signed-off-by: Mark Pearson >> --- >> Changes in v2: >> - Correct kernel version in documentation >> - Updated to sysfs_emit >> - Clean up code in save_settings_store as recommended >> - Use correct comment formatting > > Thank you for the new version, but next time when a patch has > already been merged please send any fixes as a follow-up / > separate patch with just the fixes. > > I've replaced the original patch with this one now doing > a forced push to both my review-hans and the for-next > branch. > Oh - my apologies, I didn't think of that. Thanks for cleaning up for me. Mark