Re: mmc driver read/write detect problem with Baytrail tablet

2015-06-30 Thread Venkatraman S
On Tue, Jun 30, 2015 at 10:13 AM, Paul Mansfield p...@mansfield.co.uk wrote: Hello, I am trying to get a baytrail-t based convertible tablet working with linux, using kernel 4.1 built for 32 bit Debian Jessie. I've made good progress, making my Toshiba Click Mini work sufficiently well to

Re: [PATCH v2] mmc: add new au6601 driver

2014-10-17 Thread Venkatraman S
On Sat, Sep 27, 2014 at 12:41 PM, Oleksij Rempel li...@rempel-privat.de wrote: This driver is based on documentation which was based on my RE-work and comparision with other MMC drivers. It works in legacy mode and can provide 20MB/s R/W spead for most modern SD cards, even if at least 40MB/s

Re: [PATCH] mmc: omap_hsmmc: MAINTAINERS: update

2013-01-31 Thread Venkatraman S
On Thu, Jan 31, 2013 at 2:22 PM, Balaji T K balaj...@ti.com wrote: Update Maintainer email for omap_hsmmc, as Venkatraman will no longer be able to maintain omap_hsmmc driver. Signed-off-by: Venkatraman S svenk...@gmail.com Signed-off-by: Balaji T K balaj...@ti.com Balaji, My sign-off

[PATCH] mmc: omap_hsmmc: MAINTAINERS: change omap_hsmmc maintenance to orphan

2013-01-16 Thread Venkatraman S
The specified email id is no longer in service. Update the OMAP HSMMC entry from the MAINTAINERS file as I will no longer be able to maintain this driver. Signed-off-by: Venkatraman S svenk...@gmail.com --- MAINTAINERS |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH 1/7] mmc: omap_hsmmc: Fix Oops in case of data errors

2012-11-26 Thread Venkatraman S
On Mon, Nov 26, 2012 at 2:19 AM, Chris Ball c...@laptop.org wrote: Hi Venkat, On Mon, Nov 19 2012, Venkatraman S wrote: From: Balaji T K balaj...@ti.com commit ae4bf788ee9bf7c2d51b0309117d1fcccbdd50a2 mmc: omap_hsmmc: consolidate error report handling of HSMMC IRQ sets both end_cmd

Re: [PATCH 0/5] mmc: omap_hsmmc: Few patches for omap_hsmmc

2012-11-19 Thread Venkatraman S
On Sun, Nov 18, 2012 at 6:39 AM, Chris Ball c...@laptop.org wrote: Hi Venkat, On Tue, Nov 06 2012, Venkatraman S wrote: Hi Chris, Please review and merge the below patches. The first one is a bug fix that would be required to be sent for 3.7-rcX, others are intended for 3.8. There have

[PATCH 1/7] mmc: omap_hsmmc: Fix Oops in case of data errors

2012-11-19 Thread Venkatraman S
has previously been handled. Set end_cmd only in case of command Timeout/CRC. Moreover host-cmd-error should not be updated on data error case, only host-data-error needs to be updated. Signed-off-by: Balaji T K balaj...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S

[PATCH 2/7] mmc: omap_hsmmc: no reset of cmd state machine for DCRC

2012-11-19 Thread Venkatraman S
From: Balaji T K balaj...@ti.com Avoid soft reset of command internal state machine on data errors. Signed-off-by: Balaji T K balaj...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion

[PATCH 3/7] mmc: omap_hsmmc: update error code for response_busy cmd

2012-11-19 Thread Venkatraman S
From: Balaji T K balaj...@ti.com update error code to cmd-error for commands with response_busy and no data Signed-off-by: Balaji T K balaj...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 4 ++-- 1 file changed, 2

[PATCH 4/7] mmc: omap_hsmmc: Enable HSPE bit for high speed cards

2012-11-19 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 1 + arch/arm/plat-omap/include/plat/mmc.h | 1 + drivers/mmc/host/omap_hsmmc.c | 30 +- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git

[PATCH 5/7] mmc: omap_hsmmc: introduce omap_hsmmc_prepare/complete

2012-11-19 Thread Venkatraman S
to suspend. Likewise, move card detect IRQ enabling to complete() so we only try to register new children after our MMC IP is back up. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 44

