Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp599494rdb; Mon, 15 Jan 2024 07:28:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYKD6dm+oAe40QUMe0HQPjxR2KpI2vMnr0P1hmXI+2kPlRRPxKer6iBrDVV5eQOmoqTQX6 X-Received: by 2002:a05:6a00:1252:b0:6d9:b896:5e9b with SMTP id u18-20020a056a00125200b006d9b8965e9bmr8282160pfi.60.1705332485465; Mon, 15 Jan 2024 07:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705332485; cv=none; d=google.com; s=arc-20160816; b=aB8E13vm+1bcnoM8+jHRwymM5b6lkDNRWZhZencRy7+5QhPMAZ4XHJz9RVJ2+f9I0u Y2nqQK2pvKfD9DkPNOyePbDJnEREYaUey3vIPzOwiZGRxq0jNED+m6UZ0EPrSTVCE5Nj DZvixWIU8aN9CAG8IMMKAwPX8wNpV3joaR5DQD5h+3XnY/AB9ejKHDAb7JZxcmzU+B4I uCJXozMX73g182Xqsoqc6I2t5fYFWnquIOK0kT4xBjLI+cKtK9CWv0JvUjjghxk6tqUu mfzAEb8phf7PrYmxPmLnFrIFwtWfVqkpjpn8zskdMzL7IJWm2gU8c+y8lCsNQsry3h6Y 4GpA== 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=hxQafBl803n17yDrkYXgu5LkUk16w8ZDPBQMGGRMGP8=; fh=gNywOoGH9FiEKkqPngRyqJ0mvecwQizKE+QEYR6/Bdw=; b=Y+dcPU3SfiyGMvLdAkXjSJ0qWfsQJgD8C4lP1N+aC1k8DnjMKj5qrAVoSe7mTLVYxf Nre/9O1mQ8+QRjMqZ5Bb+klDvyI3j7Ir+LLZMh3Dt6+6+XyzaA/ck32XkrrQnlFoBX/G gsJbaPstRqMp7sJF3luRMksTFrcfmlSNYW74I7xzoxYvLfvUZNHuQH0NISeRThE6nmhe rEOiJLfDDvIjUJGFBHGyFPphBY0ApokIGLKHpQztRjK8m5O+n3rCMmJe+ZabYRa4EI7/ xT7P3wcvDVh8jn9wo0TOl1Ds9in2GvnQjRJebzXiniU0+jv9oLxgCok6eb5llwT2ikzw zFgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnjFJtSU; spf=pass (google.com: domain of linux-wireless+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b6-20020a6567c6000000b005bda1051dacsi8744692pgs.471.2024.01.15.07.28.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnjFJtSU; spf=pass (google.com: domain of linux-wireless+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1935-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5364DB216B9 for ; Mon, 15 Jan 2024 15:28:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D93EB17983; Mon, 15 Jan 2024 15:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TnjFJtSU" 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 BD6C417981 for ; Mon, 15 Jan 2024 15:27:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D9D5C433C7; Mon, 15 Jan 2024 15:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705332478; bh=83Kwxp4mOs4b7IHvqtRZuMJdTUukpnkqxu557swleIs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TnjFJtSUyGh2PJLnoF+yvF/yRixUtkfXtalmww1XZOrq24RFQ0TKmrFVFtf+QmqKe AcMj1lm5+MYLEy79m60g0+0tMtYtYKR2d0wwapRR6Sqpsk1r3axcq1rC6b33/7OSzV uX9j5Q/7zghzDcG5Z4aH9qe5HGKnvB3FrnkpDO0HJckByTngm9mFXaPgPg71CfqDG8 Up/Y+zERPYlPOPUv1AJaJ0uWB25Sr6JS+L8Bt8sCnSEOqUwgGzCdyITXgSVRH7h1Ec CiwKoSI3i76TvX0qWl8sDNXQst+zEhwX69gRZL12/mLTatIAPeulImvYlxJXA1+Moh YLFPIaFUbrqEA== From: Kalle Valo To: Karthikeyan Periyasamy Cc: , Subject: Re: [PATCH 4/4] wifi: ath12k: Refactor MAC un/register helper function References: <20231206034920.1037449-1-quic_periyasa@quicinc.com> <20231206034920.1037449-5-quic_periyasa@quicinc.com> <87bk9uej0b.fsf@kernel.org> <269ea05b-d665-eceb-d7a1-d0ac20d341a7@quicinc.com> Date: Mon, 15 Jan 2024 17:27:55 +0200 In-Reply-To: <269ea05b-d665-eceb-d7a1-d0ac20d341a7@quicinc.com> (Karthikeyan Periyasamy's message of "Tue, 9 Jan 2024 19:11:38 +0530") Message-ID: <87v87u7h1g.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: >> Is there a reason why you moved these two functions from mac.c to >> core.c? This is mac level code anyway, right? > > This is not fully mac level code, some parts of SoC/chip level code > bindup in the mac level. So i segregated the SoC level code like ab > related param initialization handling from the mac level procedure. > > Now, mac/radio should take care only radio level handling procedure. > > In future for MLO, SoC level can be extend easily. But is there a concrete reason to have the functions in core.c? In your following patches I couldn't see why to move these functions to core.c, everything seems to be suitable for mac.c. I experimented this in the pending branch and moved the functions to mac.c (tag ath-pending-202401151424): https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=bee89ac2b5755754849deaf7054828e982cc6658 I also fixed your other patchsets to match that and to me it makes more sense to have everything in mac.c. I prefer to make core.c as simple as possible. As you can see I also made changes to the patch titles to make them more understandable: wifi: ath12k: refactor ath12k_mac_register() and ath12k_mac_unregister() Thoughts? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches