From patchwork Mon Apr 27 13:40:27 2020 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: 215809 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=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 81E3ACAB360 for ; Mon, 27 Apr 2020 13:42:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C060206BF for ; Mon, 27 Apr 2020 13:42:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="Ff/YWolO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728228AbgD0NmV (ORCPT ); Mon, 27 Apr 2020 09:42:21 -0400 Received: from mail-mw2nam12on2085.outbound.protection.outlook.com ([40.107.244.85]:27104 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728091AbgD0Nlg (ORCPT ); Mon, 27 Apr 2020 09:41:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SyYOQ7bAVzSSajIbQmParbHG4LolEZxkyKbYjNssleEX33vYXNHhuSgHTvcCrlU2jAymr2HV7MoUOhCCfZe6JYafPu7+S/r90okjoTIelFf/YtBRyQic7NsYoSvSjLh2LvLi09ZvxIIZrtiJ4qSP4hcG9h2kfRLwQRvoJcunqenn6CbENeyNvxMUb2po7N5jd0lgL+Tt7tTe1HMpWIQqFalmwNyxrDT7oOEKd/SpGaiAcDfFukbpI/TbCt5pmSXNGoFnKGr71BR5NC/lwiHKCkM9aGZTYz4XPf00WiC2V4SO+2HN7AP8ld1R/DafamlTZCrao2AQVnHjUJ6YJFwFLQ== 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-SenderADCheck; bh=SfI8C4D8XYBn/gT5TXywrCOmodway3QLz7Dgr0sbX2k=; b=U8guohqWx0M+oFeBsOfxR1zKJRWgM/0pWWYQsDHc4GQVGNR8OEWbpkWOEX9mn9V/SnlMOYZ0nCmQIbGsLNjxAwxElld6y0PVSXhxZyuREh53AOQGBY8QjE9UBlMoYfHkZidECGnxqzKPlbyiIzUZ06mCWOhlWCLCT7jmEMYGltA4Jc4j45LyJ4sEzdN3rE/mj1ua+ZbGaDLyYYrLU99F/XrjzboLkY8+FDvfeGFcvyVRN+ewweEGzA12SHGVLCmmlag1VmIFWOGvfqTysfw35TW6GkHUD0tOVSoTOM5YqVRP4ai8ntx6RBfV3Z69rggFBIqYLeDx8frRdX4CiFxfzg== 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=SfI8C4D8XYBn/gT5TXywrCOmodway3QLz7Dgr0sbX2k=; b=Ff/YWolOkqVBA9bZHrShvlIj8N4OIQMheysvqWUii/WAD2ugfYTdJkMW0dmJdYRR5iCRRNq/5+lvnyXBA1zBgM+bHjmqrGl779HalOiO0PTjoEjC1fOfjKmI2yEvjeHyJWWPHCkxvD69WAQuBVxJpJTpZEplbbo/IXkNMs6ZnvA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB1424.namprd11.prod.outlook.com (2603:10b6:300:26::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Mon, 27 Apr 2020 13:41:34 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe%10]) with mapi id 15.20.2937.023; Mon, 27 Apr 2020 13:41:34 +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/17] staging: wfx: also show unnamed counters fields Date: Mon, 27 Apr 2020 15:40:27 +0200 Message-Id: <20200427134031.323403-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> References: <20200427134031.323403-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.home (2a01:e35:2435:66a0:544b:f17b:7ae8:fb7) by PR0P264CA0232.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Mon, 27 Apr 2020 13:41:31 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2a01:e35:2435:66a0:544b:f17b:7ae8:fb7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a248b770-01dd-44ea-a825-08d7eab0b37e X-MS-TrafficTypeDiagnostic: MWHPR11MB1424: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(39850400004)(376002)(346002)(396003)(366004)(8886007)(66476007)(66556008)(4326008)(81156014)(86362001)(8936002)(6486002)(52116002)(6666004)(6506007)(5660300002)(16526019)(6512007)(1076003)(478600001)(8676002)(36756003)(186003)(2616005)(54906003)(107886003)(66574012)(2906002)(316002)(66946007); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R8kUwl0W/kr5VWMsES+E4RocR6Cf+I43flKzR2YP9XPLjB/RFwpOzOyH96lrk4B4r/k7is8DoMS8EEdBXAHU5JjSi5bAbahsS5UkpeyKS/bzDCoUTogd3HyDtzQ9JFFT7qB1lzdTsW1TSe7uBg+750tnr8AZyAX9cplBgwXVo6QTpKd9wO7N5hNxycn/ToDyxQcz5lgD/GSYsZ2sK7uJ6tdl4l4GabpCOXLqYX8aLp4FfvSIQcgVyCPoDdbj/n5m1H0EgDoOV3+tQO7JZcSogw2m5oXmVbeZocqG0wO+e130i57mHClLJ6nw8JHVrtFYX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b770-01dd-44ea-a825-08d7eab0b37e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2020 13:41:34.5409 (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: qrmbRQpZy9T25MSTA4Gr16aVwgIUBRLRBR4/xrJ0z3XgSjIsPxwdlfRNOggWcwSk95iWLJkUZcqxW+yt3y4bTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1424 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The struct hif_mib_extended_count_table contains some debug information accessible from the debugfs. The struct contains not yet used fields at the end. In order to support future firmware versions, this patch also show these not yet named fields. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index 4dc4f6a0b92b..2fae6c913b01 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c @@ -112,6 +112,12 @@ static int wfx_counters_show(struct seq_file *seq, void *v) #undef PUT_COUNTER + for (i = 0; i < ARRAY_SIZE(counters[0].reserved); i++) + seq_printf(seq, "reserved[%02d]%12s %12d %12d %12d\n", i, "", + le32_to_cpu(counters[2].reserved[i]), + le32_to_cpu(counters[0].reserved[i]), + le32_to_cpu(counters[1].reserved[i])); + return 0; } DEFINE_SHOW_ATTRIBUTE(wfx_counters);