[PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (v2)

2011-10-21 Thread Giuseppe CAVALLARO
This patch is to expose the actual SDCLK frequency in /sys/kernel/debug/mmcX/ios entry. For example, if the max clk for a normal speed card is 20MHz this is reported in /sys/kernel/debug/mmcX/ios. Unfortunately the actual SDCLK frequency (i.e. Baseclock / divisor) is not reported at all: for

[PATCH] mmc: boot partition ro lock support

2011-10-21 Thread Ulf Hansson
From: Johan Rudholm johan.rudh...@stericsson.com Enable boot partitions to be power and permanently read-only locked via a sysfs entry. There will be one sysfs entry for the main mmc device: /sys/block/mmcblkX/boot_partition_ro_lock and one for each boot partition:

OMAP HSMMC data timeout calculation

2011-10-21 Thread Hebbar, Gururaja
Hi all, I am trying to understand data timeout value (dto) calculation done in omap hsmmc driver (omap_hsmmc.c) I summed my understanding my doubts in below code [GH]. Can someone help me in understanding the code Thanks in advance. Regards Gururaja static void set_data_timeout(struct

Re: A question on IOCTL interface for MMC

2011-10-21 Thread Shashidhar Hiremath
Hi All, Let me explain things in detail :- My INTENT / REQUIREMENT is to test ALL the SD/MMC Commands and NOT just the Read/Write(data transfer) Commands. How can this be helpful 1. It can be used to validate the SD/MMC Core flows(Command specific code paths) 2. The Card Enumeration can be

[PATCH] mmc: mmci: Improve runtime PM support

2011-10-21 Thread Ulf Hansson
Runtime PM support is now dynamically controling the enable/disable of the clock and vcore regulator. In runtime_suspend the register values are saved and in runtime_resume register values are restored. We also make use of the runtime_autosuspend with a timeout value set to 50 ms. Moreover a

Re: [PATCH] mmc: mmci: Improve runtime PM support

2011-10-21 Thread Russell King - ARM Linux
On Fri, Oct 21, 2011 at 05:25:54PM +0200, Ulf Hansson wrote: +#ifdef CONFIG_PM_RUNTIME +static int mmci_runtime_suspend(struct device *dev) +{ + struct amba_device *adev = to_amba_device(dev); + struct mmc_host *mmc = amba_get_drvdata(adev); + unsigned long flags; + + if

Re: [PATCH] mmc: boot partition ro lock support

2011-10-21 Thread Andrei Warkentin
Hi Ulf, Johan, - Original Message - From: Ulf Hansson ulf.hans...@stericsson.com To: linux-mmc@vger.kernel.org, Chris Ball c...@laptop.org Cc: Per Forlin per.for...@stericsson.com, Ulf Hansson ulf.hans...@stericsson.com, Lee Jones lee.jo...@linaro.org, Johan Rudholm