lkml.org 
[lkml]   [2021]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 066/207] scsi: ufs: ufs-pci: Add support for Intel ADL
    Date
    From: Adrian Hunter <adrian.hunter@intel.com>

    commit 7dc9fb47bc9a95f1cc6c5655341860c5e50f91d4 upstream.

    Add PCI ID and callbacks to support Intel Alder Lake.

    Link: https://lore.kernel.org/r/20211124204218.1784559-1-adrian.hunter@intel.com
    Cc: stable@vger.kernel.org # v5.15+
    Reviewed-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/scsi/ufs/ufshcd-pci.c | 18 ++++++++++++++++++
    1 file changed, 18 insertions(+)

    --- a/drivers/scsi/ufs/ufshcd-pci.c
    +++ b/drivers/scsi/ufs/ufshcd-pci.c
    @@ -421,6 +421,13 @@ static int ufs_intel_lkf_init(struct ufs
    return err;
    }

    +static int ufs_intel_adl_init(struct ufs_hba *hba)
    +{
    + hba->nop_out_timeout = 200;
    + hba->quirks |= UFSHCD_QUIRK_BROKEN_AUTO_HIBERN8;
    + 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,
    @@ -449,6 +456,15 @@ static struct ufs_hba_variant_ops ufs_in
    .device_reset = ufs_intel_device_reset,
    };

    +static struct ufs_hba_variant_ops ufs_intel_adl_hba_vops = {
    + .name = "intel-pci",
    + .init = ufs_intel_adl_init,
    + .exit = ufs_intel_common_exit,
    + .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)
    {
    @@ -563,6 +579,8 @@ static const struct pci_device_id ufshcd
    { PCI_VDEVICE(INTEL, 0x4B41), (kernel_ulong_t)&ufs_intel_ehl_hba_vops },
    { PCI_VDEVICE(INTEL, 0x4B43), (kernel_ulong_t)&ufs_intel_ehl_hba_vops },
    { 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 },
    { } /* terminate list */
    };


    \
     
     \ /
      Last update: 2021-12-06 17:11    [W:4.077 / U:0.332 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site