]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mmc: sdhci: Modify max pio limits through debugfs
authorPavan Kunapuli <pkunapuli@nvidia.com>
Tue, 11 Nov 2014 11:30:58 +0000 (17:00 +0530)
committerPavan Kunapuli <pkunapuli@nvidia.com>
Wed, 6 May 2015 14:46:52 +0000 (07:46 -0700)
Providing option to modify max pio limits through debugfs. This is
useful for profiling and determining the default max pio limits.

Bug 1507868

Reviewed-on: http://git-master/r/601084
(cherry picked from commit 849069e3b38780dc347db316428d72d65ffefcdd)
Change-Id: Ibe6edbf3b9d4557b917f7d91fd01d478de4849c0
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/739659
Reviewed-by: Automatic_Commit_Validation_User
drivers/mmc/host/sdhci.c

index bba750312a3bab6533dfc53775357323263acf9a..2dbcc01374077afcde973b156e0914983801d9a8 100644 (file)
@@ -3392,6 +3392,14 @@ static void sdhci_debugfs_init(struct sdhci_host *host)
                root, (u32 *)&host->no_data_transfer_count))
                goto err_root;
 
+       if (!debugfs_create_u32("max_pio_size", S_IRUGO | S_IWUSR,
+               root, (u32 *)&host->max_pio_size))
+               goto err_root;
+
+       if (!debugfs_create_u32("max_pio_blocks", S_IRUGO | S_IWUSR,
+               root, (u32 *)&host->max_pio_blocks))
+               goto err_root;
+
        return;
 
 err_root: