From: "Fang Hongjie(方洪杰)" <hongjiefang@asrmicro.com>
To: Bart Van Assche <bvanassche@acm.org>,
"avri.altman@wdc.com" <avri.altman@wdc.com>,
"peter.wang@mediatek.com" <peter.wang@mediatek.com>,
"beanhuo@micron.com" <beanhuo@micron.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: RE: [PATCH] scsi: ufs: core: Add a vop to handle vendor specific ops
Date: Sat, 21 Mar 2026 03:34:02 +0000 [thread overview]
Message-ID: <dc22d720deba4ce1b1c7aa229a685911@exch02.asrmicro.com> (raw)
In-Reply-To: <64cc22ec-4d43-45c0-b63f-0401776f79a7@acm.org>
> On 3/19/26 2:38 AM, Hongjie Fang wrote:
> > add a vop to allow some vendors to do some additional ops
> > for some interrupts if necessary.
>
> UFS patches should be sent to Martin K. Petersen and should be Cc-ed to
> the linux-scsi mailing list. Additionally, a patch description should
> not only explain what has been changed but also why a change is being
> mode. "to do some additional ops for some interrupts if necessary" is
> too vague.
Given that some UFS controllers have private or extended interrupt status
registers, the purpose of this patch is to facilitate the handling of
proprietary registers within the host driver during the interrupt handling.
>
> > @@ -7141,6 +7141,8 @@ static irqreturn_t ufshcd_sl_intr(struct ufs_hba
> *hba, u32 intr_status)
> > {
> > irqreturn_t retval = IRQ_NONE;
> >
> > + ufshcd_vops_vendor_intr(hba);
> Why to call this code from inside ufshcd_sl_intr() instead of from the
> ufshcd_sl_intr() caller?
It is called within `ufshcd_sl_intr()` to support running vendor ops in
the `ufshcd_threaded_intr()`.
>
> > @@ -380,6 +381,7 @@ struct ufs_hba_variant_ops {
> > int (*config_esi)(struct ufs_hba *hba);
> > void (*config_scsi_dev)(struct scsi_device *sdev);
> > u32 (*freq_to_gear_speed)(struct ufs_hba *hba, unsigned long
> freq);
> > + void (*vendor_intr)(struct ufs_hba *hba);
> > };
>
> Where is the implementation of .vendor_intr? I don't see any
> implementation of that new callback in this patch. Please always submit
> at least one implementation of a new vendor operation together with the
> patch that adds the new vendor operation.
The idea here is to first enable the ability to run vendor operations within
interrupt handlers, making it easier to add the vendor specific
implementations later.
>
> Thanks,
>
> Bart.
Best.
next parent reply other threads:[~2026-03-21 3:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260319093839.1854051-1-hongjiefang@asrmicro.com>
[not found] ` <64cc22ec-4d43-45c0-b63f-0401776f79a7@acm.org>
2026-03-21 3:34 ` Fang Hongjie(方洪杰) [this message]
2026-03-23 17:29 ` [PATCH] scsi: ufs: core: Add a vop to handle vendor specific ops Bart Van Assche
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=dc22d720deba4ce1b1c7aa229a685911@exch02.asrmicro.com \
--to=hongjiefang@asrmicro.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=peter.wang@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