From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Kalle Valo <kvalo@codeaurora.org>
Cc: Govind Singh <govinds@codeaurora.org>,
linux-wireless@vger.kernel.org, ath11k@lists.infradead.org
Subject: Re: [PATCH 4/4] ath11k: Register mhi controller device for qca6390
Date: Tue, 12 May 2020 14:30:50 +0530 [thread overview]
Message-ID: <20200512090050.GD5526@Mani-XPS-13-9360> (raw)
In-Reply-To: <871rnp4lc7.fsf@kamboji.qca.qualcomm.com>
On Tue, May 12, 2020 at 11:19:04AM +0300, Kalle Valo wrote:
> Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> writes:
>
> > Hi Kalle,
> >
> > On Mon, May 11, 2020 at 09:03:56PM +0300, Kalle Valo wrote:
> >>
> >> Govind Singh <govinds@codeaurora.org> writes:
> >>
> >> > config ATH11K_PCI
> >> > tristate "Qualcomm Technologies 802.11ax chipset PCI support"
> >> > - depends on ATH11K && PCI
> >> > + depends on ATH11K && PCI && MHI_BUS
> >> > ---help---
> >> > This module adds support for PCIE bus
> >>
> >> Currently ATH11K_PCI is not visible if MHI_BUS is disabled, which I'm
> >> worried will confuse the users. I wonder if we should use 'select
> >> MHI_BUS' instead? That way ATH11K_PCI would be visible even if MHI_BUS
> >> is disabled.
> >>
> >
> > Right, this sounds good to me.
>
> Good, I added that in the pending branch.
>
> >> And what about QRTR_MHI? Mani, any suggestions?
> >>
> >
> > Are you asking for Kconfig dependency? If yes, then you need to select it here
> > also as you can't do much without it.
>
> Ok, I added QRTR_MHI to Kconfig as well I also had to add "select MHI"
> as othwerwise I would get this warning:
>
> WARNING: unmet direct dependencies detected for QRTR_MHI
> Depends on [n]: NET [=y] && QRTR [=n] && MHI_BUS [=m]
> Selected by [m]:
> - ATH11K_PCI [=m] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && ATH11K [=m] && PCI [=y]
>
> So now Kconfig looks like:
>
> config ATH11K_PCI
> tristate "Qualcomm Technologies 802.11ax chipset PCI support (work in-progress)"
> depends on ATH11K && PCI
> select MHI_BUS
> select QRTR
> select QRTR_MHI
LGTM. I should have selected MHI_BUS in QRTR_MHI... but that's fine.
> ---help---
> This module adds support for PCIE bus
>
> Govind&Mani, please check my changes in the pending branch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=5ebf69d1db8b027671b642e3ba0bec3d7c73acb7
>
> > Btw, I'm not CCed for the patch so I haven't looked at it.
>
> This patchset is in my pending branch, link above.
>
> > But we have made few changes to the MHI stack which will impact the
> > controller drivers.
>
> Oh, that will create problems. What kind of changes are needed in
> ath11k?
>
I looked into your patch and the only change needed is below:
```
void mhi_write_reg(struct mhi_controller *mhi_cntrl, void __iomem *addr,
u32 val)
{
writel(val, addr);
}
int mhi_read_reg(struct mhi_controller *mhi_cntrl, void __iomem *addr,
u32 *out)
{
u32 tmp = readl(addr);
*out = tmp;
return 0;
}
...
mhi_ctrl->read_reg = mhi_read_reg;
mhi_ctrl->write_reg = mhi_write_reg;
```
So we have offloaded the MHI read/write calls to controller drivers as they
are truly physical layer dependent. So the MHI stack just calls the callback
for reading/writing to MHI register space.
> > So I'd suggest you to rebase MHI controller patch on top of mhi-next
> > [1]. The proposed changes in MHI will hopefully land in 5.8.
>
> I cannot rebase on top mhi-next as my patches go through net-next. One
> option I can think of is that I'll pull (not rebase!) mhi-next to my
> tree, but I would need to check with David Miller first and I'm not sure
> if it's worth the trouble. I think easiest is that we find minimal
> possible changes needed to accommodate the new MHI interface and then
> inform Linus and Stephen when do the merges.
>
One more option is to create an immutable branch on top of RC like v5.7-rc1
which has the offending patches. Then we can do the pull of this immutable
branch into our respective trees.
Then finally when Linus pulls these two trees, he'll see that these are the
same commits and he should be fine. Only thing we should make sure is to inform
the respective subsystem maintainers to mention this to Linus during pull
request.
For sure the commits will appear in two shortlogs but that won't be an issue.
Let me know what you think.
Thanks,
Mani
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git/log/?h=mhi-next
>
> --
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next prev parent reply other threads:[~2020-05-12 9:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 8:58 [PATCH 0/4] Add PCI client driver for QCA6390 chipset Govind Singh
2020-05-08 8:58 ` [PATCH 1/4] ath11k: " Govind Singh
2020-05-11 17:59 ` Kalle Valo
2020-05-12 5:31 ` govinds
2020-05-08 8:58 ` [PATCH 2/4] ath11k: setup pci resource for QCA6390 target Govind Singh
2020-05-08 8:58 ` [PATCH 3/4] ath11k: Add msi config init for QCA6390 Govind Singh
2020-05-08 8:58 ` [PATCH 4/4] ath11k: Register mhi controller device for qca6390 Govind Singh
2020-05-11 18:03 ` Kalle Valo
2020-05-12 7:13 ` Manivannan Sadhasivam
2020-05-12 8:19 ` Kalle Valo
2020-05-12 8:24 ` Kalle Valo
2020-05-12 9:00 ` Manivannan Sadhasivam [this message]
2020-05-11 18:08 ` Kalle Valo
2020-05-15 3:28 ` Carl Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200512090050.GD5526@Mani-XPS-13-9360 \
--to=manivannan.sadhasivam@linaro.org \
--cc=ath11k@lists.infradead.org \
--cc=govinds@codeaurora.org \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox