Re: [PATCH] scsi: ufs: core: Add a vop to handle vendor specific ops
From: Bart Van Assche
Date: Thu Mar 19 2026 - 17:13:03 EST
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.
@@ -7141,6 +7141,8 @@ static irqreturn_t ufshcd_sl_intr(struct ufs_hba *hba, u32 intr_status)Why to call this code from inside ufshcd_sl_intr() instead of from the ufshcd_sl_intr() caller?
{
irqreturn_t retval = IRQ_NONE;
+ ufshcd_vops_vendor_intr(hba);
@@ -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.
Thanks,
Bart.