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

kernel update

File:
1 edited

Legend:

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

    r31574 r31859  
    262262 *                      is carried out to allow vendor spesific capabilities
    263263 *                      to be set.
     264 * @apply_dev_quirks: called to apply device specific quirks
    264265 * @suspend: called during host controller PM callback
    265266 * @resume: called during host controller PM callback
     
    284285                                        struct ufs_pa_layer_attr *,
    285286                                        struct ufs_pa_layer_attr *);
     287        int     (*apply_dev_quirks)(struct ufs_hba *);
    286288        int     (*suspend)(struct ufs_hba *, enum ufs_pm_op);
    287289        int     (*resume)(struct ufs_hba *, enum ufs_pm_op);
     
    475477        #define UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION             UFS_BIT(5)
    476478
     479        /*
     480         * This quirk needs to be enabled if the host contoller regards
     481         * resolution of the values of PRDTO and PRDTL in UTRD as byte.
     482         */
     483        #define UFSHCD_QUIRK_PRDT_BYTE_GRAN                     UFS_BIT(7)
     484
    477485        unsigned int quirks;    /* Deviations from standard UFSHCI spec. */
    478486
     
    800808}
    801809
     810static inline int ufshcd_vops_apply_dev_quirks(struct ufs_hba *hba)
     811{
     812        if (hba->vops && hba->vops->apply_dev_quirks)
     813                return hba->vops->apply_dev_quirks(hba);
     814        return 0;
     815}
     816
    802817static inline int ufshcd_vops_suspend(struct ufs_hba *hba, enum ufs_pm_op op)
    803818{
Note: See TracChangeset for help on using the changeset viewer.