Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2689665pxb; Mon, 31 Jan 2022 02:03:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzog4abEiKePAvYt8oMxQgWPfM68shSvk8NV5i5sdASkdD6iNlh6YR/IrzjuvhKNsWDQzpH X-Received: by 2002:a05:6a00:1ac9:: with SMTP id f9mr17758731pfv.65.1643623404860; Mon, 31 Jan 2022 02:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643623404; cv=none; d=google.com; s=arc-20160816; b=tp050vRB7OmqOemG6/MyGHGLqGIYyLT1O8UO/n4CaR4STs5FAlO3w++D7mmb3eKzL6 QFhVp6msrklBnXjZyBpX8zZxk4irzbN0Sy6OtLTaMIVG3tP0REEYxuH1AKID+CkxOKB+ ONFUyqQkfCaZVfvgQRnxlRj+R5dbRQ+r6Rxkd7/tCqjZCHKv1yV1kygplrGiiK4VSXPd bdGFgvvGbqARPFZZXmU4nFTWA1UPARJGBLq8LvgVCi/eusg9LieBC9a+symOF8lzu4Ms 0g/H6jXdDhwBHE1g3p4BDzDuGimU/Z00VWoQGSDsgvrw6QheejPhR3PuXMxiltJQ/8gx OU7Q== 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=x7ERNfx97YlIBaNNdcCTT78v2qdX7FXXSuQ6+LvTf6A=; b=agdnSOe9MApIk/UzTsnsZVR88hWjEdUIoa2ieseK0SPf9ooP8pZp3qfugZuEGWl7fh 8h7mWjvCOxDLfK1+gAp8xTWbdGyT8DfDThRadeaRpeb2Q++nmssPIyiWJq4Ev2qRY/F6 qLr3wHZiqmIYEAIelHPqt9/lvY/sW1vspoHJaCHyXRX1+FjoGcPupvC9g/55M3xBDy7Y BtjFiMTgVM3yEWEk5stVCLMfX4e9993P9bsURBa5iefVY3IVZCghdWeXHLAAOQNC6yTb cUq0iWueNjI5A4tRM/COCjnqoUO3+fIFc8jrnKC/iCIWTguO1dnGAawSaQkWlFYnQ1hN rUNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k1tDv3aQ; 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 q2si12705006pgq.79.2022.01.31.02.02.22; Mon, 31 Jan 2022 02:03:24 -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=k1tDv3aQ; 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 S1348360AbiA1MOD (ORCPT + 72 others); Fri, 28 Jan 2022 07:14:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234483AbiA1MOC (ORCPT ); Fri, 28 Jan 2022 07:14:02 -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 74767C061714; Fri, 28 Jan 2022 04:14:02 -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 0FA97618CC; Fri, 28 Jan 2022 12:14:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34B94C340E6; Fri, 28 Jan 2022 12:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643372041; bh=Gl0idB2Sk6mpsfiD/yCwRa26c7O/F/PjGnyjeYSw0QY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=k1tDv3aQd6V7ZaOzFVGTMG6poo5NV4P38Pe4gM67NZsrgBTY6umJx87MdVxTJZJ+m UK1Nfb8nBBpNkb2w1ku9n+hNjOngR1doVyedmxQmrkv2c4mg+mVg0rd0/JRPUSuiO4 ICaf0bm6alsaJIcMVoyhljDn+iCFHcZcQxnKQXNnQb4OW9Kzbs5lgWiX7LKR3+YmdQ j1nNYlXE8nKHAswzLcGIeKfkLJ57qN3yez5zjGjpqnDVLx+fGkxQLFycemeIykyCZi e+sMnlQ4ajYif0BjUQJR+XJKDS9FmVa5K6xX+bGm+RNgyJQFW5FOw2lPqw4qhAd3aJ HBUoFo3ugWAhQ== 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 14:13:55 +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: <87h79of470.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 [...] > --- /dev/null > +++ b/drivers/net/wireless/ath/ath11k/pci_cmn.c [...] > +static inline void ath11k_pci_select_window(struct ath11k_pci *ab_pci, u32 offset) > +{ > + struct ath11k_base *ab = ab_pci->ab; > + > + u32 window = FIELD_GET(ATH11K_PCI_WINDOW_VALUE_MASK, offset); > + > + lockdep_assert_held(&ab_pci->window_lock); > + > + if (window != ab_pci->register_window) { > + iowrite32(ATH11K_PCI_WINDOW_ENABLE_BIT | window, > + ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); > + ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); > + ab_pci->register_window = window; > + } > +} So the style used in ath11k is ath11k__foo, so that a function ath11k_pci_foo() should be in pci.c. This patch is now breaking that style. Maybe pci_cmn.c should renamed to cpci.c, pcic.c or something like that? Then the function prefix could be ath11k_cpci_, ath11k_pcic_ or similar. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches