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

Commit ec487912 authored by Ivaylo Georgiev's avatar Ivaylo Georgiev
Browse files

Revert "scsi: ufs: Use explicit access size in ufshcd_dump_regs"



This reverts commit eba68bd4.

This is a preparation change for merging android-4.19.19 into
msm-4.19 branch. Tech team discarded this change.

Change-Id: I216d423225556ce365e816c65c4d87213385715e
Signed-off-by: default avatarIvaylo Georgiev <irgeorgiev@codeaurora.org>
parent 18ba00a3
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -109,19 +109,13 @@
int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len,
		     const char *prefix)
{
	u32 *regs;
	size_t pos;

	if (offset % 4 != 0 || len % 4 != 0) /* keep readl happy */
		return -EINVAL;
	u8 *regs;

	regs = kzalloc(len, GFP_KERNEL);
	if (!regs)
		return -ENOMEM;

	for (pos = 0; pos < len; pos += 4)
		regs[pos / 4] = ufshcd_readl(hba, offset + pos);

	memcpy_fromio(regs, hba->mmio_base + offset, len);
	ufshcd_hex_dump(prefix, regs, len);
	kfree(regs);