From patchwork Fri Oct 13 23:21:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 13421869 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96B42CDB47E for ; Fri, 13 Oct 2023 23:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231875AbjJMXWZ (ORCPT ); Fri, 13 Oct 2023 19:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjJMXWY (ORCPT ); Fri, 13 Oct 2023 19:22:24 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2072.outbound.protection.outlook.com [40.92.99.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CBDC2 for ; Fri, 13 Oct 2023 16:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PTd/z6+6kvpuaKuPIbQ8+3nqJAclu9/3SBrtasod3oFg3aFBQGUVmy3oURrWpOHLfyZBM/4VtQAMnZj4duoQNAkonCrXJjyRvtQ4qv2A3La+2MqhPvhfCNoMhceW9VN8xwlTc8CkhNZnDOifk4ZAWc9YyniMGvlUPAS9ii/ytxpqTfdzQJFmXf7YTDu/EZv7nhSBHpfBiKySkHcyQApgvb5JxnArfd136iYY7Mb2+GCfXf8AH7eHtYU2dqYn5eOOpztgo7P7EwqIm+yblTkkGxiOfFWvCN0SXpft3vrjyPjtdSqOB5NHs3361hD17E8aT0JlNeIvWDuOl/GYdls49g== 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=SuvhDXTzmz+Vo/gPbZrGJ7ctHGvo111yRB9o6GTiNCg=; b=eWxNu9jmiJkCFbDHSHUV7z9A1CGslRda5NQtk5D3mqqKe/GZzM/6lz4GwgzqUEJ6sLJ3pyb+cmDzUdtNHTqkQnT2DRS5LwgW+PNmm2ucAg4eK7aQXVUg+kHoH1RdvWbLF7ylFiVNQecyYPQ7fo7/Cx2ELtP1MZO06UouYQxQuAc1TCGuyODxguuZkkTWd7E6/ecvCY+SmYe/KL0x+YxnkzOLrqW2NFVNHsZmTgorV/sscVIdOO2lZHnzy1M6iAjvmGLwcX2dwvE+WFHn/kPowlHXvVs5CyqrYx7D2KdaXoyKhO8pp6C73CPiqcFzyPM9YLKaAZrOQ4c5VLtKHgD2Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SuvhDXTzmz+Vo/gPbZrGJ7ctHGvo111yRB9o6GTiNCg=; b=c1xDmidz585Q+3GUaqGkkCUac6fMojrN5c4006lrmMITCzYkMyjzVy04Csl4SqaQ/Mad6USf+08UAEWDjPVtHlZ0I4ssEQN9z9DY/q+PwaWbQtmiIdkBQw5lZriwydZN6BSQFlZqnnbOq1T7LOp/3bOppn/vJSD/VBF9QQWG9L4Wr1ZOmu22ZLdWHAuyPQqvr9qnSDRFtGb8QHXAYgTm4/VHJooJrRTWUVINsBdmGiK5zcAPFFkDMNZtT9vfA7XTup+VWQ8AGpNx34+qgDZXQskYK4Out2R6ydWpPx3we+9tWirLbh7hA50dMzfkEIciE9MfXjoCa1i6KK8devs8ZQ== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYYP286MB1691.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:fd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.31; Fri, 13 Oct 2023 23:22:20 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::bbb1:a301:f7b6:744a]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::bbb1:a301:f7b6:744a%4]) with mapi id 15.20.6886.030; Fri, 13 Oct 2023 23:22:20 +0000 From: Shiji Yang To: linux-wireless@vger.kernel.org Cc: Stanislaw Gruszka , Helmut Schaa , Kalle Valo , Shiji Yang Subject: [PATCH 0/3] wifi: rt2x00: various improvements for MT7620 initialization Date: Sat, 14 Oct 2023 07:21:27 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 X-TMN: [wNzAIxtaxs26UimOF+WWMiRaHuBIViMP623NeQn8VUU=] X-ClientProxiedBy: TYBP286CA0031.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:10a::19) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20231013232130.416-1-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYYP286MB1691:EE_ X-MS-Office365-Filtering-Correlation-Id: a5750a8b-569c-4ea2-d16e-08dbcc433ea6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7C0nSZcK7L+hY6MOIe7Q/NDNbqCmtsiyfeJEEaF1mq119LlW9C6WDHPCZDXmfYzl8X1goSo2RbjN+VRRlJ/QAdPjs4+/TRDKsV1VhcDDcGmBu1Ig2lFycD513QgSmOsn1D/9P8a/01uFzeZk8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xxyRmIhmqTMAt9+dlBk+4VwLxiOMRb5uc4MKavzmpqgsXm1L6WrOCRGBAGzsPa5CSHNCyuUrnLY5rnIeviDgcN0cb+a65TJ7mP9bBjMS9MJoinloyPz94F7y7iqF5gGrFBieRFAwWi4s80I3lkmOdR2os4hbq28IYmzyTwoEu5nF+fDOy2yHTSF9dwOXWsftWAzHc6FuxZw+4va/GOBH48A5ibsqVp/BD2cKJxWzsK7Xtc2yJWk/GaPayKLG/nHvsoZc8hIoeEtoG92ZBFARpESff/2QV/8whKh47r85DwFsL4u1pYtAVFOfdzroHJImKmyPZMjBUUwz+CpgchF4c5sjsAQb6roydd+lqz3cnOy1uZXb+rYANN5L3OggiAUMVZNHa3qVFgdo6PNHVU/NvhFjf+J9TjdZywfkrOZCobtsTFJn0ycEXf4eFe5NV4TzDpuFy3KLdPT2Yg6lrEbFiNsyHwwYVMX63jYI7FpZ20RVgJtoBUaXkjN0kuJsY6mMadIOC4ua7hAVtWIEMq1LZrzDMSSxL75z1b47Qqc5W7+pcnpCAD+/Ik6KVBke/UctHFuxSmq/HZCKiuj0c0ToAtsWm/o1Lrdq2PTEBy5N2zHOJAAUWJA8Jehkyb8YjbFg+QY/fL5Px1/02ASfJ/XihIW7LY45mSE7EY/bdQuY2sWXXMwDtStTlsS/jKxU+49dunjpTlK3k74dRkdsGj2dyP7xlBvlJ6aj0Gg= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5750a8b-569c-4ea2-d16e-08dbcc433ea6 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 23:22:20.3887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYP286MB1691 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi! This series patches aim to improve the initialization of MT7620. All changes and register values were ported from the Mediatek vendor driver, and I have been testing them on OpenWrt for several weeks. Regards, Shiji Yang Shiji Yang (3): wifi: rt2x00: improve MT7620 register initialization wifi: rt2x00: rework MT7620 channel config function wifi: rt2x00: rework MT7620 PA/LNA RF calibration drivers/net/wireless/ralink/rt2x00/rt2800.h | 18 ++ .../net/wireless/ralink/rt2x00/rt2800lib.c | 290 +++++++++++------- .../net/wireless/ralink/rt2x00/rt2800mmio.c | 3 + drivers/net/wireless/ralink/rt2x00/rt2x00.h | 6 + 4 files changed, 210 insertions(+), 107 deletions(-)