[PATCH 6/7] mmc: omap_hsmmc: convert critical failure reports to dev_err

2012-11-19 Thread Venkatraman S
Fatal errors for the driver are not reported when just error debug is enabled. Convert selected dev_dbg to dev_err for accurate error reporting. Reported-by: Benoit Cousson b-cous...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 12 ++-- 1 file

[PATCH v2 7/7] mmc: omap_hsmmc: Cleanup up bitmap definitions of Interrupt Register

2012-11-19 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- v1-v2: Balaji's comments to not set ERR_EN for INT_EN_MASK is now handled. drivers/mmc/host/omap_hsmmc.c | 56 --- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/drivers/mmc/host

Re: [PATCH 4/5] mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register

2012-11-08 Thread Venkatraman S
On Wed, Nov 7, 2012 at 6:54 PM, Balaji T K balaj...@ti.com wrote: On Tuesday 06 November 2012 10:22 PM, Venkatraman S wrote: Define the most frequently used bitmasks of the Interrupt Enable / Interrupt Status register with consistent naming ( with _EN suffix). Use meaningful concatenation

Re: [RFC/PATCH] mmc: omap_hsmmc: introduce omap_hsmmc_prepare/complete

2012-11-06 Thread Venkatraman S
On Mon, Oct 22, 2012 at 6:29 PM, Felipe Balbi ba...@ti.com wrote: prepare() is supposed to prevent new children from being registered. On the MMC subsystem, children (new cards) registration starts with the card detect IRQ. Move card detect IRQ disabling to prepare() so that no new cards

[PATCH 0/5] mmc: omap_hsmmc: Few patches for omap_hsmmc

2012-11-06 Thread Venkatraman S
: omap_hsmmc: Enable HSPE bit for high speed cards Venkatraman S (3): mmc: omap_hsmmc: Avoid host-cmd dereference during data transfer failures mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register mmc: omap_hsmmc: convert critical failure reports to dev_err

[PATCH 1/5] mmc: omap_hsmmc: Avoid host-cmd dereference during data transfer failures

2012-11-06 Thread Venkatraman S
has not been handled before, else a NULL pointer dereference occurs. CC: sta...@vger.kernel.org Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH 2/5] mmc: omap_hsmmc: Enable HSPE bit for high speed cards

2012-11-06 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 1 + arch/arm/plat-omap/include/plat/mmc.h | 1 + drivers/mmc/host/omap_hsmmc.c | 30 +- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git

[PATCH 3/5] mmc: omap_hsmmc: introduce omap_hsmmc_prepare/complete

2012-11-06 Thread Venkatraman S
to suspend. Likewise, move card detect IRQ enabling to complete() so we only try to register new children after our MMC IP is back up. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 44

[PATCH 4/5] mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register

2012-11-06 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 54 +-- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index e91e85a..d16ef0f 100644

[PATCH 5/5] mmc: omap_hsmmc: convert critical failure reports to dev_err

2012-11-06 Thread Venkatraman S
Fatal errors for the driver are not reported when just error debug is enabled. Convert selected dev_dbg to dev_err for accurate error reporting. Reported-by: Benoit Cousson b-cous...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 12 ++-- 1 file

Re: [PATCH V3] mmc: omap_hsmmc: Enable HSPE bit for high speed cards

2012-10-31 Thread Venkatraman S
On Wed, Oct 31, 2012 at 5:56 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Wed, Oct 31, 2012 at 05:27:36PM +0530, Hebbar, Gururaja wrote: HSMMC IP on AM33xx need a special setting to handle High-speed cards. Other platforms like TI81xx, OMAP4 may need this as-well. This depends on the HSMMC IP

Re: [PATCH 1/1] mmc/card/queue.c: change action when the condition of if is true

2012-10-26 Thread Venkatraman S
On Thursday 25 October 2012 06:29 PM, wang.jing.windsdae...@gmail.com wrote: From: Jing Wang windsdae...@gmail.com Some description of the actual effect of the change here would be nice. For example, Trim the error handling path in mmc_alloc_sg. But what's the point of this patch anyway ? There

