Re: [PATCH v2 0/9] fix max discard sectors limit

2013-04-22 Thread Namjae Jeon
2013/4/23, Kent Overstreet : > On Sat, Apr 20, 2013 at 01:40:02AM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> linux-v3.8-rc1 and later support for plug for blkdev_issue_discard with >> commit 0cfbcafcae8b7364b5fa96c2b26ccde7a3a296a9 >> (block: add plug for blkdev_issue_discard ) >> >> For

Re: [PATCH 0/3] ARM: Kirkwood: Add DT support for (eSATA) Sheevaplug

2013-04-22 Thread Andrew Lunn
On Mon, Apr 22, 2013 at 09:54:57PM +0200, Simon Baatz wrote: > These patches add DT support for the Sheevaplugs by Globalscale > Technologies. There exists two versions, one with an eSATA port and > one without. > > Surprisingly, the conversion was not straight forward. In the eSATA > version (bo

Re: [PATCH v3 1/6] at_hdmac: move to generic DMA binding

2013-04-22 Thread Vinod Koul
On Mon, Apr 22, 2013 at 12:22:32PM +0200, Nicolas Ferre wrote: > On 04/19/2013 11:11 AM, ludovic.desroc...@atmel.com : > > From: Ludovic Desroches > > +#ifdef CONFIG_OF > > +static bool at_dma_filter(struct dma_chan *chan, void *slave) this is not defined for else case here. Also this could be CO

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Thomas Petazzoni
Dear Chris Ball, On Mon, 22 Apr 2013 17:50:17 -0400, Chris Ball wrote: > On Mon, Apr 22 2013, Andrew Lunn wrote: > >> Nothing else really jumps out though. Where either of these what you > >> were thinking of? > > > > http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/138514.htm

Re: [PATCH] MMC: tmio: fix unbalanced power-on calls with clock-gating enabled

2013-04-22 Thread Laurent Pinchart
Hi Guennadi, Thanks for the patch. On Monday 22 April 2013 16:14:40 Guennadi Liakhovetski wrote: > With MMC clock gating enabled the MMC core currently calls MMC host driver's > .set_ios() method with .power_mode == MMC_POWER_ON and the clock value set > either to 0 or to the target rate. The tmi

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Jason Cooper
On Mon, Apr 22, 2013 at 11:45:43PM +0200, Andrew Lunn wrote: > > > > The core function mmc_of_parse() (new in 3.9) will do all of this DT > > > > parsing for you, and will also take care of the driver's later calls > > > > to mmc_gpio_request_{cd,wp}(). Could you try using that function > > > > in

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Chris Ball
Hi, On Mon, Apr 22 2013, Andrew Lunn wrote: >> Nothing else really jumps out though. Where either of these what you >> were thinking of? > > http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/138514.html > > and > > http://lists.infradead.org/pipermail/linux-arm-kernel/2012-Decem

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Andrew Lunn
> > > The core function mmc_of_parse() (new in 3.9) will do all of this DT > > > parsing for you, and will also take care of the driver's later calls > > > to mmc_gpio_request_{cd,wp}(). Could you try using that function > > > instead, please? > > > > Hi Chris, Simon > > > > I have a vague recol

Re: [PATCH v2 0/9] fix max discard sectors limit

2013-04-22 Thread Kent Overstreet
On Sat, Apr 20, 2013 at 01:40:02AM +0900, Namjae Jeon wrote: > From: Namjae Jeon > > linux-v3.8-rc1 and later support for plug for blkdev_issue_discard with > commit 0cfbcafcae8b7364b5fa96c2b26ccde7a3a296a9 > (block: add plug for blkdev_issue_discard ) > > For example, > 1) DISCARD rq-1 with si

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Jason Cooper
On Mon, Apr 22, 2013 at 10:37:23PM +0200, Andrew Lunn wrote: > On Mon, Apr 22, 2013 at 04:03:15PM -0400, Chris Ball wrote: > > Hi Simon, > > > > On Mon, Apr 22 2013, Simon Baatz wrote: > > > diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c > > > index 145cdaf..d444efd 100644 > >

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Andrew Lunn
On Mon, Apr 22, 2013 at 04:03:15PM -0400, Chris Ball wrote: > Hi Simon, > > On Mon, Apr 22 2013, Simon Baatz wrote: > > diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c > > index 145cdaf..d444efd 100644 > > --- a/drivers/mmc/host/mvsdio.c > > +++ b/drivers/mmc/host/mvsdio.c > > @

