Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (6 weeks ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/scsi/ufs/ufs_quirks.h

    r31574 r31859  
    129129#define UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM       (1 << 6)
    130130
     131/*
     132 * Some UFS devices require host PA_TACTIVATE to be lower than device
     133 * PA_TACTIVATE, enabling this quirk ensure this.
     134 */
     135#define UFS_DEVICE_QUIRK_HOST_PA_TACTIVATE      (1 << 7)
     136
     137/*
     138 * The max. value PA_SaveConfigTime is 250 (10us) but this is not enough for
     139 * some vendors.
     140 * Gear switch from PWM to HS may fail even with this max. PA_SaveConfigTime.
     141 * Gear switch can be issued by host controller as an error recovery and any
     142 * software delay will not help on this case so we need to increase
     143 * PA_SaveConfigTime to >32us as per vendor recommendation.
     144 */
     145#define UFS_DEVICE_QUIRK_HOST_PA_SAVECONFIGTIME (1 << 8)
     146
    131147struct ufs_hba;
    132148void ufs_advertise_fixup_device(struct ufs_hba *hba);
    133149
    134 static struct ufs_dev_fix ufs_fixups[] = {
    135         /* UFS cards deviations table */
    136         UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL,
    137                 UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM),
    138         UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL, UFS_DEVICE_NO_VCCQ),
    139         UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL,
    140                 UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS),
    141         UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL,
    142                 UFS_DEVICE_NO_FASTAUTO),
    143         UFS_FIX(UFS_VENDOR_TOSHIBA, UFS_ANY_MODEL,
    144                 UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM),
    145         UFS_FIX(UFS_VENDOR_TOSHIBA, "THGLF2G9C8KBADG",
    146                 UFS_DEVICE_QUIRK_PA_TACTIVATE),
    147         UFS_FIX(UFS_VENDOR_TOSHIBA, "THGLF2G9D8KBADG",
    148                 UFS_DEVICE_QUIRK_PA_TACTIVATE),
    149         UFS_FIX(UFS_VENDOR_SKHYNIX, UFS_ANY_MODEL, UFS_DEVICE_NO_VCCQ),
    150 
    151         END_FIX
    152 };
    153150#endif /* UFS_QUIRKS_H_ */
Note: See TracChangeset for help on using the changeset viewer.