Re: [RFC/PATCH] mmc: omap_hsmmc: introduce omap_hsmmc_prepare/complete

2012-10-26 Thread Venkatraman S
On Thursday 25 October 2012 11:34 PM, Felipe Balbi wrote: Hi, On Mon, Oct 22, 2012 at 04:27:08PM +0300, Felipe Balbi wrote: On Mon, Oct 22, 2012 at 03:59:28PM +0300, Felipe Balbi wrote: prepare() is supposed to prevent new children from being registered. On the MMC subsystem, children (new

Re: [PATCH v1] mmc: fix async request mechanism for sequential read scenarios

2012-10-26 Thread Venkatraman S
On Thu, Oct 25, 2012 at 6:58 PM, Konstantin Dorfman kdorf...@codeaurora.org wrote: On 10/24/2012 07:07 PM, Per Förlin wrote: On 10/24/2012 11:41 AM, Konstantin Dorfman wrote: Hello Per, On Mon, October 22, 2012 1:02 am, Per Forlin wrote: When mmcqt reports on completion of a request there

Re: [PATCH v1] mmc: fix async request mechanism for sequential read scenarios

2012-10-26 Thread Venkatraman S
On Thu, Oct 25, 2012 at 8:32 PM, Per Förlin per.for...@stericsson.com wrote: On 10/25/2012 03:28 PM, Konstantin Dorfman wrote: On 10/24/2012 07:07 PM, Per Förlin wrote: On 10/24/2012 11:41 AM, Konstantin Dorfman wrote: Hello Per, On Mon, October 22, 2012 1:02 am, Per Forlin wrote: When

[PATCH 1/4] MMC: omap_hsmmc: claim pinctrl at probe time

2012-10-15 Thread Venkatraman S
From: Daniel Mack zon...@gmail.com This allows DT-driven board to set up the pin mux only when the driver is in use. Signed-off-by: Daniel Mack zon...@gmail.com Cc: Venkatraman S svenk...@ti.com Cc: Chris Ball c...@laptop.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr

[PATCH 2/4] MMC: omap_hsmmc: add DT property for max bus frequency

2012-10-15 Thread Venkatraman S
From: Daniel Mack zon...@gmail.com Maximum bus frequency can be limited by external circuitry like level shifters etc. Allow passing this value from DT. Signed-off-by: Daniel Mack zon...@gmail.com Cc: Venkatraman S svenk...@ti.com Cc: Chris Ball c...@laptop.org Cc: Grant Likely grant.lik

[PATCH 4/4] mmc: omap_hsmmc: Fix NULL pointer dereference for dt boot

2012-10-15 Thread Venkatraman S
From: Balaji T K balaj...@ti.com dev-platform_data is NULL in case of device tree boot, instead use the saved version in struct omap_hsmmc_host. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 17 +++-- 1

Re: [PATCH 0/4] MMC: some omap_hsmmc fixes

2012-10-15 Thread Venkatraman S
Daniel, On Sat, Oct 13, 2012 at 2:31 PM, Daniel Mack zon...@gmail.com wrote: On 12.10.2012 12:58, Daniel Mack wrote: Here are some assorted patches for the omap_hsmmc driver that I need on top Linus' current development branch to make it work on a AM33xx board. 1/4 and 2/4 qualify as bug

Re: [PATCH 09/16] ARM: OMAP: Split plat/mmc.h into local headers and platform_data

2012-10-05 Thread Venkatraman S
On Fri, Oct 5, 2012 at 3:34 AM, Tony Lindgren t...@atomide.com wrote: We need to remove this from plat for ARM common zImage support. Cc: Chris Ball c...@laptop.org Cc: Venkatraman S svenk...@ti.com Cc: linux-mmc@vger.kernel.org Signed-off-by: Tony Lindgren t...@atomide.com Thanks Tony. I

[PATCHv2 1/2] mmc: omap_hsmmc: convert from IP timer to hrtimer

2012-08-28 Thread Venkatraman S
, and the arbitary timing of 100ms is used only when the timeout is not explicitly specified by core. A trivial change to get rid of unnecessary dealiasing of host-data in omap_hsmmc_do_irq is also included. Signed-off-by: Venkatraman S svenk...@ti.com --- v1-v2: Fix typos in commit message. Add checks

[PATCH 2/2] mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register

2012-08-28 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 51 --- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 57e86a4..03c2362 100644 --- a/drivers/mmc/host/omap_hsmmc.c

[PATCH 00/10] Assorted MMC / OMAP HSMMC patches

2012-08-17 Thread Venkatraman S
is in draft state and needs more testing. These patches are also available at git://github.com/svenkatr/linux.git my/mmc/3.6/hrtimer_updates Venkatraman S (10): mmc: core: Add TRANsfer state to non-HPI state mmc: debugfs: Print ext_csd in ascending order mmc: omap: remove unused variables

[PATCH 01/10] mmc: core: Add TRANsfer state to non-HPI state

2012-08-17 Thread Venkatraman S
HPI can be issued only in programming state to bring the card to transfer state. If the card is already in transfer state, doing a HPI is redundant. Fix this by adding transfer state to the list of exceptions to doing HPI and return without error. Signed-off-by: Venkatraman S svenk...@ti.com

[PATCH 02/10] mmc: debugfs: Print ext_csd in ascending order

2012-08-17 Thread Venkatraman S
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: Venkatraman S svenk...@ti.com --- drivers/mmc/core/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 03/10] mmc: omap: remove unused variables and includes