[PATCH] mmc: block: Add MMC write packing statistics

2013-04-22 Thread Maya Erez
The write packing statistics are used for debug purposes, in order to get the amount of packing in different scenarios. The statistics also include the reason for stopping the creation of the packed request. Signed-off-by: Maya Erez diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.

Re: [PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Chris Ball
Hi Simon, On Mon, Apr 22 2013, Simon Baatz wrote: > diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c > index 145cdaf..d444efd 100644 > --- a/drivers/mmc/host/mvsdio.c > +++ b/drivers/mmc/host/mvsdio.c > @@ -691,6 +691,7 @@ static int __init mvsd_probe(struct platform_device *pdev

[PATCH 3/3] ARM: Kirkwood: Add DT support for Sheevaplug and Sheevaplug eSATA

2013-04-22 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/mach-kirkwood/Kconfig|7 +++ arch/arm/mach-kirkwood/Makefile |1 + arch/arm/mach-kirkwood/board-dt.c |4 arch/arm/mach-kirkwood/board-sheevaplug.c | 27 +++ arch/arm/mach-kirkwood

[PATCH 2/3] ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug

2013-04-22 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/boot/dts/Makefile|2 + arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | 97 + arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts | 40 + arch/arm/boot/dts/kirkwood-sheevaplug.dts | 43

[PATCH 0/3] ARM: Kirkwood: Add DT support for (eSATA) Sheevaplug

2013-04-22 Thread Simon Baatz
These patches add DT support for the Sheevaplugs by Globalscale Technologies. There exists two versions, one with an eSATA port and one without. Surprisingly, the conversion was not straight forward. In the eSATA version (board revision 1.3), the CD and WP pins are connected to GPIO lines, but I

[PATCH 1/3] mmc: mvsdio: Support inverted CD and WP GPIO lines

2013-04-22 Thread Simon Baatz
The slot-gpio helper functions allow to specify whether card detect and write protect GPIO lines are active high or active low. Since DT allows to specify active low/high for GPIO lines as well, we can simply initialize the flags for slot-gpio using the GPIO flags to support all cases. We need to

[PATCH] mmc: core: Fix select power class after resume

2013-04-22 Thread Fredrik Soderstedt
Use the saved values in card->ext_csd when selecting power class. By doing this the power class will be selected even if mmc_init_card is called with oldcard != NULL, which is the case after a suspend/resume. Today ext_csd is NULL if mmc_init_card is called with oldcard != NULL and power class wil

[PATCH] MMC: tmio: fix unbalanced power-on calls with clock-gating enabled

2013-04-22 Thread Guennadi Liakhovetski
With MMC clock gating enabled the MMC core currently calls MMC host driver's .set_ios() method with .power_mode == MMC_POWER_ON and the clock value set either to 0 or to the target rate. The tmio MMC driver then wrongly translates the latter calls to card slot power-on requests, even when the slot

Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

2013-04-22 Thread Chris Ball
Hi Neil, On Mon, Apr 22 2013, Neil Armstrong wrote: > Thanks for the reply, I was not aware of the mmc-utils tools. I think > the tool and the MMC_IOC_CMD interface should be documented in the kernel. Where do you think a good place for documentating the mmc tool would be, such that you would hav

Re: [PATCH v3 1/6] at_hdmac: move to generic DMA binding

2013-04-22 Thread Nicolas Ferre
On 04/19/2013 11:11 AM, ludovic.desroc...@atmel.com : > From: Ludovic Desroches > > Update at_hdmac driver to support generic DMA device tree binding. Devices > can still request channel with dma_request_channel() then it doesn't break > DMA for non DT boards. > > Signed-off-by: Ludovic Desroche

[PATCH] mmc: tmio: postpone controller reset during resume

2013-04-22 Thread Guennadi Liakhovetski
When resuming, the tmio_mmc_host_resume() function is run when the controller might still be powered down. Issuing a reset command to it at that time has no effect. This patch postpones resetting the controller until the first powering-up .set_ios() call. Reported-by: Nguyen Viet Dung Signed-off-

Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

2013-04-22 Thread Neil Armstrong
On 04/22/2013 06:55 AM, Namjae Jeon wrote: > 2013/4/19, Neil Armstrong : >> Since eMMC 4.3 a special boot mode operation was introduced to retrieve >> data from the eMMC device with a very simple procedure. Since the Linux >> kernel exports these device boot partitions, it may be useful to select >