Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6818918rwd; Tue, 6 Jun 2023 02:19:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70Q5T6Leduagei/ga1hBPtfWqMXSzIiOeJmUixWhPZtpbYB4ACE/uX86yhg/kAtnIaM2W+ X-Received: by 2002:a05:622a:1981:b0:3f6:ac1b:47a3 with SMTP id u1-20020a05622a198100b003f6ac1b47a3mr1594675qtc.26.1686043146044; Tue, 06 Jun 2023 02:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686043146; cv=none; d=google.com; s=arc-20160816; b=EDQl+GIqXkGHGg2WBvJwJvR/Vv8kd7vhZoC3pHljIuvKRRpS4UL/gr+mc83er0NcPo ttktMCBeJKh1JtoVbv+NDlyPAX6IwF4VFUv35zUO7FUFPWHZjJF4ZBxB0/iFfbaPncSE raM+N76Xud/EOtCepCdzRCmh6ni4DWms2r8rWbqLDtutL4mwIap8yKraQTqox1cr/aJ0 Hohj5059TdOzW0v5t8CyGiOHGCUcf3FHK614wiOpqa06ytQesad96UcQ+h2CE22rNDD5 39qYZunvjt6QaE2Slk/ncqWH5EwUUhy22kcjHx9cgiu1XZ7/7rzsSIyvaaCXiJLhD0gc eicw== 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=NJ4Rlr1BwW/VlJIKDrxqTk8ExusP1b+351Bo/DAekLI=; b=AejD9mpbTDP9ntdXMHteFiUWMHXmhex+kGPf1aPnsOP94lns+HtVhXt53XjKRIJY7C pffkaBUl9/8+idkD8G/OYw2E5gdXk4d26MMMOd5k8vbMOpOy4r7p9FvZjc+2zxrRHUXc na9CqQXwbXd3RpcMOb5sikiR8oj6bThTOog3nd+fT3ThXNA6VhhY9YHnvjP98qaz4k2G FF1nRj0ab+2aCtTuqIwidDGszpHmDkZDATynJ2qEgvVp8+UaVn3gESUMjf14AoHm25zS XAJNigcoXopcQ3ntG2Nd7b6E0dEcwMXc6lJeGPvXz1RfXeP5r110gXg+ksiyW0z58AK+ Ph5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rJCxYoqF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a05622a170600b003f392403260si5899185qtk.329.2023.06.06.02.18.56; Tue, 06 Jun 2023 02:19:06 -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=@gmail.com header.s=20221208 header.b=rJCxYoqF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233337AbjFFJNl (ORCPT + 62 others); Tue, 6 Jun 2023 05:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236669AbjFFJNI (ORCPT ); Tue, 6 Jun 2023 05:13:08 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1F410CA; Tue, 6 Jun 2023 02:13:01 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f624daccd1so3089254e87.0; Tue, 06 Jun 2023 02:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686042779; x=1688634779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NJ4Rlr1BwW/VlJIKDrxqTk8ExusP1b+351Bo/DAekLI=; b=rJCxYoqFxhnln+7uwfKhrIfVeudKadx6t+qWSNl/mO36w181J5vx75LfWV5i11vLFs bFP+a/t+PuKp8nlle+2pdSjfXhhXmTzfwi9fMz69Hp/s+kud9IjGZbBWjacaQPRa37sI jhOndXcXfrKpC7FphTyHg0sSzIKfsxC6yuK9J3DTGk96Ec177oUC5xocA138xe1ztiO0 zlnuQk8oblN0AN22Kw41Y1ubN4pMbkXzIopu9zIVxoz+fRNQftLLQqEvb45Q5+ytxwFP Uey5DHh5UR7+F1rWtp0oabiNpu9RCA2sUe+Jf7rhD8GvtIHn+smy3Qo8xN03Uoqt4nSr y9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686042779; x=1688634779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NJ4Rlr1BwW/VlJIKDrxqTk8ExusP1b+351Bo/DAekLI=; b=ke7tnHSNNyKCLihYOEXm+g/aDh9ewcmdVY4tHd9zodIftOXlthGcO2oSPTsV82V9Zv zpCIlVoscd+HFGqTcQw82Gi0wTD3tb6/E59nvvRDnJG4Zpbz3vgosTrlXBaeaMOL73Ca wdbXYVvcIgmt8eeGZMWx8NHmhvBWwh74pQF/eGLQM6e7hFi+tlsnOkLZ2zretzHY5dZQ bkTAsLTWMe/5+L8edUoLp+5tzs0Enjt8u4v5mWrrhHIZ6zj71e4o0RICdJUDWT9KJ0LC RplXk0mKWKKZqW2TJ62fp/pH+9UyAIq1utPqrded+w4oDv6Q489dhCqxDvavazqo0A48 va9A== X-Gm-Message-State: AC+VfDzzxvfWUDw3Ad3O4dUUx7phaFJPMcBYyL6am5ZroPOtECDrJLn+ jTGOoZcWVw1sJ8VAFmhaHNvlPtC5DHbemg== X-Received: by 2002:ac2:5455:0:b0:4eb:18d:91de with SMTP id d21-20020ac25455000000b004eb018d91demr853152lfn.43.1686042779293; Tue, 06 Jun 2023 02:12:59 -0700 (PDT) Received: from home.paul.comp (paulfertser.info. [2001:470:26:54b:226:9eff:fe70:80c2]) by smtp.gmail.com with ESMTPSA id a24-20020ac25218000000b004f6337508afsm203558lfl.222.2023.06.06.02.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 02:12:59 -0700 (PDT) Received: from home.paul.comp (home.paul.comp [IPv6:0:0:0:0:0:0:0:1]) by home.paul.comp (8.15.2/8.15.2/Debian-22) with ESMTP id 3569CslI011312; Tue, 6 Jun 2023 12:12:55 +0300 Received: (from paul@localhost) by home.paul.comp (8.15.2/8.15.2/Submit) id 3569CqTk011311; Tue, 6 Jun 2023 12:12:52 +0300 Date: Tue, 6 Jun 2023 12:12:51 +0300 From: Paul Fertser To: Simon Horman Cc: linux-wireless@vger.kernel.org, Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Rani Hod , stable@vger.kernel.org Subject: Re: [PATCH] mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC) Message-ID: References: <20230605073408.8699-1-fercerpav@gmail.com> 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Hi Simon, On Tue, Jun 06, 2023 at 11:03:31AM +0200, Simon Horman wrote: > On Mon, Jun 05, 2023 at 10:34:07AM +0300, Paul Fertser wrote: > > On DBDC devices the first (internal) phy is only capable of using > > 2.4 GHz band, and the 5 GHz band is exposed via a separate phy object, > > so avoid the false advertising. > > Can I clarify that the second object won't hit the logic change > below and thus be limited to 2GHz? The second object (external 5 GHz phy) doesn't have an EEPROM of its own, and is created explicitly with just this band enabled: https://elixir.bootlin.com/linux/latest/source/drivers/net/wireless/mediatek/mt76/mt7615/pci_init.c#L104 https://elixir.bootlin.com/linux/latest/source/drivers/net/wireless/mediatek/mt76/mt7615/init.c#L573 So it won't hit the logic change and it will be limited to 5 GHz. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com