From patchwork Mon Sep 13 08:30:25 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: 511509 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=ham 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 81D00C433F5 for ; Mon, 13 Sep 2021 08:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5815E60EE9 for ; Mon, 13 Sep 2021 08:33:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238218AbhIMIee (ORCPT ); Mon, 13 Sep 2021 04:34:34 -0400 Received: from mail-dm6nam12on2048.outbound.protection.outlook.com ([40.107.243.48]:60019 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238389AbhIMIeK (ORCPT ); Mon, 13 Sep 2021 04:34:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jjsdfTXGrpRpFG5a2jqvUDdZaBmd5OsFkwVDuVjFuOYOix0IeJlqB5A3JtwahV1kROE2EsBNnxPDP2ers+o8zAOWAZoO/rGQBGekENxJpP1j7Nsq7CFJmiQFqYn52bnMuW7PudCXE01xlKtpJEyFq551BFtO8U++d6t4ULfqZ5DeVIxMRSfqcEkn+JfbGQa17Q46AJmSXXsn4q3o7cC08OqPQRB+ub0k3foZPUMcZJ/DK/cg5zFwkXce6rgZ47lqWddtl+LETw1Nk1bzgmezQH7K8CDz3Segp/n+pCA8/WBJmqpU0RGyIZS7mZJXV4EMyniXnNCDZ1IKaFGWuAZ1UQ== 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=R7LujJ1bXZuuv+S3QhyLZFX1A2mcIMarq4RyVh7fyKNsBHgEq0HMSBmCD3TA67huyuJN8Yicqv6OmxGmnlYhQDKRDoN0MhSQ3RKl5SvExFEDZKvnHZ9c7iStze4roXkq4s2Dgwynm05ZKgPbUs4H8RXnuYXxKNZibRUdquCIwYzd/FqcSWMTm7td2eN10VYG7OkJ76iX6L4KAKdaHRjFoHs1n+EUKX4CqrhWAbSfVtFMsoZhpN8D81UPrrQUOrcOymamr6/pOMZHXCXi605Ek+QsASfWpOkmTkUEPINMbJ6ugULyJ7t/iqkGgOUS538NSZ34i4eHbrtDjhLQJnJhOA== 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=ZUxo4vE2s1yhdSZYI+4PYWkd8LSSr5r79INIS39HllhPRRTL6iYSYHLeOqLrX8H6XfYmh6n63qt6PeGfIjsUVudrEKvb2iQMHuh6h9FruL9df+8kMmgtfosWTaqx5GbkIytlibME9MLstcjMyk46z7//0YnKJ9ynyNNdzyVasFM= 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 (52.135.97.18) by SN6PR11MB3263.namprd11.prod.outlook.com (52.135.109.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.18; Mon, 13 Sep 2021 08:31:52 +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 08:31:52 +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 v2 13/33] staging: wfx: update with the firmware API 3.8 Date: Mon, 13 Sep 2021 10:30:25 +0200 Message-Id: <20210913083045.1881321-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> References: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) 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 PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) 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 08:31:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b53992ea-05c5-478e-9bd6-08d97690e116 X-MS-TrafficTypeDiagnostic: SN6PR11MB3263: 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: 3fAl55nHIPwQHnzJtpbLjeS+vciFmWwnpaTQfEtwHN/d0ClvYs7XSZZtcy6lLd7UpbCJ3C9uCMd3OmdxnScilvgWKyiCzT9BYFnB+6s5Wcg2YBhHVSsdLyfOGc+t4vEnee/Y6DGQhHzEzrTHNI0g/jDdM7+jhAN7aM5ct16Z926wjdSMgPP6IwlkEn5vB/J7QlmPjUQS//ZZev/xDPPSjGFR12u2yKdAJjEWYxWucuFxJzsoR1HVoCH8qVEmt8QaKEPOMi08cOy2zDGZgHuhSyB9E3bjG+YkfykXc5MbGf7w03+a6qx1YAxfd1Mbly9CZUeH4laLtpcPZUgiPaAh/hQir4EX2gredgQMoEEv1fU5V0/RqYEhsTO76iCW3OwHR/++TBzVKAcipHfK7X2fm4Eeq+DBZnchMl+9/b9LVSRzaURcVkVDJR8DkQhetqyy2Zhzm8sxM6KEeDfYCkuSa7rY47iotufoOV0DwfgT1P4EOGtvVEKQs+FC42XvzfkPAEYacIArtpjynqcoyirooxYO/yfO/jUtF5xfiZ58XfaeHKLDqlZXmEBrJG4TxRR7x5KNZbohtK4FzqFck0t1dRJod5nGCSH1kbehs4PZr8ry6JYLJtn6L89+sOwUEm4S9BdQ7lilppui6rsX6TQ4wQOuOVQsODGHgvEXkQWk+wdYva1OxgdEl7oQT7RiAcmcjsA2UTehc6+2RzCTB9YY4g== 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)(83380400001)(66574015)(107886003)(956004)(2616005)(5660300002)(54906003)(38350700002)(4326008)(316002)(38100700002)(66946007)(26005)(66476007)(66556008)(186003)(8676002)(36756003)(8936002)(86362001)(508600001)(52116002)(7696005)(6486002)(1076003)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?djg313ugOCVQkCyjO0tKLtNFI?= =?utf-8?q?L1Cib76OoHAmQ3zTQ5LspFd5T8q1ZtIJ8tOAQDYiJtlFhUAa8mDr3SxS?= =?utf-8?q?tpY1EFpfB0/Xv0/sGud5s8UUKaW3VbD2kNPHXyJjyZ+sLU0jYPVAZ2R1?= =?utf-8?q?GCYIXrnMQqkGl0RAtmavFyJTKjlWXO/13DGDPzzpvtGwcOrNtltFeWMq?= =?utf-8?q?cq5E/JkgnCDHElRckvfoLH1wfZsWTxeJzfe7MKB5AAZoikrDXSRbkPIV?= =?utf-8?q?E1o0WisnOZz8ghmPv49JbK9Dk9Qr9gBhOUm2nVK2zGIE9mRgTorthuL3?= =?utf-8?q?xCDAQzIPcNGfswKk4zq7PGYiwILU7XwwpEZgXfDdWgQiVx54ToWWw7sy?= =?utf-8?q?ZdgFxCSEsikRmaL7vSpRp8rBLco2bymwWbkndAODdUg9qsimccqfbg1F?= =?utf-8?q?+inoqpmD5JYNPP7i09EbL1uvID6oP56VhI+A2BzoQwPera/Ob5BYn46D?= =?utf-8?q?HlaY1DDIO+Ey5Qqp6JvgK1riuEoarphY7HDo4WHzST7jUCQQ8sB3rdgf?= =?utf-8?q?2xJ++mRfihyNotWpiGD3TuXCA+h3Cir9A2eCcxnxlk/09GiVtfMgbRJ1?= =?utf-8?q?JaIxzn3aH9GhzlpdP3rUqP9zXlKdQ0e8Y7TJ5YxFVKblKFhyataCKLUX?= =?utf-8?q?0PTKBxWSEhid5zNjkey66YUyYRg+o9Wlin0OZQ7YEOJWZ3AfpoO5ftwX?= =?utf-8?q?xa/U0gvsLzAE0EG7SeTnOIdkSkoWlGTV1S26IsM+hAOu+7P33OGSAsox?= =?utf-8?q?etRxRRbnsILqAqufp3aRGjdISRPuDMLZZKigl2ZY52up5euOoOq581RB?= =?utf-8?q?A+R6YpgFXSoWCG9y5lkX9zdty/LLPJiHNu83Xk8vY+iysgDkj1H9ISjJ?= =?utf-8?q?zwr9O5cNoiQcCKWwUzbjxAYHEy4m5siHVSvSoEY9aTUC75xtSQzDVq6X?= =?utf-8?q?E9zFfYgwz2OyylK3AY3tSG68jUwi9+Ngfrzdmp49NI3GjsqsHLS1nPqn?= =?utf-8?q?U1hwh3iQXxACNWNcrYdYpPpjZuqykEOO/IkX5lkQzxNUvGowUgO4qoBq?= =?utf-8?q?ciNB/BA7/6D9e4YEA707R4ozO97Hi4PHE4MG90GpA5fCGJqmoXNLwR1c?= =?utf-8?q?w4IHrX0lCjmVQ6LofQXYoZZ8GPSROrUO190GQVoPBp6erTuq+vcjAfw2?= =?utf-8?q?iNjCVsj0xEY6ix9yWmnnI21smSfUeFwV2U0NMqcG7E+uDUgQLzD+bmI7?= =?utf-8?q?6cBiB8Ywk8SuMx6GvYh23e1Yo5d3m5cSc89nXalusM0ADANG0CSUjg/J?= =?utf-8?q?aOoVkYmVgngU00cHMWePxf/bKPeaLZdQTMr3xR0PVonQwovPaueby5A5?= =?utf-8?q?uZlZo4NAxpAh3VDU5w9Eufr0hHBUCQn?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: b53992ea-05c5-478e-9bd6-08d97690e116 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 08:31:27.5028 (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: lflThaV7wLd6ccG0NA+sL0BPb+b1BS5asLeEyitLITz0sJldrINxSzyJ3Vc9MpxXYGqg7EYysTlZDWgSkJ7xhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3263 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 {