Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32cc5ec3 authored by Raviv Shvili's avatar Raviv Shvili
Browse files

scsi: ufs-msm: 64-bit compatibility fixes



Fix debug print to be compatible with 64bit platforms.
The debug print is needed in order to diagnose
customers issues.

Change-Id: Ia76daefea3cdcf0afedac31e4b615a3bbfb8ed80
Signed-off-by: default avatarRaviv Shvili <rshvili@codeaurora.org>
parent 360013b1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2123,7 +2123,7 @@ msm_ufs_cfg_timers(struct ufs_hba *hba, u32 gear, u32 hs, u32 rate)
		if (rate == PA_HS_MODE_A) {
			if (gear > ARRAY_SIZE(hs_fr_table_rA)) {
				dev_err(hba->dev,
					"%s: index %d exceeds table size %d\n",
					"%s: index %d exceeds table size %zu\n",
					__func__, gear,
					ARRAY_SIZE(hs_fr_table_rA));
				goto out_error;
@@ -2132,7 +2132,7 @@ msm_ufs_cfg_timers(struct ufs_hba *hba, u32 gear, u32 hs, u32 rate)
		} else if (rate == PA_HS_MODE_B) {
			if (gear > ARRAY_SIZE(hs_fr_table_rB)) {
				dev_err(hba->dev,
					"%s: index %d exceeds table size %d\n",
					"%s: index %d exceeds table size %zu\n",
					__func__, gear,
					ARRAY_SIZE(hs_fr_table_rB));
				goto out_error;
@@ -2148,7 +2148,7 @@ msm_ufs_cfg_timers(struct ufs_hba *hba, u32 gear, u32 hs, u32 rate)
	case SLOW_MODE:
		if (gear > ARRAY_SIZE(pwm_fr_table)) {
			dev_err(hba->dev,
					"%s: index %d exceeds table size %d\n",
					"%s: index %d exceeds table size %zu\n",
					__func__, gear,
					ARRAY_SIZE(pwm_fr_table));
			goto out_error;