2012-08-17 Thread Venkatraman S
Get rid of some unnecessary includes in the driver and a few unused variables. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 50e08f0..0ec4e55 100644

[PATCH 04/10] mmc: omap: fix mmc_omap_report_irq to use dev_dbg macros

2012-08-17 Thread Venkatraman S
The function mmc_omap_report_irq uses raw printks and the actual output was disabled by a static variable. Make the function use dev_vdbg macro and use it under the standard CONFIG_MMC_DEBUG flag. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap.c | 29

[PATCH 05/10] mmc: omap_hsmmc: remove unused vars and includes

2012-08-17 Thread Venkatraman S
Some straight forward cleanup of unnecessary #include's and host variables. Some of the verbose and redundant debug messages are converted to use dev_vdbg. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 14 -- 1 file changed, 4 insertions(+), 10

[PATCH 07/10] mmc: omap_hsmmc: consolidate flush posted writes for HSMMC IRQs

2012-08-17 Thread Venkatraman S
Flushing spurious IRQs from HSMMC IP is done twice in omap_hsmmc_irq and omap_hsmmc_do_irq. Consolidate them to one location. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git

[PATCH 08/10] mmc: omap_hsmmc: consolidate error report handling of HSMMC IRQ

2012-08-17 Thread Venkatraman S
Consolidate the duplicated code around the handling of CMD_TIMEOUT, CMD_CRC, DATA_TIMEOUT, DATA_CRC and CARD_ERR handling into a single function. This generally shrinks code bloat, but is also required for implementing software based guard timers. Signed-off-by: Venkatraman S svenk...@ti.com

[PATCH 10/10] mmc: omap_hsmmc: Move to Maintained state in MAINTAINERS

2012-08-17 Thread Venkatraman S
I can continue to look after this driver. Signed-off-by: Venkatraman S svenk...@ti.com --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 72c2681..75e3c3e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4933,8 +4933,10 @@ S

[PATCH 09/10] mmc: omap_hsmmc: convert from IP timer to hrtimer

2012-08-17 Thread Venkatraman S
when the timeout is not explicitly specified by core. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 96 ++- 1 file changed, 50 insertions(+), 46 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH v5] mmc: core: Fix the HPI execution sequence

2012-06-22 Thread Venkatraman S
at the end of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com Reviewed-by: Namjae

[PATCH v4] mmc: core: Fix the HPI execution sequence

2012-06-21 Thread Venkatraman S
at the end of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com Reviewed-by: Namjae

[PATCH 0/3] mmc: omap: driver registration cleanups

2012-05-08 Thread Venkatraman S
Cleanups for the legacy omap mmc driver to remove clutter and make it well behaved as module. Venkatraman S (3): mmc: omap: convert to per instance workqueue mmc: omap: make it behave well as module mmc: omap: convert to module_platform_driver drivers/mmc/host/omap.c | 48

[PATCH 1/3] mmc: omap: convert to per instance workqueue

