Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3832092rdh; Tue, 28 Nov 2023 05:14:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyDDpuB4mM1dcIuPmY8k8fmiNG6K10LWIv5///n6hiYfFu0wi3omlLQgp/sL2I/8GC1rAJ X-Received: by 2002:a17:902:f542:b0:1cf:e028:4164 with SMTP id h2-20020a170902f54200b001cfe0284164mr4335661plf.17.1701177276800; Tue, 28 Nov 2023 05:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701177276; cv=none; d=google.com; s=arc-20160816; b=EdEX81oDowI+GzkRYysVij/K6K7qlVY9LRAVAHOaEAktzKEKGFwu5rVCFnJKL59PoO o8N2aaKcRuxQYfRlwdXzBPyICF5PQhDyw9RADHBLIAW4VEaAH4Nu6guaExpcI2uXCkNn vhYi+F+vxUbMO7bkXO1qsmncwUtqQtlZ5o1J7QglyVrEje410/KjpSzoY93bc+a9WhQl 8vcI5sFy0rTShwlY3dTAhlRjcBrL1yToh1ZlSsOfVIpgtbnof6hbUrf9RVfHw1wWDlWh lJYe3I3IBZo6oHWAq8/n9AaSJJt6YQ+oJFr5B7fE+b8f2gr2VeErPefJ4o5bUvLv2/xr uIqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=YdH02U8i4Jow7SDT4sicK14XwIIpB7F2d77xNDNoPgo=; fh=KcphAhFeFuIvr+QJnmRqQUsYQUeZ/Ekn7UIiPJ4KUp8=; b=xsCddoOU1HqS0sheqZoyuoPKTUhokPfmNDpLQY56BJ8g51SP69Nlqs33enRGkcwuRX QQNUDWh6BbgHY2UG70fh8/OAebNPaG9ZHeVNf2TfWxCyLywLrwTVONqzeLDKeGdqjSNQ ns4448gWESjWdEcYRqOCiyM5poX2m0Dk7zgP6Jmn2w5FFt3+qevQUE3Ej1IIMoHWg/eb cIi+J5uLABpdiCowxT0y+SwU50kR9tAJ7KT9SwGpfAS9PLbEqfPUGbaUKAif4I/xvcdI nj4N0mfD84MpP97HqxxPJy+yoq+gSubaJtCyoYWQa2mzdnZG6rhZLKeIhyOWoQ/fXvUP kK0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HSr4Szj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n11-20020a170902d2cb00b001cfee3a03b4si2277803plc.494.2023.11.28.05.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 05:14:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HSr4Szj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3C21F80ABB01; Tue, 28 Nov 2023 05:14:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344999AbjK1NOU (ORCPT + 99 others); Tue, 28 Nov 2023 08:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344975AbjK1NOQ (ORCPT ); Tue, 28 Nov 2023 08:14:16 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E55010D7; Tue, 28 Nov 2023 05:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701177263; x=1732713263; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=GgzACGSPeQe5ZPsf1HOwOLllMfyh95jYV52WCf4dJ+0=; b=HSr4Szj6pX7OYolhFVhSTzYZkLuI3IhQtNXRVFY2pdkiWwfeLt5pC9h7 dyboA3qJbv2jzBFROtoIGtufWWMAmMzupgWDhcF4eoTecAtzi3kP7ak+L F5vu2w2g0NdscIUFq0ig8fQ1onozvMDcQ/q+SrFqZtWoya41qhTHYiT5i TOJ3AQJz193sLWC9pqBiBj10NaVOeXSo9stD4rekd0ms1ub7UoL4hDhI2 rP/0KTIot12ZloPs0IiANyLGmZESfb/9HoQrpCU3Y7TXmSeNA4ka1tC7D WSbtMIHoAxXfwC0Nm63q8Hwkd/+OZMnqwY2VM+MCCqRB3QAWajIloy7Zj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="372294279" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="372294279" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 05:14:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="912428650" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="912428650" Received: from haslam-mobl1.ger.corp.intel.com ([10.252.43.79]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 05:14:21 -0800 Date: Tue, 28 Nov 2023 15:14:18 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Armin Wolf cc: Hans de Goede , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH] platform/x86: wmi: Skip blocks with zero instances In-Reply-To: <20231127222242.115507-1-W_Armin@gmx.de> Message-ID: <72248066-9c23-1850-b9c2-4a8e4d9c4385@linux.intel.com> References: <20231127222242.115507-1-W_Armin@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 05:14:34 -0800 (PST) On Mon, 27 Nov 2023, Armin Wolf wrote: > Some machines like the HP Omen 17 ck2000nf contain WMI blocks > with zero instances, so any WMI driver which tries to handle the > associated WMI device will fail. > Skip such WMI blocks to avoid confusing any WMI drivers. > > Reported-by: Alexis Belmonte > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218188 > Tested-by: Alexis Belmonte > Signed-off-by: Armin Wolf Thanks for the patch. Should this have a Fixes tag? -- i. > --- > drivers/platform/x86/wmi.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c > index cb7e74f2b009..4f94e4b117f1 100644 > --- a/drivers/platform/x86/wmi.c > +++ b/drivers/platform/x86/wmi.c > @@ -1346,6 +1346,11 @@ static int parse_wdg(struct device *wmi_bus_dev, struct platform_device *pdev) > if (debug_dump_wdg) > wmi_dump_wdg(&gblock[i]); > > + if (!gblock[i].instance_count) { > + dev_info(wmi_bus_dev, FW_INFO "%pUL has zero instances\n", &gblock[i].guid); > + continue; > + } > + > if (guid_already_parsed_for_legacy(device, &gblock[i].guid)) > continue; > > -- > 2.39.2 >