From patchwork Fri Sep 10 16:04:46 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: 509042 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, 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 A22BCC433EF for ; Fri, 10 Sep 2021 16:09:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B0706121F for ; Fri, 10 Sep 2021 16:09:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232443AbhIJQLA (ORCPT ); Fri, 10 Sep 2021 12:11:00 -0400 Received: from mail-mw2nam10on2043.outbound.protection.outlook.com ([40.107.94.43]:53728 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233046AbhIJQI7 (ORCPT ); Fri, 10 Sep 2021 12:08:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OduPl0D7kMXbdJNNRfoYkm8I0e78mQPuoww36fjIex7NcBvBRXLx8t/rbwDHfCOz9bsIh5oF34Yw5RUukkDmBBL/AC8sJWPiCOTyoIqaxP58PgxBy76W+p9u/BGg9M5as9zwJox3yVqmDAlm2wsu+YvbD8TBihsapK9vPFh8B9qkWhII3vZOHlBD2VzaKMs5+C62G8feokPjb67wBoaBgB+x2sRpn5vHJmpgYyM0N5cSsWr+hwQ0Uq//KqOwoqi0aL3nAl5OWWY8H4mLPZNQV86zmaC7ia1Dd+GC8+ccZFZVaapLcN+m2zvRtmdsDZUc6dcXNmM7B0gtnUzEBBMvTQ== 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=/9CXAv3pbajm4uAipmOpsP1Jb6a/7Ntio8z4lp4096o=; b=iCMG8iXmaPPyifJ5fOR3+7tmoMYcjdYoi0CWlxSEEt10njdyPJNhXrYRFhruExC5cZoiKzJPKe3ZXh+Kt+/uoplG8kNlWmgBUu0Z8QvRHiQj/JA7C2xo6Kj1MIyVjERZTm0C0N5uCDl9ruWDO5CoUS2wHa297wdxoiiYBrcslSpXnk5dZ6F7nn7hpAl11HkvTftCfc+LmqPCYb4qp/Jhm3LG+61yv4O5vognr50sdJouBwC6ieO18GQJGON+14ikMOPaOp6Uuta4yy0WEkJfx1IauZiAkShTIMiFGog99vfp+KAL0wQ9z1aiHbeNzu6ma+hTtmHF1oP03jLY/ROXUQ== 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=/9CXAv3pbajm4uAipmOpsP1Jb6a/7Ntio8z4lp4096o=; b=TkVO/Xu36YfGD3xiMiSSBgoti6EWClWniTGyRQIA4zT7ymN/465gWIlOSJct8v9bLR6UHADnwn7kDAbcgFKhFe7R2Ck2FE2K+Pm9y98VEvoj1zX2zAH0lRYt68pczRceUC0yVmXSwmbXadbVSTV+n5898MbZQrrB6nO0h1I/mVw= 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 SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:58 +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; Fri, 10 Sep 2021 16:05:58 +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 13/31] staging: wfx: update with API 3.8 Date: Fri, 10 Sep 2021 18:04:46 +0200 Message-Id: <20210910160504.1794332-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 50c2cdf2-b644-469b-4a16-08d97474e049 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:206; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RbW0swkWQhz8XvMFt6AWVkgobhs0a/pIkVVU0zJjoqmA00kLciw0G0+6ktUDM7v101pcOQW2HsgmXn2UVaHCTOWcIzCzYngZMo7iFbn+6WHbjB9WZASlJE6Qc4UBlDByH5XxGu3ca6x44w1Hex9V/wUlE5Fitp5my1+AJUuB+faftgT24+DP20WBgcdet7tUPguohMKHDiMuA6mEUSmfR3icoKsf7JFJu3gjvPZFFZ9+w/zbjn5X9JcJg0wisBYh/bI1uQZqAx9cEryZz5vNQdh38jq0DR95qA9iQYC/WPHY7jMuNJ2rBMnMvDaX3KHjwC2sKQlnLjfbkKZNb3U6f9Tb0rXxv62M+YVB+N8K2HAU59aEmOY3CzOBr9F2bGNQFLE8fn5ozFhirgEW7dEOUtQ25WszxH2dTIbuhGy8dlO+R4pN2VHsaXB0nq1S9HTHrLejghP1oQW7SOYNOJDsIlP6DCNVZEJFhgqOD+9HqKG/EDmjcTTU5j92LTLNPDRUjduY+1nIsy3Ja8V1lPEiUGuE3OneselBgB46GW0/oyW05eBjMhRZ8dKY8a/vl8BbIZn97LqxxukLqVoFTNEkApon0Ysg0dC+/AvDQps290gOZN0KvQ1p3YSlHChhMnKtZ+Uf4f8L/oe1bEuOQiXIAg== 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:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sdKJaK9B7NU8D6lxvJU5PQUN2?= =?utf-8?q?UeBa+oKl1Q7D5FoDaaX8IRb5ClfMCCG14rxq6ID7lOsDh2AJyswTdiCh?= =?utf-8?q?wIASpgVsmU/0gdlxYNNp0RqoxU08Mn+h78Ip65XLeg5iYT4ztXn8MEKS?= =?utf-8?q?qyoMW1Dzyto0jBFnJsoCHnevtzoqbUYHQsCtrzgoxSCNkyVGsXJvnw1X?= =?utf-8?q?XV2lappfut9LCHIPIM1YC0xLoRQsScZH4chsft5ISqx+MjFNoAN2wBgJ?= =?utf-8?q?/hBJloZybBHzt3WSkBfdVwE8o7afgjseMjSghuaa7ddeqSppl3LyL1jr?= =?utf-8?q?rsGiqtqPYRD7ts8TPS0+byfrjvcnttMg5286Oa5HNvFLoVCMKlG1jfnj?= =?utf-8?q?saFwcQKx/xjH5kSRBeHGIqVqPvmD/Au1ILULak3ZOaRr7Fn6OG0AnqSM?= =?utf-8?q?w0aAFT1ZFq2Px52GvUfliC4uyCDHhOfyh3OvZN9AfkJfEWxYq+cj37a3?= =?utf-8?q?xsK2fSuYiHo+4gz3QHkO1r2g4CqHcgJyWuznJh+K8qnXf9NBmHhoHkYu?= =?utf-8?q?c30kDrwf7yRoQR8abNLC0sC1iTcnPUxg4RLEpFazF33ReIwOU8vzMR7/?= =?utf-8?q?Xq7xw4tPG6Zumj5Uwkdui6k66VTBlWhRGDxXuDAx0r1QKurGS+nahtYb?= =?utf-8?q?lB5EgfrDbqzMiCjkaEKvvz9K42wb9mfSDHVeFc+X0lIrKiDDNX7ENyOs?= =?utf-8?q?orLY7Sxr848uY+MedZgl3Q3qZKxgy+i6rhWilfeBR3tkxmM5mAS45kib?= =?utf-8?q?OGEj7Yp//4XjIh0yIX41lqJ2+Ibdx+e10A/ei63zIqWsGDVqF2Ar5ZOe?= =?utf-8?q?mTwlnrdaJrW0v8Z+rcK4Kfu+Of6vvNoV0vbOeR1MCKgoGvuJp6i1P2N+?= =?utf-8?q?Ilb6ylRzU7TVFDxHKMnyiQVrd13XAQosSQivCO8RF8DVc92e84yCNWD+?= =?utf-8?q?twPQftpVRn2LxEJJYYthG9OLfaHSk+peUciHYVWMeOleAl1oyBsLh32l?= =?utf-8?q?NxZYEzbBHbn2ff/9P51qO/jk1yqX/au1JbTE3iHooO10x4+TJXmpENFE?= =?utf-8?q?aLw1RJqqYMzU5WqJsaJZ9VBnorQyGpC+GSpMZdS+Qkvc0o3M2IebMRAb?= =?utf-8?q?InalN2qVw4glVSooOR00ho5d9iSb42GdbcRvvCDKRWnVO6kQW+MwQWtm?= =?utf-8?q?c+yBG5B9SxVL64gs54PQ4TonlqKN2Gn6lmkeXX6YtafgfqGSqu6rR+be?= =?utf-8?q?dlBvc/csKMXNSRFxduzNzJpxfTTd9aEOKidxPDVTHnXnMM65LV4uTCPw?= =?utf-8?q?53ciFs7C4Nn0uDfFqJyGaRDWgDMN3cKbbPlgYDvxdHiJjF8nrnutjCoS?= =?utf-8?q?nDu7vGJeX+p+FmQghy1FLyrBqhWO3RIQffWS9rfCva4FsBgS4Vd3R0e0?= =?utf-8?q?qeYa2L6nbsi7gYz20gI78ibfld1TzXcQsabpkeR?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50c2cdf2-b644-469b-4a16-08d97474e049 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:58.0302 (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: v6vN7u1VwW5z8iKgpYGBugIggVEyywR3oGLUQcHtd2y4md/+bGjggGYa8xBlOz5KXn9bPWGYUuBIFdeX85vwXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller 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 {