2012-05-08 Thread Venkatraman S
Currently, a global mmc_omap_wq is created for all instances of omap hosts, which can lead to races and doesn't lend itself to unload the module cleanly. Instead, create per instance workqueue and remove the common workqueue. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host

[PATCH 2/3] mmc: omap: make it behave well as module

2012-05-08 Thread Venkatraman S
Use proper __devinit and __devexit annotation for driver functions. Instantiate the probe function for driver_ops instead of a probe in the register function. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap.c |9 + 1 files changed, 5 insertions(+), 4 deletions

[PATCH v2 08/16] mmc: core: add preemptibility tracking fields to mmc command

2012-05-03 Thread Venkatraman S
Set a preemptibility command atrribute to MMC commands. This can be later used by write (multi block), trim etc for evaluating if a HPI is applicable. Note the starting time of executing a command so a decision can be made if it is too late for preemption. Signed-off-by: Venkatraman S svenk

[PATCH v2 09/16] mmc: core: Add MMC abort interface

2012-05-03 Thread Venkatraman S
etc. The implementation is controller dependant Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core/core.c |8 include/linux/mmc/host.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index b4152ca..3f0e927

[PATCH v2 15/16] mmc: Update preempted request with CORRECTLY_PRG_SECTORS_NUM info

2012-05-03 Thread Venkatraman S
Ongoing request that was preempted during 'programming' state is partially completed. Number of correctly programmed sectors is available in the ext_csd field CORRECTLY_PRG_SECTORS_NUM. Read this field to update the bytes_xfered field of the request Signed-off-by: Venkatraman S svenk...@ti.com

[PATCH v2 16/16] mmc: omap_hsmmc: Implement abort_req host_ops

2012-05-03 Thread Venkatraman S
is marked as an error (except when the command has almost completed while receiving the abort request, in which case finish the command normally). Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 55 ++--- 1 file changed, 51 insertions

[PATCHv2 00/16] [FS, MM, block, MMC]: eMMC High Priority Interrupt Feature

2012-05-03 Thread Venkatraman S
: Added page swapping markers to memory management block: treat DMPG and SWAPIN requests as special Venkatraman S (13): block: add queue attributes to manage dpmg and swapin requests block: add sysfs attributes for runtime control of dpmg and swapin block: Documentation: add

[PATCH v2 02/16] MM: Added page swapping markers to memory management

2012-05-03 Thread Venkatraman S
From: Ilan Smith ilan.sm...@sandisk.com Add attribute to identify swapin requests Mark memory management requests with swapin requests Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- include

[PATCH v2 05/16] block: Documentation: add sysfs ABI for expedite_dmpg and expedite_swapin

2012-05-03 Thread Venkatraman S
Add description on the usage of expedite_dmpg and expedite_swapin. Signed-off-by: Venkatraman S svenk...@ti.com --- Documentation/ABI/testing/sysfs-block | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-block b/Documentation/ABI/testing/sysfs

[PATCH v2 04/16] block: add sysfs attributes for runtime control of dpmg and swapin

2012-05-03 Thread Venkatraman S
sysfs entries for DPMG and SWAPIN requests so that they can be set/reset from userspace. Signed-off-by: Venkatraman S svenk...@ti.com --- block/blk-sysfs.c | 16 1 file changed, 16 insertions(+) diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index cf15001..764de9f 100644

[PATCH v2 07/16] mmc: core: helper function for finding preemptible command

2012-05-03 Thread Venkatraman S
According to table30 in eMMC spec, only some commands can be preempted by foreground HPI. Provide a helper function for the HPI procedure to identify if the command is preemptible. Signed-off-by: Venkatraman S svenk...@ti.com --- include/linux/mmc/core.h | 13 + 1 file changed, 13

[PATCH v2 12/16] mmc: sysfs: Add sysfs entry for tuning preempt_time_threshold

2012-05-03 Thread Venkatraman S
the hpi_time_threshold sysfs entry. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core/mmc.c | 25 + include/linux/mmc/card.h |1 + 2 files changed, 26 insertions(+) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 54df5ad..b7dbea1

[PATCH v2 14/16] mmc: block: Implement HPI invocation and handling logic.

