Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp270589rdb; Thu, 18 Jan 2024 03:08:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpP9OgZ/yBMBHXOLbNS12xy9tnieN/mhAcWd1EEk2YcVmWMXZiK3OVUUppDEFP0uO7fnTH X-Received: by 2002:a17:906:d787:b0:a2f:1bea:dcfa with SMTP id pj7-20020a170906d78700b00a2f1beadcfamr441505ejb.42.1705576134478; Thu, 18 Jan 2024 03:08:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705576134; cv=pass; d=google.com; s=arc-20160816; b=R1xHjcONGrsIOOll02Ux/6gtlII4+Aeob/OZgLhq4TOoFukHi4+aGDLFfLgGn79k1T qNo4/qYpigPlUFZ33+5sxDO0qBX53dlwxlyKF+WLwl9SZRQWGIjLMthib1TPgYZ84VV3 BKikEh9JM2+6U+CjhYb4iFTP2YAWWbQlzTq3I+8//0+p9yS8CXiJupQJjUvJwUtg7HXd IPnwKFKQlC0KoS7jBY/3IUlwW9wb4yxIL+1erUFbAA4ofsv/0hswy7Iv2FLeQoekxx48 LQTXDco1gRRdxmiC3fQ3HSCEm99H2K9rHHsmSG1k959UCzzTKED2GA/oBqaTMFloP+p/ Zlqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=9DwlIkgr+mMtYRYcKpMYDmP4lRRqe0Ko7EaCuNkzo4Q=; fh=XCkkmjWGGB7zflcV0Gvz+husypqgD8nHKgDHZdFwWko=; b=aW8i9HqXZMdmAQeykH+bHY9UJZUOlFTosbfUm60f0GbErVDK8sIDJy7P21+HRU7Ckz 0omeoERxjAXTzP233VaKgwzBun1sQo+k5bnVjajVjXCJoJz0oL6ml/mE1ipmzIP35S20 DWxNbtJ9omJ31ACl4SNGrZesFnUkk1I9Js6mb12QMmq38MjVP+IwoD5dZsJtcIKI1Qw7 dKl4JpHYfRpkAP4pjW04FO5ZZt7qEPMirELbyuVVIf/CkcAm0YL6gNU2bIJwoBF9C980 hdYjV7DgNAUSoURbB4issfFawtxlrNPvb4654PxXrV68jnRakxcJvnpydncUMcnEpeR0 aYmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVq4UqzR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l11-20020a17090615cb00b00a2d5ec4ba96si4277570ejd.97.2024.01.18.03.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 03:08:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVq4UqzR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 32A961F25CD0 for ; Thu, 18 Jan 2024 11:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89C65241EC; Thu, 18 Jan 2024 11:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FVq4UqzR" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6138E241E6; Thu, 18 Jan 2024 11:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705576114; cv=none; b=AwauZsuVmTPBI50YLe9DM2TAOp3HgHqS5za15MVUlmC/0Ql2eKI5YXuSjjRo0MV9m1fnR9URZJlKg2mquhhRob/KTJLUnRS2wk+YH/6BGXFX5BHkMZJJxIjU9I4ZkPIPdruh3/gVZCt+zhhOQ/mBl/CEVhFS+F9NxfJkqPhqcqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705576114; c=relaxed/simple; bh=rGbrI8sNR96Acbsy9tBWyCiVY3Sa9RJ0zm5JcTqANrE=; h=Received:DKIM-Signature:From:To:Cc:Subject:References:Date: In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type; b=f0sM4y12FbhGMXxDBK86B0T7u33mXLtaWeBxxxTYuygZcovAKc+frOpkqOrk+Ozwk+76ZINDgmq0gyVjk/tTr6hBjrcnU9GtKecJZ2mgPn77gsg/2JaaygWHlYhKCXgOXqn+WweT6bQ71BqWZqBIKKe/FJTlyny4Dw7M2nVe8pQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FVq4UqzR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30C51C433F1; Thu, 18 Jan 2024 11:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705576114; bh=rGbrI8sNR96Acbsy9tBWyCiVY3Sa9RJ0zm5JcTqANrE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FVq4UqzRz3KJliesJ/BdCC3eGm/OBDDeBB3uv+HhnSIqLhnBr7/eQvQ0jBozxLtpu U6536KA0mxD/9x66U7v43Rn0CaLV6f5R87dQgciFJs4y6heCyH0s8Me4aE6n3s1PFL 4n9W6HFv0YjbE/nwWIcr9C7MPKK4tAcOJ+2St+hWdnJccAtPdlTiGtEuSClpbDHMaj z4TepxfgrrXmvknY5qXn0p9puoJvxxKrU3qgL46W9s39AjDNvsiNCasO2vIwboI8q2 Guvaj5GWfNTh6QL/QV6pblEpBRY+nOR7D9MbJDo/mebTWcJYSqZcHgczeKMUoOwE6F Etuudmr27d+ow== From: Kalle Valo To: Jeff Johnson Cc: , , Subject: Re: [PATCH] wifi: ath11k: document HAL_RX_BUF_RBM_SW4_BM References: <20240111-document-hal_rx_buf_rbm_sw4_bm-v1-1-ad277e8ab3cc@quicinc.com> <874jfg7xm4.fsf@kernel.org> Date: Thu, 18 Jan 2024 13:08:31 +0200 In-Reply-To: (Jeff Johnson's message of "Tue, 16 Jan 2024 08:58:04 -0800") Message-ID: <875xzq526o.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff Johnson writes: > On 1/14/2024 7:17 AM, Kalle Valo wrote: >> Jeff Johnson writes: >> >>> Commit 7636c9a6e7d7 ("wifi: ath11k: Add multi TX ring support for WCN6750") >>> added HAL_RX_BUF_RBM_SW4_BM to enum hal_rx_buf_return_buf_manager. However, >>> as flagged by the kernel-doc script, the documentation was not updated: >>> >>> drivers/net/wireless/ath/ath11k/hal.h:689: warning: Enum value >>> 'HAL_RX_BUF_RBM_SW4_BM' not described in enum >>> 'hal_rx_buf_return_buf_manager' >>> >>> So update the documentation. No functional changes, compile tested only. >>> >>> Signed-off-by: Jeff Johnson >> >> I'm not really a fan of kernel-doc in wireless drivers, it feels more >> unnecessary work. Should we remove the kernel-doc markings from ath11k >> altogether? > > Are you not a fan of kernel-doc format specifically, or not a fan of > documentation at all? I'm definitely a fan of documentation where it makes sense, but I'm not fan of kernel-doc if there are no users or readers. For example, using kernel-doc in cfg80211 or mac80211 makes a lot of sense, and is important, but I'm not convinced about using kernel-doc in wireless drivers. > I'm personally a fan of documentation since good documentation makes the > code more maintainable. Yes, there is a cost in creating and maintaining > the documentation, but this is hopefully offset by cost saving when new > developers are trying to understand and modify the code. > > I'm also a fan of consistency. And since kernel-doc is the standard > format defined for the kernel, it is my personal preference to use that > format. I understand your points and if we had plenty of free time I would be onboard with this. To keep my mail short few quick points: * To make sure there are no kernel-doc warnings we would have to add checks to ath11k-check, which would slow down it considerably and it would again slow down our workflow (I run it several times a day). * To use kernel-doc formatting alone doesn't really make sense so we would have to start creating a kernel-doc book or something. But who would read it? * kernel-doc moves field documentation in structures away from the actual fields which I find confusing. * The risk of having outdated kernel-doc documentation is high, it would need active maintenance etc. * I'm worried about creating useless documentation, like "Count number foo" for foo_count() just because of kernel-doc. This is why I consider return on investment is low here :) My preference is to make the code understandable (good symbol names etc) and document the special cases, which are not obvious from the code, with a normal code comment. > I'm curious what others think of the ath10/11/12k level and style of > documentation. IIRC iwlwifi uses kernel-doc to document the firmware interface, not sure how much it's used elsewhere in the driver. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches