OSDN Git Service

scsi: ufs: core: Add Event Specific Interrupt configuration vendor specific ops
authorCan Guo <quic_cang@quicinc.com>
Thu, 15 Dec 2022 03:06:20 +0000 (19:06 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 14 Jan 2023 02:10:25 +0000 (21:10 -0500)
commitedb0db05607ce05a5e0df00518b58a811e9f548e
treed6fe7f08cbe71982cf5447831784994d8db19051
parenteacb139b77ff75b973cb99573b33a7adb1f4ca38
scsi: ufs: core: Add Event Specific Interrupt configuration vendor specific ops

As Event Specific Interrupt message format is not defined in UFSHCI JEDEC
specs, and the ESI handling highly depends on how the format is designed,
hence add a vendor specific ops such that SoC vendors can configure their
own ESI handlers. If ESI vops is not provided or returning error, go with
the legacy (central) interrupt way.

Signed-off-by: Can Guo <quic_cang@quicinc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd-priv.h
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h