2012-05-03 Thread Venkatraman S
the command normally. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/block.c | 131 +++--- drivers/mmc/card/queue.h |1 + 2 files changed, 124 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c

[PATCH v2 13/16] mmc: Documentation: Add sysfs ABI for hpi_time_threshold

2012-05-03 Thread Venkatraman S
hpi_time_threshold can be set to configure elapsed time in ms, after which an ongoing request will not be preempted. Explain the hpi_time_threhold parameter for MMC devices. Signed-off-by: Venkatraman S svenk...@ti.com --- Documentation/ABI/testing/sysfs-devices-mmc | 12 1 file

[PATCH v2 10/16] mmc: block: Detect HPI support in card and host controller

2012-05-03 Thread Venkatraman S
If both the card and host controller support HPI related operations, set a flag in MMC queue to remember it. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/block.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/card/block.c b

[PATCH v2 06/16] block: treat DMPG and SWAPIN requests as special

2012-05-03 Thread Venkatraman S
-by: Venkatraman S svenk...@ti.com --- block/blk-core.c | 18 ++ block/elevator.c | 14 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/block/blk-core.c b/block/blk-core.c index 1f61b74..7a1b98b 100644 --- a/block/blk-core.c +++ b/block/blk-core.c

[PATCH v2 01/16] FS: Added demand paging markers to filesystem

2012-05-03 Thread Venkatraman S
From: Ilan Smith ilan.sm...@sandisk.com Add attribute to identify demand paging requests. Mark readpages with demand paging attribute. Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- fs

[PATCH v2] mmc: core: Fix the HPI execution sequence

2012-04-19 Thread Venkatraman S
of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- v1-v2: Fix

[RFC PATCH 00/11] [FS, MM, block, MMC]: eMMC High Priority Interrupt Feature

2012-04-18 Thread Venkatraman S
/3.4/foreground-hpiv1 Ilan Smith (3): fs: Add demand paging markers to filesystem mm: Add page swapping markers to memory management block: Expedite DMPG and SWAPIN requests ahead of the queue Venkatraman S (8): block: Add queue attributes to manage dpmg and swapin requests mmc: Add BKOPS

[RFC PATCH 03/11] block: Add queue attributes to manage dpmg and swapin requests

2012-04-18 Thread Venkatraman S
Add block queue properties to identify and manage demand paging and swap read requests differently. sysfs entries are included to enable or disable this feature at runtime. Signed-off-by: Venkatraman S svenk...@ti.com Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg

[RFC PATCH 06/11] mmc: core: Helper function for finding preemptible command

2012-04-18 Thread Venkatraman S
According to Table 30 in eMMC spec, only some commands can be preempted by HPI. Provide a helper function for the HPI procedure to identify if the command is preemptible. Signed-off-by: Venkatraman S svenk...@ti.com --- include/linux/mmc/core.h | 13 + 1 file changed, 13 insertions

[RFC PATCH 07/11] mmc: core: add preemptibility tracking fields to mmc command

2012-04-18 Thread Venkatraman S
Set a preemptibility command atrribute to MMC commands. This can be later used by write (multi block), trim etc for evaluating if a HPI is applicable. Note the starting time of executing a command so a decision can be made if it is too late for preemption. Signed-off-by: Venkatraman S svenk

[RFC PATCH 11/11] mmc: block: Implement HPI invocation and handling for foreground requests

2012-04-18 Thread Venkatraman S
requires it to wait till the card is back to transfer state after completing the write. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/block.c | 126 ++ drivers/mmc/card/queue.h |1 + 2 files changed, 117 insertions(+), 10

[RFC PATCH 08/11] mmc: core: Add MMC abort interface

2012-04-18 Thread Venkatraman S
etc. The implementation is controller dependant Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core/core.c |8 include/linux/mmc/host.h |1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 6cefa01..1963305

[RFC PATCH 10/11] mmc: core: Utility function for mmc preemption sequence

2012-04-18 Thread Venkatraman S
Add a routine to invoke hpi command after invoking host controller abort. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core/core.c | 15 +++ include/linux/mmc/core.h |2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc

[RFC PATCH 09/11] mmc: block: Detect HPI support in card and host controller

