Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp627537rdb; Mon, 15 Jan 2024 08:17:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMA3T3MpK9UusmmnWb5MrZEKFtYfwFcSVNIDTtxP59oTMQqR99T0tFs1p/NI1JaPi0MXt+ X-Received: by 2002:a17:907:368d:b0:a28:e0aa:48d0 with SMTP id bi13-20020a170907368d00b00a28e0aa48d0mr6931724ejc.3.1705335432037; Mon, 15 Jan 2024 08:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705335432; cv=none; d=google.com; s=arc-20160816; b=UOZYKdaJP2AdTT9BZyxYs+qwq3qWMBlW2Psx8bmfOgnfA64QP5xwahqQ6tIQnNDxy9 3KdNJurpVZyIL24C+pN+Zfug5whwRtDbwCaGdBVCx8mAonkdw4+jTcnsUFSTqrtPnYzR SHkPuYVr4SbPS2UHap0naqOmRO2MWyJBNU6gMIiJnVL1v+/bWjZ6Zz+4ixUz8mfOW69M DeGOyUMAkGdAwnZDLRpEUKsBSarrPHul2zKITupF5KXQU9Dh/cCjQYS/IOBHV1TI6/Io IfO+xwVFjgE7ImPguRg+MlcPESy21zuxQ/zQylNPDUGIp6p6fztRXWiFzuPKX4GvcbIt rSKg== ARC-Message-Signature: i=1; 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=f/k9fW24pjv7xkHzPBCsLzrUti5nNbkSUEqW1STpC0Y=; fh=gNywOoGH9FiEKkqPngRyqJ0mvecwQizKE+QEYR6/Bdw=; b=r45aGNfTGSE7S8/oGUH21ItrLGgmEQgLfnA/gxu4U8S8ebb2kc95O6n730+VhuQzMr m99RUIUWzwxcZuePG9O+Ot/BcoMhWRCUiSgmDYM7zzD+GTLn17dh7FyZE96oh6/ZPpPw XCLWnLladoVgblKOK8JM8sRUkRS1ZaXPk768OK2SS68k/SMyjtZCS+FeiG600Iqh5tkT D9qMeb36/YLiWNe2fr5sqHTICaN6MXTNH1rvTQLI3H6M/LXiKs2XASz4IkgoT8bQgN4d tY/oos1g2n9GylXtestqqmpK+rbkDkr+zZvc8x7GIfh1+f5caLMYczn9IVTVv371i8C8 pqmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WKWrPwW8; spf=pass (google.com: domain of linux-wireless+bounces-1940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1940-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 g10-20020a170906348a00b00a28b7fc45casi3815866ejb.897.2024.01.15.08.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 08:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1940-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=WKWrPwW8; spf=pass (google.com: domain of linux-wireless+bounces-1940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1940-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 3101B1F239B4 for ; Mon, 15 Jan 2024 16:09:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C7E118048; Mon, 15 Jan 2024 16:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WKWrPwW8" 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 5265D18044 for ; Mon, 15 Jan 2024 16:08:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CE97C433F1; Mon, 15 Jan 2024 16:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705334926; bh=7JwWw9vE0E8HLaR/TPGGpX/7XTNaoCGleSmriAkMXs4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WKWrPwW85JftTLzf4E6iOSz8VdUPsbXPTClItYFAq1JOhvDUgCkLvIYuXBW67f/gD 75KkoSOMGQVKxRAaKwqIuvcqXtoBzKtzUuZaKvH1ChodBj8i91rXZF75CXtvVsi/Ae NM4mf0w2nkmv/F3kAEa4G1dQWPekkDkr1WHo7MyyeOYmGLFYN4a9bzAerYwUoHRRO/ aYS9cvDZ2tPeP2NYL/BT0WkJgQ8w+YLOC0o88N6jCuh1hVJZh8DA7xGusxCm8YYg9E nQEVcJZ/xf1eJvwWfDvMft9mBwylUwHfArbA6WR9okToCB8LPUVUZ9yv8ZnO/172Ve IVjT0fr1zV7/w== From: Kalle Valo To: Karthikeyan Periyasamy Cc: , Subject: Re: [PATCH v2 2/2] wifi: ath12k: Introduce the container for mac80211 hw References: <20240112024214.3481840-1-quic_periyasa@quicinc.com> <20240112024214.3481840-3-quic_periyasa@quicinc.com> Date: Mon, 15 Jan 2024 18:08:43 +0200 In-Reply-To: <20240112024214.3481840-3-quic_periyasa@quicinc.com> (Karthikeyan Periyasamy's message of "Fri, 12 Jan 2024 08:12:14 +0530") Message-ID: <87bk9m7f5g.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 Karthikeyan Periyasamy writes: > To support multi link operation, we need to combine all the link/pdev > under a single wiphy. This avoids the overhead of synchronization > across multiple hardware instances in both the cfg80211 and mac80211 > layers. Currently, each link/pdev is registered as separate wiphy, > tightly coupled with link/pdev/radio (ar) structure. To enable single > wiphy registration within the chip, we decouple the wiphy data entity from > the link/pdev/radio (ar) structure and move it under the chip (ab) > structure with a new data container (ath12k_hw) structure. This approach > improves scalability for future multi link operation support. What about struct ath12k_pdev? Do we need it still or should it be removed? > static void ath12k_mac_op_cancel_hw_scan(struct ieee80211_hw *hw, > struct ieee80211_vif *vif) > { > - struct ath12k *ar = hw->priv; > + struct ath12k_hw *ah = ath12k_hw_to_ah(hw); > + struct ath12k *ar; > + > + mutex_lock(&ah->conf_mutex); > + > + ar = ath12k_ah_to_ar(ah); > > mutex_lock(&ar->conf_mutex); > ath12k_scan_abort(ar); > mutex_unlock(&ar->conf_mutex); > > + mutex_unlock(&ah->conf_mutex); > + > cancel_delayed_work_sync(&ar->scan.timeout); > } Do we really need two mutexes? I don't see any analysis about that. And even if we do, I feel that it should be added in a separate patch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches