Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4370145imw; Tue, 19 Jul 2022 05:30:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uua4PBFly0GtQVrOquG8Mn5RHMNGQlHXbDb36imW/oyBEggFAUINBZQD9E6wiFRbjGtl+x X-Received: by 2002:a05:6402:1d54:b0:43b:1795:d3c with SMTP id dz20-20020a0564021d5400b0043b17950d3cmr39695258edb.236.1658233845894; Tue, 19 Jul 2022 05:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658233845; cv=none; d=google.com; s=arc-20160816; b=PXOhfpnX7OupKGyoFZsIXn/B5ssX20zG31H7B42iEHRuAb42N9i4Qk9Ua9ykMMrjxm rCizadD2VvalPPuOoir3IsPK+z8FDxngOnzIZ+tvJM9KBiYNqHvBjLI5IyD5lByOdOlb GNh4gGul85qV0W8SogvwAnS6SUsDA/O9EJY82czSS9pdak2ZDOYylZy6ue2n7DNxrOoD v+SK1cUXmBB3Tz8SDmUEwlIrOVDxSWAzLAaE6/KrV8oGRdq10NYXa0C69xr8JIEfqtqZ nz1mrWRD4LC3tgicFh+0OtMncN59HmVFI+W5WeH/Tpeh3OFNiw9RibUn+RRXaLp6jsLJ 3NEw== 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=aPWlPHEVGEaa5i35+6RD/dtlGKJF0WFgd6H/F5lGRoY=; b=vUMK71LH5ONUuFSxraReuNthBD50Q7hePFmCpiclrbww94/ThPTnR07qSu9/OQz26i mHIZxFvRA7BuM8fM0UBmwzbJPDEJTnnCLdBm4TkR3C0Zl5WxgAleu1AidvOJ0jM/kjVR 2siUgPu9bhd7J2aA/C49KvO9n1JHhY2C2woDCmf0P9fHXZPJJL08km2sTH/1UbQHzdbX Y6/GkYguGftMAy42TJPJwLqjNPHU03J5B2q23NFfvjH5fAKS/y57l3ChuhGCCxirNbUi Hh57u1iN/OJXObpmp8+6dC6/A/Of2Ofry8mvov5hOmsC0c3OjiXnw2P+6kpc1gIuiUh3 6tyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BHhQbLUd; 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 w9-20020a056402268900b00435b2a66c73si20635222edd.191.2022.07.19.05.30.21; Tue, 19 Jul 2022 05:30:45 -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=BHhQbLUd; 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 S238262AbiGSMHp (ORCPT + 99 others); Tue, 19 Jul 2022 08:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238255AbiGSMHT (ORCPT ); Tue, 19 Jul 2022 08:07:19 -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 3BA314E63A; Tue, 19 Jul 2022 05:01:10 -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 521B1B81B2D; Tue, 19 Jul 2022 12:01:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 938F8C36AE2; Tue, 19 Jul 2022 12:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232067; bh=3wNf9MU5nkqkVJi/QAPuv9CYhltkS5PKt+M/rdroE8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BHhQbLUdV7CnkJdso3l8zCG7q0dODczTaFdI00DNQbRGLy7O26sdf4UpKlAw2driC /qrgpaqjtsOmPa7tbJ5WLilAunOfile9Fw7ciIjp6Ag+FPfFrCnlcfPg9Rjanvrnul Gds+KXeQjaCbwoUCjnWAKAPjQYBAoUcDHeKP4pHg= 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 4.19 31/48] platform/x86: hp-wmi: Ignore Sanitization Mode event Date: Tue, 19 Jul 2022 13:54:08 +0200 Message-Id: <20220719114522.657993635@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114518.915546280@linuxfoundation.org> References: <20220719114518.915546280@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 93fadd4abf14..f911410bb4c7 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c @@ -75,6 +75,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 { @@ -631,6 +632,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