2012-04-18 Thread Venkatraman S
If both the card and host controller support HPI related operations, set a flag in MMC queue to remember it. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/block.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/card/block.c b

[RFC PATCH 05/11] mmc: Add BKOPS field offsets

2012-04-18 Thread Venkatraman S
Signed-off-by: Venkatraman S svenk...@ti.com --- include/linux/mmc/mmc.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h index b822a2c..ec2f195 100644 --- a/include/linux/mmc/mmc.h +++ b/include/linux/mmc/mmc.h @@ -280,6 +280,8 @@ struct

[RFC PATCH 01/11] fs: Add demand paging markers to filesystem

2012-04-18 Thread Venkatraman S
From: Ilan Smith ilan.sm...@sandisk.com Add attribute to identify demand paging requests. Mark readpages with demand paging attribute. Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- fs

[RFC PATCH 02/11] mm: Add page swapping markers to memory management

2012-04-18 Thread Venkatraman S
From: Ilan Smith ilan.sm...@sandisk.com Add attribute to identify swap page read requests. Mark swap read requests with swapin attributes. Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com

[RFC PATCH 04/11] block: Expedite DMPG and SWAPIN requests ahead of the queue

2012-04-18 Thread Venkatraman S
From: Ilan Smith ilan.sm...@sandisk.com When expedite_swapin and expedite_dmpg are set, move the requests ahead of the queue. Signed-off-by: Ilan Smith ilan.sm...@sandisk.com Signed-off-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- block/blk-core.c

[PATCH 1/3] mmc: omap_hsmmc: release correct resource

2012-04-18 Thread Venkatraman S
release_mem_region(). Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4254b6f..d15b149

[PATCH 2/3] mmc: omap_hsmmc: Add fclk frequency to debufs

2012-04-18 Thread Venkatraman S
From: Viswanath Puttagunta vi...@ti.com Add mmc functional clock frequency to list of internal state variables to display for debug. Signed-off-by: Viswanath Puttagunta vi...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |5 +++-- 1 file changed, 3

[PATCH 3/3] mmc: omap_hsmmc: If probe fails, give out error messages

2012-04-18 Thread Venkatraman S
From: Rajendra Nayak rna...@ti.com Giving out debug messages even in case of probe failure seems not very useful. Make them error messages instead. Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com Cc: Chris Ball c...@laptop.org Cc: linux-mmc

[PATCH] mmc: omap_hsmmc: release correct resource

2012-04-18 Thread Venkatraman S
(). Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4254b6f..d15b149 100644

[PATCH] mmc: core: Fix the HPI execution sequence

2012-04-18 Thread Venkatraman S
of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core

[PATCH v2] mmc: core: Fix the HPI execution sequence

2012-04-18 Thread Venkatraman S
of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- v1-v2: Fix

[PATCH 1/2] mmc: omap_hsmmc: Add fclk frequency to debufs

2012-04-18 Thread Venkatraman S
From: Viswanath Puttagunta vi...@ti.com Add mmc functional clock frequency to list of internal state variables to display for debug. Signed-off-by: Viswanath Puttagunta vi...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- v1 - v2: Restored indentation to be consistent

[PATCH v2] mmc: core: Fix the HPI execution sequence

2012-04-17 Thread Venkatraman S
of sending the command itself. Specify the default timeout for the actual sending of HPI command, and then use OUT_OF_INTERRUPT_TIME to wait for the transition out of PRG state. Reported-by: Alex Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com CC: Namjae Jeon linkinj

[PATCH 0/4] mmc: core and queue cleanups

2012-04-13 Thread Venkatraman S
The first 3 are straight forward / trivial fixes. The last one is a functional change on how HPI should be invoked on the card. This is required for my future foreground HPI series that'll follow. Also available at git://github.com/svenkatr/linux.git my/mmc/cleanups-v2 Venkatraman S (4

[PATCH 1/4] mmc: queue: rename mmc_request function

2012-04-13 Thread Venkatraman S
The name mmc_request is used for both the issue function and a data structure, which creates conflicts in symbol lookups in editors. Rename the function to mmc_request_fn Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/queue.c |4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 3/4] mmc: queue: remove redundant memsets

2012-04-13 Thread Venkatraman S
Not needed to memset, as they are pointers and are assigned to proper values in the next line anyway. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/card/queue.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index

