Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9698546rwd; Wed, 21 Jun 2023 10:35:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gCG2iG0do15C6PCCQfXqzE7LKAvYknrV952smVEOpkmw/id1eYIVP17WQOUdN5UBTe/N5 X-Received: by 2002:a17:90a:6286:b0:25e:b5d4:a156 with SMTP id d6-20020a17090a628600b0025eb5d4a156mr22011988pjj.2.1687368954898; Wed, 21 Jun 2023 10:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687368954; cv=none; d=google.com; s=arc-20160816; b=zOn5J2tGPIF4J63ZEUqa9fDDztIEwWKwPpTdJQ9FV2u0NXiAvW2zIqbRbnYxrlFKNO qPd0IJQ6lSbnm5xh1k2VqdrJBKdD3S6/jL2X17eWDA9cP9kDYG9KP04e52qGP9SBK7vf qUg4xeO1mCQfqnp7sHVzOLTazaIXwS3OkLJaZHoDQVM83gh2Xd74cbT0HOO7hTvHuqab ytNYFPS50bw5jEBQVPuAbVJD6DygdD6Wqns0E9ulr9tWBiAk9qRduMePy2ArAOrWUokC 9y2V3Hxv5khI/XyJKtYsG31sv3lSen8eOui8dhMIA+twJcw8q1hV3p8I179U/IHEhLTL WrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xnUasspDrFh2JWpGqcDGD0SKHtZoehpVCtmFhJIxYiY=; b=j2iXCikKScBO88SeadFpman6CJtshKDkbql9PbXlarFYX42MbTruy3YEqYv5dIcL95 Q7otDmL6UDg4+p0EYTOJ39/v6dTdqp6rbWRwUtruDXm7utlo6lmAd2+ClUdRedGrQmgc grUVbUdPxrTomZ2z0AUy2WPfxSfXdeCUuYm8u4s8ND/jXXeFOnaRu+uO6zMnfNOBI0+q Pj07kY4e90rsA/IPCqUMfIPrwuvUjPMouS5c024NV9PxFgznw316mfdGg1o90OTUB//Y k/mTQM5XyMU0VtkkjdJ1Tl3dF1OTUzBxE9OGGYMiVF7BIi9ZysKY6DXe6qzzXEKI8lPe jfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aKQt3nor; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc2-20020a17090b3b8200b0025bf827a696si5223173pjb.178.2023.06.21.10.35.48; Wed, 21 Jun 2023 10:35:54 -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=@lunn.ch header.s=20171124 header.b=aKQt3nor; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbjFURU7 (ORCPT + 59 others); Wed, 21 Jun 2023 13:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjFURU7 (ORCPT ); Wed, 21 Jun 2023 13:20:59 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE8A9132; Wed, 21 Jun 2023 10:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=xnUasspDrFh2JWpGqcDGD0SKHtZoehpVCtmFhJIxYiY=; b=aKQt3noraRaWZVrPLRFixFgDyF doLwBueYpIG4MOV+mgf9YgWlBBG2MzoCYzjDCdbHJLL0/GDopxL7uOPzCNq5iT+ghXm25qqhepAkk GZT/IuvRUl0B8HzrNqPhg3sL1OLk/dZE/c7AujarJ1ypiRLAwJUBDPAwkWgEDJfpjNYo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qC1VK-00HAZS-8l; Wed, 21 Jun 2023 19:20:26 +0200 Date: Wed, 21 Jun 2023 19:20:26 +0200 From: Andrew Lunn To: "Limonciello, Mario" Cc: Johannes Berg , Evan Quan , rafael@kernel.org, lenb@kernel.org, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mdaenzer@redhat.com, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, hdegoede@redhat.com, jingyuwang_vip@163.com, lijo.lazar@amd.com, jim.cromie@gmail.com, bellosilicio@gmail.com, andrealmeid@igalia.com, trix@redhat.com, jsg@jsg.id.au, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations Message-ID: <4aad8dfa-2eaa-4268-8c52-f0ec209e18f9@lunn.ch> References: <20230621054603.1262299-1-evan.quan@amd.com> <20230621054603.1262299-2-evan.quan@amd.com> <3a7c8ffa-de43-4795-ae76-5cd9b00c52b5@lunn.ch> <216f3c5aa1299100a0009ddf4e95b019855a32be.camel@sipsolutions.net> <98c858e6-fb18-d50f-6eea-eddc63ba136f@amd.com> <9435a928-04c4-442f-89f2-e76713c908a5@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 > Think a little more about what a non-ACPI implementation > would look like: > > 1) Would producers and consumers still need you to set CONFIG_ACPI_WBRF? I would expect there to be an CONFIG_WBRF, and then under that a CONFIG_WBRF_ACPI, CONFIG_WBRF_DT, CONFIG_WBRF_FOOBAR, each indicating they are mutual exclusive to the other. > 2) How would you indicate you need WBRF support? As far as i understand it, you have something in ACPI which indicates it? Could that not also be a DT property? > 3) How would notifications from one device to another work? Linux notified chains? This is something which happens a lot in networking. A physical interface goes down and needs to tell team/bonding interface stack on top of it that its status has changed. It just calls a notification chain. > I don't think those are trivial problems that can be solved by > just making the pointer 'struct device' particularly as with the > ACPI implementation consumers are expecting the notification from > ACPI. Do consumers really care who the notification is from? Isn't the event and its content what matters, not who sent it? But I agree, i don't expect it is trivial. But it is going to get harder and harder to make abstract as more and more users are added. So we need to consider, do you want to do that work now, or later? Do we want to merge something we know is limited and not using the generic kernel abstractions? Andrew