Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6819283rwd; Tue, 6 Jun 2023 02:19:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6L98sHqaPbgucRMWfMlT7Kh+n3NdXJv/rDwpfJyH2jOBQ6jf8g1fSWVgf63qnxPJvzV/v9 X-Received: by 2002:a05:6214:2a46:b0:623:9a41:e9f9 with SMTP id jf6-20020a0562142a4600b006239a41e9f9mr2013217qvb.35.1686043171338; Tue, 06 Jun 2023 02:19:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686043171; cv=pass; d=google.com; s=arc-20160816; b=Ps/jgZ6peTMUBARddEn5Awzcqb3pVOw7WhVNLeabVcBMO8SQax9dOz3dZRkkEKS/pm b3AFpZEjvOEXHpwBzMc4SYb2OaffbJmwQ3Wy6A7uLquTTBmxQdK0AtYqI2gJ/gkOvTnI jVURzplDssaeDNDzK5DtqiLT8GQSCXwmF6HI5avx7FEkUH85pI6tpHDvSCn9OmYHFMrZ UtyONsDmGxwCigBLFJ0gYnXShZPDDwA/wRhnMFU42H3mq8gUHQRqQv7BShRTCoazoje0 P8GsK0+4wNlaP3wCe2z2jDp5J3XtrIyYelzMlhAejak0tePS5g0Riri5NJsP1A7vI610 GW4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3GXwO+efv0Kz9jCJqUKq+o7y3U0ehUDN4LS139Asp7c=; b=SbplMbcyVBUX3IZpVBoHrrDrdhDxjVjHYbpxvhcAei/RUcqXXAXzPhC9/NHw2+Jb0G 8JKxKr5g9/cEDJbo7cZSkDZ5CeNNnHV6jyoHb7zopl/FfrJNJ2mIdrjxvDXuOlZlK3ty 4cOylEJl48GeYM2G0FAfzJbfTz5vTKjOnf0FKV7qSX0LXwak+GCwAvyoHmPazwwx+gqQ ENGNAaLp+eu+V1s1DdV7tz9MrIUmoVJ/IfKUWFCrjtxp79gSfvOD4JcmfdWV4+qy2ko2 Bamdk5b2jZZ0p9ia9KVpLqZ6W6eNJ6EAImo1knPDU7ddgFjaz246DwZxuu20ZDD9VdUt 4INw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=g2uUdFOD; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jn6-20020ad45de6000000b0062637caf4f7si6047146qvb.582.2023.06.06.02.19.21; Tue, 06 Jun 2023 02:19: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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=g2uUdFOD; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235596AbjFFJQt (ORCPT + 62 others); Tue, 6 Jun 2023 05:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234808AbjFFJQp (ORCPT ); Tue, 6 Jun 2023 05:16:45 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2122.outbound.protection.outlook.com [40.107.94.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E37810D8; Tue, 6 Jun 2023 02:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbVbuJGBcEjrRok4vTojbRVKxx0jAOM9Xv7tdo2PJzk3nTzcFAZ06nEldrbrR97Noqbz/GTYPOM7g5YPOmun0DXins7+FJwQ9WNBbTWYQMVcbS3bb0mmKDEWMnwr9zAJiY/VaceJJnwllx3Tr7dseuGB/NOX7PS1rHRNtlsjjae0sWC62shyLPkAjRKM7a2xudOazJQHtkxjJ94yiV7Y9Mvmmrr4MqhG5wwd30E45g4JNn7io/OFZDFFW4KBiAi1I/OHQZsMh3VeID1NfZkdbvNOux5qqGiusrkKCs35KQxWvYWWz5dzTHWgG+jV05C8f5TRtR6UoXxKtNHkzu/img== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3GXwO+efv0Kz9jCJqUKq+o7y3U0ehUDN4LS139Asp7c=; b=QFfeNgbuVQULHAa9FBvC9Yz2774mpW0HDtLoj2JNudRaZRHFnc+0IW3WzFlKt+up1rPy88n2KqlAU8pn/R8SgwDr+tkN7naz6FUtU/4v0nbhrOxHmfjn0HCIo5Wj30wfipHACCeO0WSLz6kyHOdsw1c2BJKhiWljoDWTUltGcwvOcWKTwjCEPFJPrIWYnNd/k+2JP2wNMcXZCxUFF21oIgshF2meFySovmShWfMgtyCiBbv0GFZowplxG3f90iNm6IpPVYm7PxVIexGpk8eFq8WHQmvsmi6S5i88zjgA4mvwXosIBW9VACi8NF3N7glRuUJRX97xF9L8R3f496Xj1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3GXwO+efv0Kz9jCJqUKq+o7y3U0ehUDN4LS139Asp7c=; b=g2uUdFODh2Wnbw/9C7T9F8OGw1Eu5qPbpvc5RWw8T7URp47y4pVYWn1o/21vRJ/34Ub1gaQnfDh2i5xdAG3yjeNdAVicrDcBqAF6hGw9227xcVODTHk0LEceXLJcgt8A2oINFA8T86VOLpjZYEXfuNSBHNDBomobraZCoGNbkX8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by LV8PR13MB6397.namprd13.prod.outlook.com (2603:10b6:408:185::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.18; Tue, 6 Jun 2023 09:16:34 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e%4]) with mapi id 15.20.6455.030; Tue, 6 Jun 2023 09:16:34 +0000 Date: Tue, 6 Jun 2023 11:16:26 +0200 From: Simon Horman To: Paul Fertser 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> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AM0PR10CA0023.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::33) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|LV8PR13MB6397:EE_ X-MS-Office365-Filtering-Correlation-Id: ed23e329-6d84-4001-06c0-08db666eb939 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bva3dSlb2q0Tv8VQw6zzCjTRV04+T/fkxJcFi/Hvk+CG060ExRzf3q8RJQ/wdCZ0FdxRK0i6Iaijaqu15TXGl0fdEEiSeXA3USWSzdrZeeBcmxb347jR2KOiwDKtXYIEcDGL1Efths/tMj4uVtV2UKRTTAzc5Qr0xzdVaRUQNoivyZUEyGZg7BqHiPBJDfn10pvcUZaqHdJ928x4VXewx2erxATVAkP08A9a2OOLQE1iXncQvpQKIkAuHM36GEf7rCgzqjCKw7oXlr2ln8Asbh1kHrkHELZn6bJ1ApIkfv9FiOAAJCvHJZowLVxqN5qk+NS4SR+VWnTeH6T5m+Lo/HpvU8fXqgYbk/ncrOYqM5D1GcUa7/zPv4YJdNPdteuxqDFBo8ewcioothiz+A4RuO/QWHuUD64zNLqjDeyE5WHCnf2sdpnWPWjzv/pzI9WYOoU27MjoDxwJCj5rD0jJ2xtIlNPrgSkjlKVuvCG515OZSDYD/BxkE/ZeiVV+FCwe1S2SZX0WWBxT+EnZDDd0b7Ws3CpTu7Drf+tDjocCrSo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(39840400004)(136003)(451199021)(66476007)(66946007)(2906002)(478600001)(316002)(8936002)(6916009)(4326008)(8676002)(41300700001)(54906003)(44832011)(66556008)(6666004)(7416002)(5660300002)(6486002)(6512007)(6506007)(966005)(38100700002)(186003)(2616005)(83380400001)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?S3xnnuW5GL0osBAqZNmyod4gQGv8AA9m3V8/MhWK5qPUublK1G9QFEqJ+9Ag?= =?us-ascii?Q?wBtWdTLj3oVBSBSdqoVVDyyZ4775huYMG1o8FLOKxIbXdZ+4JWg2QzYXKyb4?= =?us-ascii?Q?BBhLMtRC+90iC6t2FsDkPlmpHj0F/oM9Y9zwbLt34SFBoIdr6wytoatxYWPY?= =?us-ascii?Q?E9IOllte5ZHWa4V2lGSUQNR9vQkOcJ/I/PxK0w0tfR7EQjIwONpKf4f/sgKZ?= =?us-ascii?Q?Sg3Fn1ppkU3nBg4hAPgWjThwugHsq4rfqjUJlGm9RVaqLlW9GKpn8wmq/f/7?= =?us-ascii?Q?eKPMbDiDNbzQ9DCxXKH23Aknw7F15DrFe9gN6yV6VKNxUGNYvQsVlHDHmvnA?= =?us-ascii?Q?ZTSBtquHWHuS/vA4p1DhFov8SJyHXpO6Q8SsfcQJaoTOqiMY5l3e+6xY2cLQ?= =?us-ascii?Q?aAf0wd5+AlZngUEBYtwTkOamBGeqty6YYJBRFAyvAe2/FJVQjIdE251bU0vl?= =?us-ascii?Q?+u2s6cTo1s4W3fWHG8Jzk6vy1S5oAU7tnkNhWPjQ65W8xoZIP3eXWhSVPhgL?= =?us-ascii?Q?DW4By5IPGP9zc8ZXk1sPDXxcxkbBFbDazOQwVU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edZFd3+QwxD9Uoovxovek5og8orjV8+2TQr2T+jjleivc7g0EZppC?= =?us-ascii?Q?jLR1Kuy9yw+UQhN91SOSFH7hwYZMaZUyw5ykSrUcZVhw1zDNRFHMmdSgHCHE?= =?us-ascii?Q?ilpqkEhp+g6Fncz82wlJEHzPGswgc/RtutPJiV6uDQLxeH+q77vmssEgRpLW?= =?us-ascii?Q?3yBixuj6LDqu8oxZFovpOSf5f+R6LV9MFwy3SxrAABTOwprxN1615k4FVA9v?= =?us-ascii?Q?u5uuiw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed23e329-6d84-4001-06c0-08db666eb939 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 09:16:34.4050 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6cAaxU2xVsu2rcQlu9/lx7Wb4ImZWiqd8HiFcMUHD/4Vic2eNir1CoqJYQEWVfzk6gYcJl3U9FPYZx84gjPGDpNED1JJ9HKGQpSxwUNa2PI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR13MB6397 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 On Tue, Jun 06, 2023 at 12:12:51PM +0300, Paul Fertser wrote: > 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. Thanks Paul, in that case this patch looks good to me. Reviewed-by: Simon Horman