[PATCH 4/4] mmc: core: Send HPI only till it is successful

2012-04-13 Thread Venkatraman S
Lemberg alex.lemb...@sandisk.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/core/core.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index e541efb..ceabef5 100644

[PATCH 0/4] mmc: omap_hsmmc: Additional cleanups / features

2012-04-09 Thread Venkatraman S
* for debounce_clock Venkatraman S (1): mmc: omap_hsmmc: use spinlock IRQ safe variant drivers/mmc/host/omap_hsmmc.c | 78 +--- 1 file changed, 45 insertions(+), 33 deletions(-) -- 1.7.10.rc2 -- To unsubscribe from this list: send the line

[PATCH RESEND 1/4] mmc: omap_hsmmc: Enable Auto CMD12

2012-04-09 Thread Venkatraman S
From: Balaji T K balaj...@ti.com Enable Auto-CMD12 for multi block read/write on HSMMC Tested on OMAP4430, OMAP3430 and OMAP2430 SDP Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 15 --- 1 file changed

[PATCH RESEND 2/4] mmc: omap_hsmmc: add DDR support to omap_hsmmc

2012-04-09 Thread Venkatraman S
From: Balaji T K balaj...@ti.com Add Dual data rate support for omap_hsmmc Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers

[PATCH 3/4] mmc: omap_hsmmc: use spinlock IRQ safe variant

2012-04-09 Thread Venkatraman S
Prevent possible races between HSMMC/DMA IRQs and next requests. Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c

[PATCH 4/4] mmc: omap_hsmmc: Cleanup use of cpu_is_* for debounce_clock

2012-04-09 Thread Venkatraman S
the dbclk clock pointer to know if a valid debounce clock exists for the platform. Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 39 +-- 1 file changed, 17 insertions(+), 22

[PATCH 0/8][git pull] mmc: omap: Assorted fixes for 3.4 merge window

2012-03-16 Thread Venkatraman S
Chris, Here are a group of fixes posted by Felipe and Balaji for the OMAP hsmmc driver in the past few days. I've rebased them to the lastest mmc-next and posted them here again. These have also been tested on OMAP4 development platform. Please feel to apply directly or pull if that's

[PATCH v2 1/8] mmc: omap: Enable Auto CMD12

2012-03-16 Thread Venkatraman S
From: Balaji T K balaj...@ti.com Enable Auto-CMD12 for multi block read/write on HSMMC Tested on OMAP4430, OMAP3430 and OMAP2430 SDP Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 16 +--- 1 file changed

[PATCH v2 2/8] mmc: omap: add DDR support to omap_hsmmc

2012-03-16 Thread Venkatraman S
From: Balaji T K balaj...@ti.com Add Dual data rate support for omap_hsmmc Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers

[PATCH v2 3/8] mmc: omap: use runtime put sync in probe error patch

2012-03-16 Thread Venkatraman S
From: Balaji T K balaj...@ti.com pm_runtime_put_sync instead of autosuspend pm runtime API because iounmap(host-base) follows immediately. Reported-by: Rajendra Nayak rna...@ti.com Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com Cc: stable sta

[PATCH v2 4/8] mmc: omap: context save after enabling runtime pm

2012-03-16 Thread Venkatraman S
From: Balaji T K balaj...@ti.com call context save api after enabling runtime pm to make sure register access in context save api happens with clk enabled. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com Cc: stable sta...@vger.kernel.org --- drivers/mmc

[PATCH v2 5/8] mmc: host: omap_hsmmc: trivial cleanups

2012-03-16 Thread Venkatraman S
From: Felipe Balbi ba...@ti.com a bunch of non-functional cleanups to the omap_hsmmc driver. It basically decreases indentation level, drop unneded dereferences and drop unneded accesses to the platform_device structure. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Venkatraman S

[PATCH v2 6/8] mmc: host: omap_hsmmc: make it behave well as a module

2012-03-16 Thread Venkatraman S
Balbi ba...@ti.com Signed-off-by: Venkatraman S svenk...@ti.com --- drivers/mmc/host/omap_hsmmc.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index c16c552..bcb8c5d 100644 --- a/drivers/mmc/host

  1   2   >