diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2022-12-30 22:48:47 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-12-30 22:48:47 +0100 |
commit | 2d95c6deb64dfb1496bd202aaffdbdb4b420a196 (patch) | |
tree | 13e9be4b7933879cd67afe55c8aa6699cf0b94ce /include/ufs | |
parent | Merge patch series "Prepare for upstreaming Pixel 6 and 7 UFS support" (diff) | |
parent | scsi: ufs: core: Remove ufshcd_map_desc_id_to_length() (diff) | |
download | linux-2d95c6deb64dfb1496bd202aaffdbdb4b420a196.tar.xz linux-2d95c6deb64dfb1496bd202aaffdbdb4b420a196.zip |
Merge patch series "scsi: ufs: core: Always read the descriptors with max length"
Arthur Simchaev <Arthur.Simchaev@wdc.com> says:
Read any descriptor with a maximum size of QUERY_DESC_MAX_SIZE.
According to the spec the device returns the actual size. Thus can
improve code readability and save CPU cycles. While at it, clean up
few leftovers around the descriptor size parameter.
Link: https://lore.kernel.org/r/1670763911-8695-1-git-send-email-Arthur.Simchaev@wdc.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs')
-rw-r--r-- | include/ufs/ufs.h | 1 | ||||
-rw-r--r-- | include/ufs/ufshcd.h | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h index 0c112195b288..c146de52918d 100644 --- a/include/ufs/ufs.h +++ b/include/ufs/ufs.h @@ -38,7 +38,6 @@ #define UFS_UPIU_MAX_UNIT_NUM_ID 0x7F #define UFS_MAX_LUNS (SCSI_W_LUN_BASE + UFS_UPIU_MAX_UNIT_NUM_ID) #define UFS_UPIU_WLUN_ID (1 << 7) -#define UFS_RPMB_UNIT 0xC4 /* WriteBooster buffer is available only for the logical unit from 0 to 7 */ #define UFS_UPIU_MAX_WB_LUN_ID 8 diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h index acdfa72d7230..dd5912b4db77 100644 --- a/include/ufs/ufshcd.h +++ b/include/ufs/ufshcd.h @@ -957,7 +957,6 @@ struct ufs_hba { bool is_urgent_bkops_lvl_checked; struct rw_semaphore clk_scaling_lock; - unsigned char desc_size[QUERY_DESC_IDN_MAX]; atomic_t scsi_block_reqs_cnt; struct device bsg_dev; @@ -1217,9 +1216,6 @@ void ufshcd_release(struct ufs_hba *hba); void ufshcd_clkgate_delay_set(struct device *dev, unsigned long value); -void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id, - int *desc_length); - u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba); int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg); |