From patchwork Mon Sep 13 13:01:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12489009 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABCD4C433FE for ; Mon, 13 Sep 2021 13:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9299760FA0 for ; Mon, 13 Sep 2021 13:04:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240201AbhIMNFb (ORCPT ); Mon, 13 Sep 2021 09:05:31 -0400 Received: from mail-mw2nam12on2088.outbound.protection.outlook.com ([40.107.244.88]:10209 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240045AbhIMNEp (ORCPT ); Mon, 13 Sep 2021 09:04:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsWwEGa2yAZbVvTgQAzgZMnBboqTGTxlMgGfJgD3ByMilKaHBhSOM4oOUDNflRaM5SGAlEnLqFwjXgxvMct3kGjUqksQk25gvSYcvpQplYTx8PHfslUat8PpPRYvrAhRxCTI0mJLdvCSwpcUxiXHomMPIcwYUH6FhbAdDTSz2tx2un24N5RbbtN/cgTTd9lIO93HnxdyKXUvbHYE/UkjR9cQ2snU0XjiIfDCpD8yp2bXhR2tgOUzNduOqZZy7UWQMG25/ZbYh2BOrP8+iOD7rLbb0OfFvROEQF/xnMPoB9S8wiMNjYNWr60SqW/o5UHvk9KV6tX2uSKYiu4D5Gx6kw== 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; bh=qM0FMGZRJjSUIUB43bIkjZdDBC6mBZNDVgLC0UqdvoM=; b=XTo8OSQwj6n/DruJZe41UBVoTFawL99/n+dc14yUl+tfE46hSilbSZa+CjH2PV60JI2xuVi5sCCk9F3WEhzqHpfHNUuXQhomTWOWK58Ze4KdcMVzGRUtcPCCJ+JuaxaPdXk5nBRn/fVHLrCzi6xuDYNJS4KXTWn+mZs7M2inuSHR7mulWYNeAOxQoEA1YnFL6FcyS+WANUuhVPtFDGMySjAzVZfOy6dR8l+w8rvSWI8PUj+Rhji0yLBoMJc2Xju4j0csyNBR7gNlq6DPaiedcyZAGSiXiPtXbgSsfydgHePx7qw5clVePAooRg9x4SEQSpkLZRMGxUCi7fTGz9JULA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qM0FMGZRJjSUIUB43bIkjZdDBC6mBZNDVgLC0UqdvoM=; b=J9AL14lRduBJJTeR/viMY2qJjZbpYaRN6PeB06jGi8q43KGuCTPIZ0bZTaeV56AoOCuPgGmZz+7UoMQcbTTdXBpirTiW5l/bsH3PU7cIbj5LGBdLASe9KfVtoAf+DITP/+uP+xtrs2/xkJtvDjQDhItztcZnuKJ2pGfqhzbY/34= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB4860.namprd11.prod.outlook.com (2603:10b6:806:11b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Mon, 13 Sep 2021 13:02:41 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Mon, 13 Sep 2021 13:02:41 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH v3 13/32] staging: wfx: update with the firmware API 3.8 Date: Mon, 13 Sep 2021 15:01:44 +0200 Message-Id: <20210913130203.1903622-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> References: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (37.71.187.125) by PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 13:02:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28f23c10-085b-4ef0-9ee4-08d976b6c521 X-MS-TrafficTypeDiagnostic: SA2PR11MB4860: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:288; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 65WuPnQc6gUS/XdD9+EGkznW/ChxzsvqFUcIZq+RQU3fSuJKm1M727iqmktGefl88Y7RHKcdmU8c2rDIF3AzWTeK5pJjGXwDCqbRet8YtT6KkJ2FE1IVwMMU8HQnSvGiOm9mz+ChtCzcAmy05qKFxGUCw1UScc24KmPHXpAkpeWomK4Hcwwqa1EpTtQyOzLeZE+gCLzXQpHUpU+8XGkD5cnpjcGC6NRa+yzC+gyNHEsyTitzpcfbdFiSMSVQvbvMJa52n1mOSE+u8WE45IZ5EF3K3V02NZT2L4TkyNuFFuLHFlemNpYF/ZmADbO9drPSvkEyjHBGz0LxnuZy4MtqreGldeCe+iweTrEhE9sK5PYiipvM+l1dUjX0wmAW1drxg6sxHgb+rhdX9CYqWbFn5D+W+E3daDBMSKkkM8E9mp6VMB8kyeXJOu+jbR8O7AdTs0jIa1kGTxqq3+OZJCiUoFi1HfYF4dMHc/lldovRezhzPxWOPSd1RmXYn6e1sAGPXuxNGHzAPKVC7HESgvlIEJ0TrDdwUIENPwMfmCQMI8WHXJJ3h2ZDmTDqkYNmQj6c+v9PcUyGLQFZe1Mdlyb9FdsHkxDx2mAv0AZm6A6xcbExDT4e346T2oFxxnUP4dxWRXMTryvKj5GMtktTrVuU62rhb/479P+MOtvsCXE5ih8ozpuYhxX0EmasW0457C6q573E5hiWeSOnIwzD+cWQfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(956004)(66574015)(6666004)(66946007)(2616005)(26005)(36756003)(38100700002)(38350700002)(316002)(4326008)(107886003)(7696005)(54906003)(5660300002)(52116002)(66556008)(1076003)(66476007)(6486002)(508600001)(8936002)(83380400001)(86362001)(2906002)(8676002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?aL1h2KYi+AK4NwV6VOHz57r7xKF4?= =?utf-8?q?4gPfN/o3l4DKPVzb/CDUHUn6hzb+d2+D/+Wb9XN7XrpX2+qPCybzz3IZ3KJe5gegv?= =?utf-8?q?0z6BGHAYsF9bA/zAITDIdcuEEnUsQBDXGZO+eEsFL8+XVh6pfAi0HpCVLSrIEJYA1?= =?utf-8?q?3Xi4WdXWimEQANaREcJ5nBLbMff1qSbkVpQtbAsRecrSXOMtP2EQZY1v2iqbbwRWB?= =?utf-8?q?1HBL2V5ot5wErQ0CgQ+fMO11EQKrCKy7hJ6Dtn7sH/G3p0QY/MIw8dZ4I6NpR5DPk?= =?utf-8?q?dfsqpgoto4OFAeVRymQmpa67jz8gP7iS8IZSSZfFKoIj0vPx7s9OUCymmZ+Qj4Pj+?= =?utf-8?q?1PmPi340Eh7sJ/JLB9e1boXqcn9UqX5VAWACBqOgFyrQ4EKEOJi4shroq0JPsiaGx?= =?utf-8?q?7ShHsx+jXevYg9KFihdZPOqlYh6sA3CazK1CmPQy2YUwHxuWzk9C71qGVaAEIeyzp?= =?utf-8?q?KZa5UY5JIHpEgLTNDkNBvB8x0jsa3//jsh+izwQ3prONDeaxcttkJ6qIt+LnEFvJl?= =?utf-8?q?oAnb/nKm6yW/EEK8X251LryChJuTN85CWiCBLsifN6T4v+18MJJewSip758KcZvWr?= =?utf-8?q?lmyPXnErYsPAgYBWLNrZDCVNmucs7KHnh3h23KcTRuar4vRJlKnVji5lx60RtG5qr?= =?utf-8?q?4/Tfr+Q9D3VKoxA1iA/iecgsGfkk/Ya7O+i4lkuxYnLFZNsacAiORt6lB4nSlY24Z?= =?utf-8?q?ul0cVX64IwD1/VlbRbfk5A0k/F1OxgJ23AHz1PVRRKDtptavWQpzX7bTcqwg2qasZ?= =?utf-8?q?+XKaMOqCtsHHcRqNS8Ccbvpjj8W2KuRj/E0lnd8TpILf1E71YokGzmSNYS8OqbHq9?= =?utf-8?q?fTu1tZbGVSVGnw5F27HSU8nfT9dHHPaqOvwIot0mDoevBRHyJne9tteZfbm1iBDsr?= =?utf-8?q?nbZPd5b1zuZcsnnACEcMBffqYL8mWoU5Vxwa7MFc7GLOcYttOKoAhd4Y/Ahgu3jdX?= =?utf-8?q?q0s91x2Kg8XLnaSUSjRgCS2ZXEkCz/rjxiGUUcsYkHaNk1Z+lmYvb2Qb+ehHYsfJZ?= =?utf-8?q?m0Jqn06g368cFodaPaKPLqO7xzudkh+U8EyukI6bko6cnrLI2wRn4vwX5OaAgU+cI?= =?utf-8?q?z2IbtgoCzpZLz/2ceC66lhYc3oOEdakLBeIS8U0inaGPRDOZa1WouydnInQ1NzIK7?= =?utf-8?q?T+gimRMDx6xwVinIF7bu3vFbN21rnqtd9DfWjyJbGH18HC6qhdk2I0psA0sJTs1/1?= =?utf-8?q?aWOl3P9Pa5zo2iYWUhmbksXMKbX3h+RCi0aTZOEYBSvD5oqGngQsb0+OHznFEy1zo?= =?utf-8?q?jYTENx+noK5ym7tb?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28f23c10-085b-4ef0-9ee4-08d976b6c521 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 13:02:41.4445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vCxurMfJrx9OL8rflIRneND73/5J8LUDBiaZKWwfZTKWcJAvl8rvBAPK60C727WtrSvD5dVP+UNyTKLD2DSmug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4860 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The firmware API 3.8 introduces new statistic counters. These changes are backward compatible. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 3 +++ drivers/staging/wfx/hif_api_mib.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index eedada78c25f..e67ca0d818ba 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c @@ -109,6 +109,9 @@ static int wfx_counters_show(struct seq_file *seq, void *v) PUT_COUNTER(rx_beacon); PUT_COUNTER(miss_beacon); + PUT_COUNTER(rx_dtim); + PUT_COUNTER(rx_dtim_aid0_clr); + PUT_COUNTER(rx_dtim_aid0_set); #undef PUT_COUNTER diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h index ace924720ce6..b2dc47c314cc 100644 --- a/drivers/staging/wfx/hif_api_mib.h +++ b/drivers/staging/wfx/hif_api_mib.h @@ -158,7 +158,10 @@ struct hif_mib_extended_count_table { __le32 count_rx_bipmic_errors; __le32 count_rx_beacon; __le32 count_miss_beacon; - __le32 reserved[15]; + __le32 count_rx_dtim; + __le32 count_rx_dtim_aid0_clr; + __le32 count_rx_dtim_aid0_set; + __le32 reserved[12]; } __packed; struct hif_mib_count_table {