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

Commit 6780162c authored by Venkatraman S's avatar Venkatraman S Committed by Chris Ball
Browse files

mmc: debugfs: Print ext_csd in ascending order



ext_csd exported through debugfs is printed in reverse order (from
byte 511 to 0), which causes confusion.
Fix the for loop to print ext_csd in natural order.

Signed-off-by: default avatarVenkatraman S <svenkatr@ti.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 211d4fe5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ static int mmc_ext_csd_open(struct inode *inode, struct file *filp)
	if (err)
		goto out_free;

	for (i = 511; i >= 0; i--)
	for (i = 0; i < 512; i++)
		n += sprintf(buf + n, "%02x", ext_csd[i]);
	n += sprintf(buf + n, "\n");
	BUG_ON(n != EXT_CSD_STR_LEN);