From nobody Sat Jan 04 14:01:22 2025 X-Original-To: dev-commits-src-all@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 4YQMYZ3dvZz5kJNK; Sat, 04 Jan 2025 14:01:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YQMYZ36czz4THr; Sat, 4 Jan 2025 14:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735999282; 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=0CyUx5HxzJ1hRqeNUih2RcsqIsPbR8W/diCuVX0TpkE=; b=iZT/Z/UXX+/Q6EaLFt3QX0rhvLYdgEWYYEpgRbgMO5s0cIEArEX5gYvdrCPI9I3NUXmbaQ 9ix73A0JVXBl+FRkGv8VoOmYne5G6zh/uGulzZxc/f+CH/lGnvkHaKxVuxduh8g3OcyuO5 kjr02poVq6g1g7hfGBoyl0l2nXty+gWf2kkMpnLKxr1yG9Reo1e+Niyp/I/quYst2Pidgb /x3a+bnC6of0OZthNvbJ2Iph0YaF/2r09ntL3SuzocPvZfAfvooFEcJiHnRM/EAhhJow+T HYez/LcnMxT+1dMaPVJITJytIiDnutIFXPHtVqoC2LALhJuCvqbPzcq9hA6pZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735999282; 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=0CyUx5HxzJ1hRqeNUih2RcsqIsPbR8W/diCuVX0TpkE=; b=h9K759eSqr9joYewYn+fg6kaRrN39a+iPQxW9TByJ84zZ1Ayp00toCumSwJo80Xnw9hJF+ moDIGJJXsVsHyCE9YIAIitkv1pwhcEcwxaC4LXgOtK6OceFWQkaryVQZz+SUkjkqblzpoR 3ZV2cqJRceUgVRHzkfNc99zTaoHOGB4VFwuIFpt6tvwYcraCIhobOZhrceSD5CW6jY4+YV j3V4iQb7LAwYbXs/oe+Z76eSaqHJT/kf/+yUR3z4asBR0G18TLVDkckgb+s+oTbHofebKf T5sRfeFuyMKZIfutyo4iue90h9x0w+tf7Q/70jCbrZsj5x3Fd/FsQFLw4hW4uQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735999282; a=rsa-sha256; cv=none; b=XiAoa3KRzRX/Olc7pw5kkzNU5EipJJBhuUauz136RVEUfOb/icEM8hrBX36YftcN3II6nW h+0H+x8koMfr+g41FRSOwm3LPtPOscrbdTdOAtBCNV3s3qE4VuIZP4wN0ksOrxJvAQutZb 2VJNTFL3IngfqHl4dwkPalaTQ2bLeiuDzSBHZd6vNpV2ktKcmdIZxRC3f3Ose+ctdeiXWI z7lP4rDnAAEwlsD1I4hwnhPPjjZzFL6KXxGhxJGyXZMrKaFCOilAy7XXSqDBWInJGNzz2/ IPBm1vwXO8fOOEWFDJwke0DTJOMvXLzdXrK7xn8SW6nbPvQ3UQpTwBfjeOV9EA== 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 4YQMYZ2jmtzw2L; Sat, 04 Jan 2025 14:01:22 +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 504E1MWX063774; Sat, 4 Jan 2025 14:01:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 504E1MYo063771; Sat, 4 Jan 2025 14:01:22 GMT (envelope-from git) Date: Sat, 4 Jan 2025 14:01:22 GMT Message-Id: <202501041401.504E1MYo063771@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 95a7aa800987 - main - LinuxKPI: 802.11: implement wiphy_{,un}lock() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95a7aa8009877ca95d81967f9af568ef832bb565 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=95a7aa8009877ca95d81967f9af568ef832bb565 commit 95a7aa8009877ca95d81967f9af568ef832bb565 Author: Bjoern A. Zeeb AuthorDate: 2024-12-28 09:43:33 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-01-04 14:00:13 +0000 LinuxKPI: 802.11: implement wiphy_{,un}lock() This will help us to get minimally better lock coverage in iwlwifi though not yet against the LinuxKPI implementation which will likely switch to this in the future. At least the TODO() logging noise is out of the way. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/cfg80211.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h index f489e7a7da11..7780b265cf6b 100644 --- a/sys/compat/linuxkpi/common/include/net/cfg80211.h +++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1358,13 +1359,13 @@ wiphy_dev(struct wiphy *wiphy) static __inline void wiphy_lock(struct wiphy *wiphy) { - TODO(); + mutex_lock(&wiphy->mtx); } static __inline void wiphy_unlock(struct wiphy *wiphy) { - TODO(); + mutex_unlock(&wiphy->mtx); } static __inline void