From nobody Thu Oct 23 23:37:15 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ct2WJ02XQz6DsHs; Thu, 23 Oct 2025 23:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ct2WH4d8hz3Rnx; Thu, 23 Oct 2025 23:37:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761262635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XA+3Su4IdUDeD1KAY+nMQDyVP5NpT3JT04voDzoxQ7o=; b=wuR7WAo/ge9I59tCaUs+xvwgKZ0djWnYuI1FG4cFU8IT/nu4J1m1UW1cw4I+GuEzXSPl3Z 1D7u4qD0jigCZA45wwUNiYcoU4L9/fSArbiJYeJBbYvI1GS3vmBr5zP4H1F19QCNRguneP 65wNKtrwExaw456nFm0PrPD2teLO8EzVp45uzNxOQx77aJ3VaXehXppg1hv0QP8cl36KIt xqRDE429L+nWwtZfO4ZM9VV2ZZ5xc9GGH2CQkLQ6wnllfuplQBS7WPpSGNYtwNfulcMKNp UJo+0aZcGxqZZ/dX2WdKQwWNy8/MxSw+tnp8ihWKosVyP9ch7RXkKNLLjOLABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761262635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XA+3Su4IdUDeD1KAY+nMQDyVP5NpT3JT04voDzoxQ7o=; b=g1p03qWJ4Eg9KUIWc9oas3qG3rsixfxtI3CdrdQ1s5hqmN40ZMn7vvm8tpSoHR9JQI2r/O j++UHceN4SKhSQFPTFt9A6gKJv4R1JbBg+1Leny/L6fxwMBpVeKWcqc+HP2PIeNPGUwHKA SHrvb7W+5DJFhiTFXDJUu/SS+JnjsrtjyeMy2loOHS1bjWL0THFWEZ3jeZdbfSFN5+BlC5 03ypF/ZIziZq/c+wctuFv8ZoTgn9zj8WKWNFfa5R0GwCTpn3uK6+ysaonpt9h51Xay6BPv cgOqTfLN+oE6wxgCtw6f6XgA8/iXugnVHY665e0xjagTzPGFMtRC9FWSD+iOiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761262635; a=rsa-sha256; cv=none; b=I4nMonyR2fiTELhNU8Acwu5b76y+hK8W9yEAsZbfdgc1+HMhI/k/dk+EyI096YDIyh9xXl yIxMCpWcqCfufPTxS4CXbXKHVTZLsyhWqotWne3JXzXTGL2R4MMkcnqofRySP8BJkuQwJP e2Bu3vHmkkyyFnR/0RCO0Uz1v5rZ0i5eQOJ0vzvMVmC0UsoVflSS6D7yKfL5Nw9KAhSFYD 1AK8LelhWoybOAPOeXnozQVmaB/GHj3qhdY/248DcckoEF9q4R4yD249/PuZmFbrp7opp6 2mdrU2UlW4nx10gXf+ZnqgiW0MqBW4UHz+sNr2le2Dcw2KATRpmd7ACg+s6ooQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ct2WH49ZzzcJB; Thu, 23 Oct 2025 23:37:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59NNbFmP026443; Thu, 23 Oct 2025 23:37:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59NNbF84026440; Thu, 23 Oct 2025 23:37:15 GMT (envelope-from git) Date: Thu, 23 Oct 2025 23:37:15 GMT Message-Id: <202510232337.59NNbF84026440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 645785359bd5 - releng/15.0 - LinuxKPI: soc/mediatek add pr_debug calls List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.0 X-Git-Reftype: branch X-Git-Commit: 645785359bd59ba815613ed6a99739c7a2958a00 Auto-Submitted: auto-generated The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=645785359bd59ba815613ed6a99739c7a2958a00 commit 645785359bd59ba815613ed6a99739c7a2958a00 Author: Bjoern A. Zeeb AuthorDate: 2025-10-19 15:28:30 +0000 Commit: Colin Percival CommitDate: 2025-10-23 23:32:19 +0000 LinuxKPI: soc/mediatek add pr_debug calls We do not support Wireless Ethernet Dispatch (wed) on the mt76 (yet). Add pr_debug calls with TODO in case we run into the calls anyway so we could deal with them. Approved by: re (cperciva) (cherry picked from commit 224ac9d2a030f85924e44a507ddc412797c3fe87) (cherry picked from commit b9b571e6146a1b95ba18de065166a1a50eb88dfc) --- .../common/include/linux/soc/mediatek/mtk_wed.h | 47 +++++++--------------- 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/soc/mediatek/mtk_wed.h b/sys/compat/linuxkpi/common/include/linux/soc/mediatek/mtk_wed.h index 903053e7f6e8..9f3a1ee4c139 100644 --- a/sys/compat/linuxkpi/common/include/linux/soc/mediatek/mtk_wed.h +++ b/sys/compat/linuxkpi/common/include/linux/soc/mediatek/mtk_wed.h @@ -1,54 +1,36 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2022-2023 Bjoern A. Zeeb - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. + * Copyright (c) 2022-2025 Bjoern A. Zeeb * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * SPDX-License-Identifier: BSD-2-Clause */ #ifndef _LINUXKPI_LINUX_SOC_MEDIATEK_MTK_WED_H #define _LINUXKPI_LINUX_SOC_MEDIATEK_MTK_WED_H +#include /* pr_debug */ + struct mtk_wed_device { }; #define WED_WO_STA_REC 0x6 -#define mtk_wed_device_start(_dev, _mask) do { } while(0) -#define mtk_wed_device_detach(_dev) do { } while(0) +#define mtk_wed_device_start(_dev, _mask) do { pr_debug("%s: TODO\n", __func__); } while(0) +#define mtk_wed_device_detach(_dev) do { pr_debug("%s: TODO\n", __func__); } while(0) #define mtk_wed_device_irq_get(_dev, _mask) 0 -#define mtk_wed_device_irq_set_mask(_dev, _mask) do { } while(0) -#define mtk_wed_device_update_msg(_dev, _id, _msg, _len) (-ENODEV) -#define mtk_wed_device_dma_reset(_dev) do {} while (0) +#define mtk_wed_device_irq_set_mask(_dev, _mask) do { pr_debug("%s: TODO\n", __func__); } while(0) +#define mtk_wed_device_update_msg(_dev, _id, _msg, _len) ({ pr_debug("%s: TODO\n", __func__); -ENODEV; }) +#define mtk_wed_device_dma_reset(_dev) do { pr_debug("%s: TODO\n", __func__); } while (0) #define mtk_wed_device_ppe_check(_dev, _skb, _reason, _entry) \ - do {} while (0) -#define mtk_wed_device_stop(_dev) do { } while(0) -#define mtk_wed_device_start_hw_rro(_dev, _mask, _b) do { } while(0) -#define mtk_wed_device_setup_tc(_dev, _ndev, _type, _tdata) (-EOPNOTSUPP) + do { pr_debug("%s: TODO\n", __func__); } while (0) +#define mtk_wed_device_stop(_dev) do { pr_debug("%s: TODO\n", __func__); } while(0) +#define mtk_wed_device_start_hw_rro(_dev, _mask, _b) do { pr_debug("%s: TODO\n", __func__); } while(0) +#define mtk_wed_device_setup_tc(_dev, _ndev, _type, _tdata) ({ pr_debug("%s: TODO\n", __func__); -EOPNOTSUPP; }) static inline bool mtk_wed_device_active(struct mtk_wed_device *dev __unused) { + pr_debug("%s: TODO\n", __func__); return (false); } @@ -56,6 +38,7 @@ static inline bool mtk_wed_get_rx_capa(struct mtk_wed_device *dev __unused) { + pr_debug("%s: TODO\n", __func__); return (false); }