Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07607C433ED for ; Tue, 11 May 2021 11:40:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C941061207 for ; Tue, 11 May 2021 11:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbhEKLln (ORCPT ); Tue, 11 May 2021 07:41:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37188 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbhEKLln (ORCPT ); Tue, 11 May 2021 07:41:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620733236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ncq1izqydNckE7NiVEP46RrlkQeeb/1vqOvW8nfMruE=; b=ZvSPJPneZ5kPLIk/8NMjc0Dr3aLAo4bgvWgBS4K4f+k1cYKMpIPwfbW/HiHJgXDQuPpaMa D4t8ylx7pAuUQbkewHPgIJgkoXkGQ6yDADfvL0fM0XMsCrOlSevIclJ6iJVl/GZQ+KHTDu VoJurjnkOLtb9zOhxshzD6M7UwlZVfc= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-545-grHXJPgNM9GpyHbg1B9wbQ-1; Tue, 11 May 2021 07:40:34 -0400 X-MC-Unique: grHXJPgNM9GpyHbg1B9wbQ-1 Received: by mail-ed1-f69.google.com with SMTP id d18-20020aa7d6920000b0290388b4c7ee24so10840908edr.12 for ; Tue, 11 May 2021 04:40:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ncq1izqydNckE7NiVEP46RrlkQeeb/1vqOvW8nfMruE=; b=dSJ0D1yVsHA8dwOYyxAIqNrIqoXv6yG5czitzApH7Nk0x2m2LbpPnxoOw6RfHm/boF sBze1+wnWOB9RFNqBN7PJ79ylqHNICopI0Irq3+FaSgromW9185D41G9nq4joFSF62Lj oNxZiRlfDUTCDZNJBt2EGe+qmwa5Oqjjna5Z9KH4Z5sVhLvC81ZJqU5Uk00Rjy3QFG08 LfSNsF9/cvVvHM3dbLx4Vw8w3t0zeJ87IZzg8yIe64oiRb09qjukNkbOYza2+315Mse2 XC9AvxNhesmsoHQbgqMvHsMWajFiMl2gH4llrFw+SMhTDOCmBykqe6t44glmmrtnkNU1 kDmg== X-Gm-Message-State: AOAM533mvmcFmG4tn0fDLMVtHO3kssTkq9q1sXyfjoRun8fXeyr0aVoZ ZZnmc8A7G3RfxALhJhQ8RWpKL3o07w8bavk4IbRY/W8bMkTDWkXgPO/WxUunJUVmdZpewobFahp +N0uLBRPSO5isc7BwYBeqGdqMvj5zpfxeyA== X-Received: by 2002:a17:906:251a:: with SMTP id i26mr31417245ejb.367.1620733233241; Tue, 11 May 2021 04:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPx/RS9hDStJjMK8lRD4A5gKLEotw8heDtcm657cpEnwLGimqD245wNLkvMCbltzDgIPu64Q== X-Received: by 2002:a17:906:251a:: with SMTP id i26mr31417233ejb.367.1620733232993; Tue, 11 May 2021 04:40:32 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id 20sm5803517ejm.72.2021.05.11.04.40.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 May 2021 04:40:32 -0700 (PDT) Subject: Re: [PATCH] platform/x86: ideapad-laptop: fix method name typo To: =?UTF-8?Q?Barnab=c3=a1s_P=c5=91cze?= , mgross@linux.intel.com, ike.pan@canonical.com, platform-driver-x86@vger.kernel.org Cc: stable@vger.kernel.org References: <20210507235333.286505-1-pobrn@protonmail.com> From: Hans de Goede Message-ID: <28b37604-856f-d65e-af49-a5b505678461@redhat.com> Date: Tue, 11 May 2021 13:40:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210507235333.286505-1-pobrn@protonmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Hi, On 5/8/21 1:53 AM, Barnabás Pőcze wrote: > "smbc" should be "sbmc". `eval_smbc()` incorrectly called > the SMBC ACPI method instead of SBMC. This resulted in > partial loss of functionality. Rectify that by calling > the correct ACPI method (SBMC), and also rename > methods and constants. > > BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212985 > Fixes: 0b765671cb80 ("platform/x86: ideapad-laptop: group and separate (un)related constants into enums") > Fixes: ff36b0d953dc ("platform/x86: ideapad-laptop: rework and create new ACPI helpers") > Cc: stable@vger.kernel.org # 5.12 > Signed-off-by: Barnabás Pőcze Thank you I've added this to my review-hans branch. I'll also add this to my fixes branch and include it in a future pdx86 fixes pull-req for Linus for 5.13. Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > drivers/platform/x86/ideapad-laptop.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c > index 6cb5ad4be231..8472aa4c5017 100644 > --- a/drivers/platform/x86/ideapad-laptop.c > +++ b/drivers/platform/x86/ideapad-laptop.c > @@ -57,8 +57,8 @@ enum { > }; > > enum { > - SMBC_CONSERVATION_ON = 3, > - SMBC_CONSERVATION_OFF = 5, > + SBMC_CONSERVATION_ON = 3, > + SBMC_CONSERVATION_OFF = 5, > }; > > enum { > @@ -182,9 +182,9 @@ static int eval_gbmd(acpi_handle handle, unsigned long *res) > return eval_int(handle, "GBMD", res); > } > > -static int exec_smbc(acpi_handle handle, unsigned long arg) > +static int exec_sbmc(acpi_handle handle, unsigned long arg) > { > - return exec_simple_method(handle, "SMBC", arg); > + return exec_simple_method(handle, "SBMC", arg); > } > > static int eval_hals(acpi_handle handle, unsigned long *res) > @@ -477,7 +477,7 @@ static ssize_t conservation_mode_store(struct device *dev, > if (err) > return err; > > - err = exec_smbc(priv->adev->handle, state ? SMBC_CONSERVATION_ON : SMBC_CONSERVATION_OFF); > + err = exec_sbmc(priv->adev->handle, state ? SBMC_CONSERVATION_ON : SBMC_CONSERVATION_OFF); > if (err) > return err; > > -- > 2.31.1 > >