Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4451821imw; Tue, 19 Jul 2022 06:55:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+u3oELcj6VoPJJtAlFif/QyCDPAnsUEeWALlAawJRWTFSgoZNW/4GxVDwxHjJuyKek6Wx X-Received: by 2002:a17:907:2815:b0:72b:706c:ae9f with SMTP id eb21-20020a170907281500b0072b706cae9fmr29951409ejc.610.1658238932654; Tue, 19 Jul 2022 06:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238932; cv=none; d=google.com; s=arc-20160816; b=h1sMqoFEXxi501HITyIq/JSACJiDDq+EWfDI5mIRqHZ+Q9MVnVtS42HzOt/HMe/Qcc IGC1fzPW/XE4LoXnabmG9XEazAE0Hr0VpqPAgxA4fsNud0Doj4jaO4BRBfg6FRiomXDI gaZEfSvkF7h2Sou61P1Cv+iJwY+8i1QQuDAESMfAVo7be4ndsAv2krBYxhjvhhddQD+K K2TJzYF4kIhS+MeSBo06FrSNVbAn8CY7m5i4cBeGOhMQzfIxLffPOd1eEUmbmEEis5ZX EpD6O85Id3JZpDwetSjPpBwrRkawJlq3adXCFtYt8pQ1pi6ZofGgjkzwwl7FwYj2BjEm VNJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sfidju8+rrhh/z6i//4Gh/OZzqvs8tvb1dTxgP9HB1Q=; b=0PeDcig3ePrx56TyZbKZiTmMkMilCvOl7hfJEV+nPeVa2UTP5ZlegjKJBf/0N+vIVt jCBNJIzbQCyrNxvZuwFXJlSojgapeWaeE6+hwbZSmzG08uUH2NeA5Bi5StJR4yphE/S3 4FrgMZc/Irijc3Sfe949ViL8YAgTYM4ovMiVJKUzsyC1gpmcbrZaz396JN2tNreEA1E8 S+YuZ3jRn4yS6wJt2CmwDsFOPzPhOhuT6vLGcgdQblM6KP62hvJopSYU1yeNxPgTVFGh UB/QkXyfqK849cRo/atye9FbFKA4s3iPRSnlqkt3j5I8xEgCAkHsvdOwENr4MnRUdAnB heuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1jY+pXw9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy18-20020a170907819200b0072694ef6015si16333019ejc.233.2022.07.19.06.55.07; Tue, 19 Jul 2022 06:55:32 -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=@linuxfoundation.org header.s=korg header.b=1jY+pXw9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241533AbiGSMqE (ORCPT + 99 others); Tue, 19 Jul 2022 08:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241489AbiGSMn7 (ORCPT ); Tue, 19 Jul 2022 08:43:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3AD6820C5; Tue, 19 Jul 2022 05:17:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9660DB81B21; Tue, 19 Jul 2022 12:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 030E2C341C6; Tue, 19 Jul 2022 12:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658233022; bh=/9U0QyD3NK9GUBDhZqXZ5q1VZdElBR+OKYhYTtvKLUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1jY+pXw9fHu5m/y42RemmVBZ6lzLfqIOCELkr+s+4FlHKd5b9RWSWxkJ1edCQnzMY 5wJLwtWtpUSc4tdMLEvF3crQm5Sx6TeasUAleLHJ76YnRWl368yMlXz5DCEa0bJ37h lavasITOrc20fUVY7qaBA/fZQR6G3tOOexzQsRaw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jorge Lopez , Kai-Heng Feng , Hans de Goede , Sasha Levin Subject: [PATCH 5.15 122/167] platform/x86: hp-wmi: Ignore Sanitization Mode event Date: Tue, 19 Jul 2022 13:54:14 +0200 Message-Id: <20220719114708.407029125@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Kai-Heng Feng [ Upstream commit 9ab762a84b8094540c18a170e5ddd6488632c456 ] After system resume the hp-wmi driver may complain: [ 702.620180] hp_wmi: Unknown event_id - 23 - 0x0 According to HP it means 'Sanitization Mode' and it's harmless to just ignore the event. Cc: Jorge Lopez Signed-off-by: Kai-Heng Feng Link: https://lore.kernel.org/r/20220628123726.250062-1-kai.heng.feng@canonical.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/hp-wmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 027a1467d009..1cd168e32810 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c @@ -63,6 +63,7 @@ enum hp_wmi_event_ids { HPWMI_BACKLIT_KB_BRIGHTNESS = 0x0D, HPWMI_PEAKSHIFT_PERIOD = 0x0F, HPWMI_BATTERY_CHARGE_PERIOD = 0x10, + HPWMI_SANITIZATION_MODE = 0x17, }; struct bios_args { @@ -638,6 +639,8 @@ static void hp_wmi_notify(u32 value, void *context) break; case HPWMI_BATTERY_CHARGE_PERIOD: break; + case HPWMI_SANITIZATION_MODE: + break; default: pr_info("Unknown event_id - %d - 0x%x\n", event_id, event_data); break; -- 2.35.1