From: "Eddie Huang (黃智傑)" <eddie.huang@mediatek.com>
To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"quic_asutoshd@quicinc.com" <quic_asutoshd@quicinc.com>,
"bvanassche@acm.org" <bvanassche@acm.org>,
"Stanley Chu (朱原陞)" <stanley.chu@mediatek.com>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "Powen Kao (高伯文)" <Powen.Kao@mediatek.com>,
"avri.altman@wdc.com" <avri.altman@wdc.com>,
"Liang-Yen Wang (王良彥)" <Liang-yen.Wang@mediatek.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"CC Chou (周志杰)" <cc.chou@mediatek.com>
Subject: Re: [PATCH v1 2/2] ufs: mtk-host: Add MCQ feature
Date: Tue, 8 Nov 2022 07:32:41 +0000 [thread overview]
Message-ID: <b3e59be054cc39fc181c149aefb6a612d0a792b8.camel@mediatek.com> (raw)
In-Reply-To: <b22b6d17-98d6-782c-af5e-8e3d46a0277e@collabora.com>
Hi Angelo
Sorry for late due to miss the mail
On Wed, 2022-10-26 at 10:42 +0200, AngeloGioacchino Del Regno wrote:
> Il 26/10/22 09:39, Eddie Huang ha scritto:
> > Add Mediatek mcq resource and runtime configuration function
> > to support MCQ capability
> >
> > Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
> > ---
> > drivers/ufs/host/ufs-mediatek.c | 37
> > +++++++++++++++++++++++++++++++++++++
> > drivers/ufs/host/ufs-mediatek.h | 7 +++++++
> > 2 files changed, 44 insertions(+)
> >
> > diff --git a/drivers/ufs/host/ufs-mediatek.c
> > b/drivers/ufs/host/ufs-mediatek.c
> > index c958279..3f5fc05 100644
> > --- a/drivers/ufs/host/ufs-mediatek.c
> > +++ b/drivers/ufs/host/ufs-mediatek.c
>
> ..snip..
>
> > +
> > +static int ufs_mtk_config_mcq_resource(struct ufs_hba *hba)
> > +{
> > + hba->mcq_base = hba->mmio_base +
> > + MCQ_QUEUE_OFFSET(hba-
> > >mcq_capabilities);
>
This define in UFSHCI4 spec
ADDR(SQATTR0) = UFS_HCI_BASE + QCFGPTR*200h
> This seems to either be an additional usecase that should be
> implemented into the
> API and not in MediaTek drivers, (as in that case I believe MediaTek
> won't be the
> only user of such usecase)... or just a way to avoid adding the MCQ
> iospace to the
> UFS devicetree node.
>
I can base on next version of UFS MCQ patch [1], and check whether add
new API
[1]: https://www.spinics.net/lists/linux-scsi/msg178322.html
Thanks,
Eddie
prev parent reply other threads:[~2022-11-08 7:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 7:39 [PATCH v1 0/2] Add Mediatek UFS Multi Circular Queue Eddie Huang
2022-10-26 7:39 ` [PATCH v1 1/2] ufs: core: mcq: Add config_mcq_resource vops Eddie Huang
2022-10-26 7:39 ` [PATCH v1 2/2] ufs: mtk-host: Add MCQ feature Eddie Huang
2022-10-26 8:42 ` AngeloGioacchino Del Regno
2022-11-08 7:32 ` Eddie Huang (黃智傑) [this message]
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=b3e59be054cc39fc181c149aefb6a612d0a792b8.camel@mediatek.com \
--to=eddie.huang@mediatek.com \
--cc=Liang-yen.Wang@mediatek.com \
--cc=Powen.Kao@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=avri.altman@wdc.com \
--cc=bvanassche@acm.org \
--cc=cc.chou@mediatek.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=quic_asutoshd@quicinc.com \
--cc=stanley.chu@mediatek.com \
/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