Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2356549pxb; Sun, 30 Jan 2022 13:26:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKFR6M+TMigTLQ5WCTYeYGHq1CgB9hlyUGYYZBZLpx7f2c8Jke80ZRbqZwkwTWMY9HiH4n X-Received: by 2002:a17:90b:390e:: with SMTP id ob14mr21769512pjb.42.1643577986686; Sun, 30 Jan 2022 13:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643577986; cv=none; d=google.com; s=arc-20160816; b=qszkj2Fqhr1I6yxw7gKF5nY2BwrQjcJLxRyRyiIGy3vERPVG8wIYC1FLpQFIKDDMD8 ZHkyiwAq5HW3yPjHztRkeJu/J6j3Rtm/yYfH6JOP7ME55CBizXMEaSyJQipSWUxTfV5h sCDlwEd6V2w6IveCyK2Dt+o3PLd0x5CdrfI7vmlZEE4oMS7a3vzgdDolEuW5Bhr6HOk9 CMmoMJ+RKz6TXZ7bUzcZ29Iie5M26V1ChyJk+Jvpy+RFkHYY7uy+Dnuv50VxMxDyntD+ qpH5GfjIYxGfT7ECbdkn5daTffZPX397qvlEcV8Z532AQ/ctEhkEFOrdt50aY0N5snDq gK5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=A2iuWEByBEWC78iZsO9VAqpuN468jr0dVP94igjyK4E=; b=Oq+YPbuqoOFCJWSFE7ofuVgavU9W9YlSALDR2XOBX91Zj7HXIwQNZi9IjxvDGheE1l oLPLfpWCXm7uHA+2er8yi0mzfzQ/S4gpv+x8FH35L/2jYnV6y3N6ORpm9pgiypJn78Se Vm0AcUOlt33fvSdW/RwmOpoBXvxYAnr3IIybYAtUxSX/VlCuYCSoeTWrkQjEY3jhVObt 9mLgVP4NdNayPpxxBjQ4iaciyK3RBL+kF6JaCf3R3VTEN+PSPn7SwVmsI8x97NTi+cLY IvVM9BfpU73M9lTsxFgRBn4HnVypBsNuYTR77Kp7k3SypA/cc8LwRBmdFxhLKIkdFASL tUKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VKPa2eGq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n63si11961990pga.214.2022.01.30.13.26.18; Sun, 30 Jan 2022 13:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VKPa2eGq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343883AbiA1KQX (ORCPT + 72 others); Fri, 28 Jan 2022 05:16:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245062AbiA1KQS (ORCPT ); Fri, 28 Jan 2022 05:16:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58B6CC061714; Fri, 28 Jan 2022 02:16:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9D7761E47; Fri, 28 Jan 2022 10:16:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E016C340E0; Fri, 28 Jan 2022 10:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643364977; bh=wBS1aRv8RBZk+XEloyXKx+zfsuc5T0JiJLuJbWY0NBI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VKPa2eGqVcj0n4uwza6XCCOBMGt5Q1W8el5/LCN9rQtlYFZUyH6LXG+xHpTXDYFtK ldt3UO2F9cYCA4jscnRad9etBQbOO7kvTQdgUdhjPmqmeHMar2KgpJalgBVEjfW7Q/ FD9tNfWjOCVWaLzaujLCMuC2sx4DG0ZpU4SnGhfhzw6EKJBKrXuX4IfikAHewPWirL wroPufVF4rrQSVXBTXdxlsVenfPF2CbUPOgdvL/ONQSv9M6vW4v5wUeTRxgD87B4DH jgjhE5Aki/4ZmE1iZ3qu2FzCEGVj1miJQMwwBSczJZRhwnDCH9GjHRwBIn7gFv+rhR GcneXS/1fPn7w== From: Kalle Valo To: Manikanta Pubbisetty Cc: , , , Subject: Re: [PATCH v2 02/19] ath11k: Refactor PCI code to support hybrid bus devices References: <1642337235-8618-1-git-send-email-quic_mpubbise@quicinc.com> <1642337235-8618-3-git-send-email-quic_mpubbise@quicinc.com> Date: Fri, 28 Jan 2022 12:16:14 +0200 In-Reply-To: <1642337235-8618-3-git-send-email-quic_mpubbise@quicinc.com> (Manikanta Pubbisetty's message of "Sun, 16 Jan 2022 18:16:58 +0530") Message-ID: <87ee4sgo7l.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Manikanta Pubbisetty writes: > Unlike other ATH11K PCIe devices which are enumerated by APSS > processor (Application Processor SubSystem), WCN6750 gets > enumerated by the WPSS Q6 processor (Wireless Processor SubSystem); > In simple terms, though WCN6750 is PCIe device, it is not attached > to the APSS processor, APSS will not know of such a device being > present in the system and therefore WCN6750 will be registered as > a platform device to the kernel core like other supported AHB > devices. > > WCN6750 uses both AHB and PCI APIs for it's operation, it uses > AHB APIs for device probe/boot and PCI APIs for device setup > and register accesses; Because of this nature, it is referred > as a hybrid bus device. > > Refactor PCI code to support hybrid bus devices like WCN6750. > > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 > Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 > Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Manikanta Pubbisetty [...] > --- a/drivers/net/wireless/ath/ath11k/Makefile > +++ b/drivers/net/wireless/ath/ath11k/Makefile > @@ -29,7 +29,7 @@ obj-$(CONFIG_ATH11K_AHB) += ath11k_ahb.o > ath11k_ahb-y += ahb.o > > obj-$(CONFIG_ATH11K_PCI) += ath11k_pci.o > -ath11k_pci-y += mhi.o pci.o > +ath11k_pci-y += mhi.o pci.o pci_cmn.o So the end result looks like this: obj-$(CONFIG_ATH11K_AHB) += ath11k_ahb.o ath11k_ahb-y += ahb.o pci_cmn.o obj-$(CONFIG_ATH11K_PCI) += ath11k_pci.o ath11k_pci-y += mhi.o pci.o pci_cmn.o Linking pci_cmn.o to both ath11k_pci.ko and ath11k_ahb.ko looks wrong. Does that even compile if ath11k is linked to the kernel, eg. with allyesconfig? One way to solve is to link pci_cmn.o to ath11k.ko. But for another approach, for a long time I have been thinking about what's the point to have separate ath11k_pci.ko and ath11k_ahb.ko modules?,They are very small anyway compared to ath11k.ko. So my ideais that should we have just one ath11k.ko module, it contains all AHB and PCI code as well, and ath11k_pci.ko and ath11k_ahb.ko would not be created anymore. It would simplify things a bit, especially here. Thoughts? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches