Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3985242iog; Tue, 21 Jun 2022 09:42:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slBhUUZ1gqdSMw00KVl/MQewXyR4B69tok7MGdxOYy5z4YK7Iay/NeMTSYdW4PGtmFSJ+5 X-Received: by 2002:a63:e705:0:b0:3fd:fb59:bd7f with SMTP id b5-20020a63e705000000b003fdfb59bd7fmr26812526pgi.505.1655829751364; Tue, 21 Jun 2022 09:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655829751; cv=none; d=google.com; s=arc-20160816; b=mOik5Z1o49XyNmsCCU4kuy0OHSNw0Pi6tBT69fB6PMnRJA9Xc8pyD3TAsmKXXF9FlH sdBqtRWFH5j1MVWXeZHdtQh01tp/flhZu4AwM+o38JtZhwI6/IYdIbgHD8ma3bdM3JKQ liMpxS2OlclUftItV1MG5UnDxe4aO11o9zVOAjrmHgoEGF5kvBZWrsbdz9P+j5ebo4DZ w+JRQKf2kAyt5zZzQ2rtgMLdZ4V9sejAd72OoeQ15edTPOSRXq7ewme8jrAfMQv/TaA9 +WFAiT+wVLidw3MLLRaBukyu/8ZQZjUJ9BTfE4myLg8R9p26AlV0lzQY95nF9RBH3Bti ccfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P8vJaSQSpHNGmSYvxku3Pcy9q/nwQaqK1kFMt97FP64=; b=gMdM2C3JYQreUvGncbLanZyQ62YJURlQs8ypnYoZfwxMa8xxYLVoBnqvciR17z4ZJB K3z9LTQvCd2kUZX1II7lNo6yp5Gpx/x8qCDLsDvFzVWjDSD3MEPFBgDcKU9zlY6CI7XQ Wxnj0B+FNN4H7jubWoXUIzyKs2O3wz7HP/9rVJFhruoNacw7lO8kC117IvYrvlmAcc6r YmZ8ODHekTo2L0TzbjFWm+cGdDHmx44FGQa+9yAoWy5+F+1s1/ziHaL7nnE+zUmAf1f3 5HucHxiDaHohd3DFzbezhCqvELM9nhivVzCTKcywGz3RvaRtrDojnSSdjznFYCQN2bFq 5Vtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e8pnXNhu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q197-20020a632ace000000b003fcd61d90ccsi19616307pgq.852.2022.06.21.09.42.18; Tue, 21 Jun 2022 09:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=e8pnXNhu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353878AbiFUQTm (ORCPT + 65 others); Tue, 21 Jun 2022 12:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353832AbiFUQTl (ORCPT ); Tue, 21 Jun 2022 12:19:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C116229341; Tue, 21 Jun 2022 09:19:40 -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 65C12B81A68; Tue, 21 Jun 2022 16:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D51BC341CD; Tue, 21 Jun 2022 16:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655828378; bh=+aUKE0SFMaGezZlSeajtIkMvPvTFPzVipH+jo+TsWqA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e8pnXNhu/Uvp7P+YdDcoB4ahSriETYOE2AN2yvBMsIZFSrhVhl6BsNUdy1eAHmq35 Lvt0EOwOjDXzfBsXdXgHofOREO0yiI2Xme5UGIUI8BUHmmbeMm45xnXFfhuNBfD7OI UGfb6NrcwNh9rQyFkDg9Ubfc+rCvKOZFlCK5D2KNh2TL03grdoTcsO/OtTooEiZFL1 ZOFF6oP9d9QR2x1mhmEE+60BF2vIOBNSxWv8DQC1/Hul1ykH4oS9cT1Utolqqusp+M 5yQCGn6EC7PDcPXIMlNtpLhDE/4eR3CGw+/1z70T3QVBlKnX74i3OS6oxSUjmA5bWf JVSTJjMr7Du1g== Received: by mail-lj1-f174.google.com with SMTP id d19so16038461lji.10; Tue, 21 Jun 2022 09:19:37 -0700 (PDT) X-Gm-Message-State: AJIora+kgbTqTLlswsw8pj6TG5c1/nLL7LanptySa7DyNCWM0ZdDfoYQ jCCgoPR0gzjYUYAAYyiIqvrkTdan7d2rO/ROSJs= X-Received: by 2002:a05:651c:54c:b0:25a:641b:3aaa with SMTP id q12-20020a05651c054c00b0025a641b3aaamr8196677ljp.421.1655828376063; Tue, 21 Jun 2022 09:19:36 -0700 (PDT) MIME-Version: 1.0 References: <20220617174851.1286026-1-ardb@kernel.org> <87bkunpv42.fsf@kernel.org> In-Reply-To: <87bkunpv42.fsf@kernel.org> From: Ard Biesheuvel Date: Tue, 21 Jun 2022 18:19:24 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] efivar: remove inappropriate uses of the efivar API To: Kalle Valo Cc: linux-efi , Kees Cook , Dmitry Torokhov , Arend van Spriel , Franky Lin , Hante Meuleman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Gregory Greenman , linux-input@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org On Mon, 20 Jun 2022 at 11:00, Kalle Valo wrote: > > Ard Biesheuvel writes: > > > The efivar layer is a caching non-volatile variable store abstraction > > that is normally backed by EFI, but in some cases, might be backed by > > Google SMI firmware interfaces instead. > > > > It is mainly used by efivarfs and EFI pstore, both of which actually > > need the caching and abstraction properties. However, there are a few > > other occurrences where efivar is not necessary, or used in an invalid > > way. So let's fix this up, and remove some impediments to refactoring > > and cleaning up the efivars layer in the future. > > > > Assuming there are no objections to these changes, I intend to queue > > them up in the EFI tree fairly soon, so that ongoing work depending on > > these changes can continue as well. > > > > [...] > > > drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 25 ++--- > > drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 96 ++++++------------ > > Feel free to take the wireless patches via your tree: > > Acked-by: Kalle Valo > Thanks, I've queued these up.