Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1478776rwd; Thu, 25 May 2023 13:15:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73gAg7LxZhGT8H5bb1Os/yjbQQcScw9+PD/tuUAgvpmo7RQE0w58aowueCRum3UCOb05a3 X-Received: by 2002:a05:6a20:5482:b0:10b:71c:20c5 with SMTP id i2-20020a056a20548200b0010b071c20c5mr21304712pzk.51.1685045749396; Thu, 25 May 2023 13:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685045749; cv=none; d=google.com; s=arc-20160816; b=qwrBTs7rdyujRwcV/K9c0JlaDIkcTRw1xC7jbKYN07vEcpbZdnJ4ApR97ccheMKAgq IanHlmal723cL56irne9WtABFb8Vd64BUJsrNzu8VVY8qSKXxqmS5tFkIdjAHmsiYt6M PBVLJ1Xz0yLOpCXPgxbdSlxbbOGRn9TmcF3V98Cx9lSEHHZpXg5BknG1pm6ELexZJ6It CuU7naw2iBLsGMt0iHpNw+P7p1qB8dpsl+kxUOH5LrQoulavQhJrONGzLyiTjdjFlGLV QnitpWzyH3JdE0sOt7/Z1dYHw5zoyH7zl8XzIRyIQDPrsiziVvaW0bXUYv4FI0ItgeI/ RxPA== 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=/HgMDkSSMwYHgE33LxVKpXZsmvDoxFZ3zo7+14wlNm4=; b=h3OR8U+ynxMDrtZLQS8KAbvqa45jLEzWIYCnZNE0Ru+4ftmPCFAA1qT+xZ8EQnIJxH BWNIAORkE/PdyJnVVq3y/RZ9gcRuWpfIDYhQi1W7Qf3NNoV7ZxYh9N5W96lbc3fFwx4T CfRLsEFKaVxseAFPRZlKxakiHkOIqNjQJHwOtcfXMMSPU+18fV/49ASeRSCh1dWcpRv5 ia3Ih/QRAg24lk9NexvKI4Ywrg0oxT5gRfl4d7oJkukUztEGAVM6+804IfBQTp82eyhd y4cHgXiJ6VzOzqz42SwqJGt+S1uHPEvJRRuXZRCDraNyWoTQKE9vyS+oaVP2bCzrvR4A ghUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=qApdvS0d; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eEVw6xTC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a637a02000000b0053ef1799a71si1899794pgc.399.2023.05.25.13.15.15; Thu, 25 May 2023 13:15:49 -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=@squebb.ca header.s=fm2 header.b=qApdvS0d; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=eEVw6xTC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241281AbjEYTmH (ORCPT + 99 others); Thu, 25 May 2023 15:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240536AbjEYTmE (ORCPT ); Thu, 25 May 2023 15:42:04 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F14810D3; Thu, 25 May 2023 12:41:36 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B9D475C01C0; Thu, 25 May 2023 15:40:03 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Thu, 25 May 2023 15:40:03 -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=fm2; t=1685043603; x=1685130003; bh=/H gMDkSSMwYHgE33LxVKpXZsmvDoxFZ3zo7+14wlNm4=; b=qApdvS0dJq+1BaYYi4 osll/bnw3NetQcL79fFyonPcsLW2ho+A8DCCVKPdN44bceIe4hFABpXMsfrXsjcJ Fm0PFxRMk3vkOK8g6RNii7NM2RE3mqPV8vU4W9UquwRMo4RHts8jc+ej4eNOHjQi LDXOqNnTq5UDIhOpQmxQR/iAUOVbIhll5KNPzQrgUPzXNt5oFe8Tp2vv36udomPW vDebhBWlhsJTMga0mnlkYxanoXf/SY+Deu0AO1cdo6V6dx+xLhEiETlrt+fyGrDN BVqFooHCYY5UHbyWl2VD3TA5nIGbnNGNF4m9JcsbrS1oye7+wYZbsA2zR1FSzFAn owWA== 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=fm1; t=1685043603; x=1685130003; bh=/HgMDkSSMwYHg E33LxVKpXZsmvDoxFZ3zo7+14wlNm4=; b=eEVw6xTCR9jhK0XglC3sQjsn3YCBG 3l2K5SRTieau8bbafncGQZ2xdtdGSkh0tC9xDUZqoeZN5k5s2vwyr8lZ2H0kexDy Vi/wB51J6Oly22cKzLahMvbPavNuKG36j6LpMiBCWs7Sw7AHVeTQVzGVMZLClDU/ oLhmpmjNOzeUJ2ztDSGkgYtKYlRXKJiZF3eL0/KA8OHy/Tx0SiC3Q+GHT/H4lvYq RI7SHflgTTYbrB5QprGZz7J3VucQvwp3dxpDkhoUTy8UG20OhWxQ/4S/pCKOseoY wXTTvn0pvMDNG2tsKRD20V2qefaJ2T0vE8SXOpFnDXkIvhGtmHXCB2Alg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejjedgudeflecutefuodetggdotefrod 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 67253C60091; Thu, 25 May 2023 15:40:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd Mime-Version: 1.0 Message-Id: <17963a3d-996f-4bb8-918e-aadba15be9bc@app.fastmail.com> In-Reply-To: <20230525193132.3727-3-mpearson-lenovo@squebb.ca> References: <20230525193132.3727-1-mpearson-lenovo@squebb.ca> <20230525193132.3727-3-mpearson-lenovo@squebb.ca> Date: Thu, 25 May 2023 15:39:43 -0400 From: "Mark Pearson" To: "Hans de Goede" Cc: "markgross@kernel.org" , "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] platform/x86: think-lmi: Correct NVME password handling Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Hans, My apologies - I completely forgot to add the v2 tag on this patch series...had a complete brain fart. I assume I should resend them all - correctly named. I also have no idea why they showed up out of order...I'm blaming that one on the email server. Sorry :( Mark On Thu, May 25, 2023, at 3:31 PM, Mark Pearson wrote: > NVME passwords identifier have been standardised across the Lenovo > systems and now use udrp and adrp (user and admin level) instead of > unvp and mnvp. > > This should apparently be backwards compatible. > > Also cleaned up so the index is set to a default of 1 rather than 0 > as this just makes more sense (there is no device 0). > > Signed-off-by: Mark Pearson > --- > Changes in V2: None. Version bumped in series > > drivers/platform/x86/think-lmi.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/think-lmi.c b/drivers/platform/x86/think-lmi.c > index c7e98fbe7c3d..1c02958035ad 100644 > --- a/drivers/platform/x86/think-lmi.c > +++ b/drivers/platform/x86/think-lmi.c > @@ -456,9 +456,9 @@ static ssize_t new_password_store(struct kobject *kobj, > sprintf(pwd_type, "mhdp%d", setting->index); > } else if (setting == tlmi_priv.pwd_nvme) { > if (setting->level == TLMI_LEVEL_USER) > - sprintf(pwd_type, "unvp%d", setting->index); > + sprintf(pwd_type, "udrp%d", setting->index); > else > - sprintf(pwd_type, "mnvp%d", setting->index); > + sprintf(pwd_type, "adrp%d", setting->index); > } else { > sprintf(pwd_type, "%s", setting->pwd_type); > } > @@ -1524,6 +1524,10 @@ static int tlmi_analyze(void) > if (!tlmi_priv.pwd_nvme) > goto fail_clear_attr; > > + /* Set default hdd/nvme index to 1 as there is no device 0 */ > + tlmi_priv.pwd_hdd->index = 1; > + tlmi_priv.pwd_nvme->index = 1; > + > if (tlmi_priv.pwdcfg.core.password_state & TLMI_HDD_PWD) { > /* Check if PWD is configured and set index to first drive found */ > if (tlmi_priv.pwdcfg.ext.hdd_user_password || > -- > 2.40.1