* [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL
@ 2022-04-04 5:50 Adrian Hunter
2022-04-05 8:45 ` Avri Altman
2022-04-05 19:10 ` Bart Van Assche
0 siblings, 2 replies; 3+ messages in thread
From: Adrian Hunter @ 2022-04-04 5:50 UTC (permalink / raw)
To: Martin K . Petersen; +Cc: James E . J . Bottomley, Bean Huo, linux-scsi
Add PCI ID and callbacks to support Intel Meteor Lake (MTL).
Cc: stable@vger.kernel.org # v5.15+
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
drivers/scsi/ufs/ufshcd-pci.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c
index f76692053ca1..e892b9feffb1 100644
--- a/drivers/scsi/ufs/ufshcd-pci.c
+++ b/drivers/scsi/ufs/ufshcd-pci.c
@@ -428,6 +428,12 @@ static int ufs_intel_adl_init(struct ufs_hba *hba)
return ufs_intel_common_init(hba);
}
+static int ufs_intel_mtl_init(struct ufs_hba *hba)
+{
+ hba->caps |= UFSHCD_CAP_CRYPTO | UFSHCD_CAP_WB_EN;
+ return ufs_intel_common_init(hba);
+}
+
static struct ufs_hba_variant_ops ufs_intel_cnl_hba_vops = {
.name = "intel-pci",
.init = ufs_intel_common_init,
@@ -465,6 +471,16 @@ static struct ufs_hba_variant_ops ufs_intel_adl_hba_vops = {
.device_reset = ufs_intel_device_reset,
};
+static struct ufs_hba_variant_ops ufs_intel_mtl_hba_vops = {
+ .name = "intel-pci",
+ .init = ufs_intel_mtl_init,
+ .exit = ufs_intel_common_exit,
+ .hce_enable_notify = ufs_intel_hce_enable_notify,
+ .link_startup_notify = ufs_intel_link_startup_notify,
+ .resume = ufs_intel_resume,
+ .device_reset = ufs_intel_device_reset,
+};
+
#ifdef CONFIG_PM_SLEEP
static int ufshcd_pci_restore(struct device *dev)
{
@@ -579,6 +595,7 @@ static const struct pci_device_id ufshcd_pci_tbl[] = {
{ PCI_VDEVICE(INTEL, 0x98FA), (kernel_ulong_t)&ufs_intel_lkf_hba_vops },
{ PCI_VDEVICE(INTEL, 0x51FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
{ PCI_VDEVICE(INTEL, 0x54FF), (kernel_ulong_t)&ufs_intel_adl_hba_vops },
+ { PCI_VDEVICE(INTEL, 0x7E47), (kernel_ulong_t)&ufs_intel_mtl_hba_vops },
{ } /* terminate list */
};
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL
2022-04-04 5:50 [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL Adrian Hunter
@ 2022-04-05 8:45 ` Avri Altman
2022-04-05 19:10 ` Bart Van Assche
1 sibling, 0 replies; 3+ messages in thread
From: Avri Altman @ 2022-04-05 8:45 UTC (permalink / raw)
To: Adrian Hunter, Martin K . Petersen
Cc: James E . J . Bottomley, Bean Huo, linux-scsi
> Add PCI ID and callbacks to support Intel Meteor Lake (MTL).
>
> Cc: stable@vger.kernel.org # v5.15+
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL
2022-04-04 5:50 [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL Adrian Hunter
2022-04-05 8:45 ` Avri Altman
@ 2022-04-05 19:10 ` Bart Van Assche
1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2022-04-05 19:10 UTC (permalink / raw)
To: Adrian Hunter, Martin K . Petersen
Cc: James E . J . Bottomley, Bean Huo, linux-scsi
On 4/3/22 22:50, Adrian Hunter wrote:
> Add PCI ID and callbacks to support Intel Meteor Lake (MTL).
>
> Cc: stable@vger.kernel.org # v5.15+
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-06 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 5:50 [PATCH] scsi: ufs: ufs-pci: Add support for Intel MTL Adrian Hunter
2022-04-05 8:45 ` Avri Altman
2022-04-05 19:10 ` Bart Van Assche
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.