Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1164094pxb; Fri, 1 Oct 2021 05:04:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx37FraC61kl41/K5aljHA8heCYozl49I6Cya4CF+74xjhLKU/8TrEDzSDS2cyt4jv/5VMM X-Received: by 2002:a17:90a:29a4:: with SMTP id h33mr12877420pjd.88.1633089897497; Fri, 01 Oct 2021 05:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633089897; cv=none; d=google.com; s=arc-20160816; b=KcUuzZ7qpcwn1yGs9SFxxuNR8CoQER7fqy1xujM7rbtHSekVLzabiarhdShQ53hM64 8SrboXq+oSTFuqqxjouC4CpaYcXXVRE/XI8uoIhCIrN1/PKPSbZVaZJZDM47JA7wxAbj GlTfxG4YEXku04+rQRPSBlPx1z86RGYOSSaeSCoTHHp0Z5cMA7czhlTsGcmIGd6ntp9L cG6YFMM5IUE48eM0Zaf9IsjlsuaLIt3X9zlMiW5/3ztJkHw+s/VmIcRlehM/ubVOjx4o K4alKT5UV34lw9D3V7QfZSTPxGn4VDz0u48VKTeDj8Q7lho8bJBImCDBOZ8l1yrVaunM hVyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dmarc-filter:sender:dkim-signature; bh=p2Ore5ulMIaePgcqUBJyw2WiETcga1BN2OxeVaOjVH4=; b=JesWPMtjoQTqDcR3kKHe1//+wY8SlQ9vIfjyavCqsnWEsgPSu/hwqtsrZIw24NfBCI NKh8QcFGYpLI4w4z4HKMzlUjVokyAH+zR3wxylfI/o3ic6PEg2Nho9TaTnwyvLfwn4it cN9RiZoxuTkNhc1e6v6fKIVNlxu85sKOie2uFdX9aa3WkMHrnJS73kZ9UY+uUcLHQ5Im N0qP2/0WiIveRWduxD9YWWJlLaSo/u9LQg6lSuaNm99iY/dwUZTAUWYdf2z3/jEbUfyw HE6umDHFtJjPqTOAPaAGeJ3XSBgBZw4fV9Vn4eTgSJL4sRNvdx5zY2S5WENySn7J9m1A HUQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sYMHk6gI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si6816131pgs.395.2021.10.01.05.04.45; Fri, 01 Oct 2021 05:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sYMHk6gI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354246AbhJAMDX (ORCPT + 77 others); Fri, 1 Oct 2021 08:03:23 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:49270 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354251AbhJAMDN (ORCPT ); Fri, 1 Oct 2021 08:03:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633089689; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=p2Ore5ulMIaePgcqUBJyw2WiETcga1BN2OxeVaOjVH4=; b=sYMHk6gIB5MYQtBkF9wHXdTql6Q26smcCXbcBajvctRLhoAu+RXa/CfO1rmpZS+boqgwXZDw NmolIXtP4TlF8LrE6SCq4eILpNBwrm2KQeLuOHkyam/BcKTfPXrtYMcD22EKVTki1aO/fnvb EwwbPpZe5AuPH93wkvJC1mwnO3I= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 6156f897605ecf100bc57fd1 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 01 Oct 2021 12:01:26 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 84B00C43619; Fri, 1 Oct 2021 12:01:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 08EC7C4338F; Fri, 1 Oct 2021 12:01:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 08EC7C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Jerome Pouiller Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "David S . Miller" , devicetree@vger.kernel.org, Rob Herring , linux-mmc@vger.kernel.org, Pali =?utf-8?Q?Roh?= =?utf-8?Q?=C3=A1r?= , Ulf Hansson Subject: Re: [PATCH v7 21/24] wfx: add debug.c/debug.h References: <20210920161136.2398632-1-Jerome.Pouiller@silabs.com> <20210920161136.2398632-22-Jerome.Pouiller@silabs.com> Date: Fri, 01 Oct 2021 15:01:20 +0300 In-Reply-To: <20210920161136.2398632-22-Jerome.Pouiller@silabs.com> (Jerome Pouiller's message of "Mon, 20 Sep 2021 18:11:33 +0200") Message-ID: <87o889j6nj.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Jerome Pouiller writes: > From: J=C3=A9r=C3=B4me Pouiller > > Signed-off-by: J=C3=A9r=C3=B4me Pouiller [...] > +static int wfx_ps_timeout_set(void *data, u64 val) > +{ > + struct wfx_dev *wdev =3D (struct wfx_dev *)data; > + struct wfx_vif *wvif; > + > + wdev->force_ps_timeout =3D val; > + wvif =3D NULL; > + while ((wvif =3D wvif_iterate(wdev, wvif)) !=3D NULL) > + wfx_update_pm(wvif); > + return 0; > +} > + > +static int wfx_ps_timeout_get(void *data, u64 *val) > +{ > + struct wfx_dev *wdev =3D (struct wfx_dev *)data; > + > + *val =3D wdev->force_ps_timeout; > + return 0; > +} > + > +DEFINE_DEBUGFS_ATTRIBUTE(wfx_ps_timeout_fops, wfx_ps_timeout_get, > wfx_ps_timeout_set, "%lld\n"); > + > +int wfx_debug_init(struct wfx_dev *wdev) > +{ > + struct dentry *d; > + > + d =3D debugfs_create_dir("wfx", wdev->hw->wiphy->debugfsdir); > + debugfs_create_file("counters", 0444, d, wdev, &wfx_counters_fops); > + debugfs_create_file("rx_stats", 0444, d, wdev, &wfx_rx_stats_fops); > + debugfs_create_file("tx_power_loop", 0444, d, wdev, > + &wfx_tx_power_loop_fops); > + debugfs_create_file("send_pds", 0200, d, wdev, &wfx_send_pds_fops); > + debugfs_create_file("send_hif_msg", 0600, d, wdev, > + &wfx_send_hif_msg_fops); > + debugfs_create_file("ps_timeout", 0600, d, wdev, &wfx_ps_timeout_fops); ps_timeout sounds like something which should be in nl80211, not in debugfs. Please remove it until the driver is accepted. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes