[PATCH 2/2] Documentation: bindings: add description of phy for sdhci-of-arasan

2015-09-11 Thread Shawn Lin
This patch adds phys and phy-names for sdhci-of-arasan as optional properties, and details the example as well. Signed-off-by: Shawn Lin --- Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation

[PATCH 2/2] ARM: dts: support Highspeed for rk3066a platform

2015-09-11 Thread Shawn Lin
Add cap-sd-highspeed and cap-mmc-highspeed for rk3066a platform to make sd cards running faster. Signed-off-by: Shawn Lin --- arch/arm/boot/dts/rk3066a.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi index 946f187

[PATCH 1/2] ARM: dts: support Highspeed for rk3188-radxarock

2015-09-11 Thread Shawn Lin
Add cap-sd-highspeed and cap-mmc-highspeed for rk3188-radxarock board to make sd cards running faster. Signed-off-by: Shawn Lin --- arch/arm/boot/dts/rk3188-radxarock.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm

Re: [PATCH] staging: ion: fix corruption of ion_import_dma_buf

2015-09-10 Thread Shawn Lin
在 2015/9/11 0:44, Laura Abbott 写道: On 09/09/2015 10:41 PM, Colin Cross wrote: On Wed, Sep 9, 2015 at 10:19 AM, Laura Abbott wrote: (adding Colin and John) On 09/09/2015 12:41 AM, Shawn Lin wrote: we found this issue but still exit in lastest kernel. Simply keep ion_handle_create under

[PATCH] staging: ion: fix corruption of ion_import_dma_buf

2015-09-09 Thread Shawn Lin
? selinux_file_ioctl+0x47/0xf0 [<80a227a8>] SyS_ioctl+0x58/0x80 [<80fb45e8>] syscall_call+0x7/0x7 [<80fb>] ? mmc_do_calc_max_discard+0xab/0xe4 Fixes: 83271f626 ("ion: hold reference to handle...") Signed-off-by: Shawn Lin --- drivers/staging/android/ion/io

[RFC] Generic PHY interface extention for dynamic configuration

2015-09-08 Thread Shawn Lin
y I'm writing some code for supporting emmc controller's phy. And sometimes it indeed need to modify the phy's configuration. But I have no idea about how to deal with it in current framework. So I send this RFC to you and mailing. Thanks. -- Best Regards Shawn Lin -- To u

[PATCH] input: touchscreen: use of_property_read_bool()

2015-09-07 Thread Shawn Lin
Use more compact of_property_read_bool() calls instead of the of_find_property() calls. Signed-off-by: Shawn Lin --- drivers/input/touchscreen/mms114.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114

[PATCH] input: keyboard: use of_property_read_bool()

2015-09-07 Thread Shawn Lin
Use more compact of_property_read_bool() calls instead of the of_find_property() calls. Signed-off-by: Shawn Lin --- drivers/input/keyboard/tegra-kbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra

[PATCH v4 09/10] snd: dmaengine-pcm: add snd_dmaengine_pcm_get_quirks interface

2015-09-05 Thread Shawn Lin
Add snd_dmaengine_pcm_get_quirks for I2S devices to query dma controller's quirks if they need it to make special workaround due to broken dma controller design Signed-off-by: Shawn Lin --- Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None sound/soc/soc-ge

[PATCH v4 05/10] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform

2015-09-05 Thread Shawn Lin
Pl330 integrated in rk3xxx platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v4: - remove rockchip,i2s-broken-burst-len and rockchip,spi-b

[PATCH v4 07/10] DMA: pl330: implement dmaengine_get_quirks hook

2015-09-05 Thread Shawn Lin
By adding this function, slave device can query quirks from pl330 if they need special settings for dmaengine. Signed-off-by: Shawn Lin --- Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None drivers/dma/pl330.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v4 10/10] ASoC: rockchip_i2s: modify DMA max burst to 1

2015-09-05 Thread Shawn Lin
' platform cannot support DMAFLUSHP instruction which make dma to flush the req of non-aligned or non-multiple of what we set before. The saftest way is to set dma max burst to 1. Signed-off-by: Yiwei Cai Fixes: 4495c89fc ("ASoC: add driver for Rockchip RK3xxx I2S") Signed-off-by

[PATCH v4 06/10] dmaengine: add API for getting dma controller's quirk

2015-09-05 Thread Shawn Lin
Add dmaengine_get_quirks API for peripheral devices to query quirks if they need it to make special workaround due to broken dma controller design. Signed-off-by: Shawn Lin --- Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None include/linux/dmaengine.h | 9

[PATCH v4 08/10] spi: rockchip: modify DMA max burst to 1

2015-09-05 Thread Shawn Lin
dy ke Fixes: 64e36824b32b06 ("spi/rockchip: add driver for Rockchip...") Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Olof Johansson cc: Doug Anderson cc: Sonny Rao --- Changes in v4: - use dmaengine_get_quirks to get quirks Changes in v3: None Changes in v2: None Changes in v1:

[PATCH v4 04/10] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3288 platform

2015-09-05 Thread Shawn Lin
From: Addy Ke Pl330 integrated in rk3288 platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Olof Johansson cc: Sonny Rao Reviewed-by: Doug Anderson Reviewed-by: Sonn

[PATCH v4 02/10] Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp

2015-09-05 Thread Shawn Lin
Signed-off-by: Shawn Lin Reviewed-by: Doug Anderson Reviewed-by: Sonny Rao --- Changes in v4: None Changes in v3: - add Reviewed-by: Sonny Rao Changes in v2: - add Reviewed-by: Doug Anderson Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp" suggested by

[PATCH v4 03/10] DMA: pl330: add quirk for broken no flushp

2015-09-05 Thread Shawn Lin
From: Addy Ke This patch add "arm,pl330-broken-no-flushp" quirk to avoid execute DMAFLUSHP if Soc doesn't support it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Doug Anderson cc: Heiko Stuebner cc: Olof Johansson Reviewed-by: Sonny Rao --- Changes in v4: Non

[PATCH v4 01/10] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-09-05 Thread Shawn Lin
From: Boojin Kim This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-by: Sonny Rao --- Changes in v4: None Changes in v3

[PATCH v4 0/10] Fix broken DMAFLUSHP on Rockchips platform

2015-09-05 Thread Shawn Lin
orm spi: rockchip: modify DMA max burst to 1 Boojin Kim (1): DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit Shawn Lin (5): Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform

[PATCH v3] clk: rockchip: reset init state before mmc card initialization

2015-09-03 Thread Shawn Lin
to that of identification mode in kernel stage. Anyway, we can't force all bootloaders to reset tuning phase and degree setting before into kernel. Simply reset it in rockchip_clk_register_mmc. Signed-off-by: Shawn Lin Reviewed-by: Heiko Stuebner --- Changes in v3: - remove the function call -

Re: [PATCH v3 8/9] spi: rockchip: modify DMA max burst to 1

2015-09-03 Thread Shawn Lin
On 2015/9/4 1:45, Mark Brown wrote: On Thu, Sep 03, 2015 at 09:41:43PM +0800, Shawn Lin wrote: On 2015/9/3 20:54, Mark Brown wrote: If this is a quirk of the DMA controller why is it being fixed with a property specific to the SPI controller? Can't the DMA controller just override the

Re: [PATCH v2] clk: rockchip: reset init state before mmc card initialization

2015-09-03 Thread Shawn Lin
在 2015/9/4 3:07, Heiko Stuebner 写道: Am Dienstag, 25. August 2015, 08:34:36 schrieb Shawn Lin: mmc host controller's IO input/output timing is unpredictable if bootloader execute tuning for HS200 mode. It might make kernel failed to initialize mmc card in identification mode. The root cau

Re: [PATCH v2] clk: rockchip: reset init state before mmc card initialization

2015-09-03 Thread Shawn Lin
On 2015/8/25 8:34, Shawn Lin wrote: mmc host controller's IO input/output timing is unpredictable if bootloader execute tuning for HS200 mode. It might make kernel failed to initialize mmc card in identification mode. The root cause is tuning phase and degree setting for HS200 mode in bootl

Re: [PATCH v3 8/9] spi: rockchip: modify DMA max burst to 1

2015-09-03 Thread Shawn Lin
On 2015/9/3 20:54, Mark Brown wrote: On Tue, Sep 01, 2015 at 05:58:44PM +0800, Shawn Lin wrote: Generic dma controller on Rockchips' platform cannot support DMAFLUSHP instruction which make dma to flush the req of non-aligned or non-multiple of what we need. That will cause an unrecove

Re: [RFC 3/3] mmc: sdhci-pxav3: Add ->voltage_switch callback support

2015-09-02 Thread Shawn Lin
match = of_match_device(of_match_ptr(sdhci_pxav3_of_match), &pdev->dev); if (match) { ret = mmc_of_parse(host->mmc); -- Best Regards Shawn Lin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v3 9/9] ASoC: rockchip_i2s: modify DMA max burst to 1

2015-09-01 Thread Shawn Lin
) Signed-off-by: Shawn Lin cc: Addy Ke cc: Jianqun Xu cc: Heiko Stuebner cc: Olof Johansson cc: Doug Anderson cc: Sonny Rao --- Changes in v3: None Changes in v2: None Changes in v1: None sound/soc/rockchip/rockchip_i2s.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) dif

[PATCH v3 8/9] spi: rockchip: modify DMA max burst to 1

2015-09-01 Thread Shawn Lin
dy ke Fixes: 64e36824b32b06 ("spi/rockchip: add driver for Rockchip...") Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Olof Johansson cc: Doug Anderson cc: Sonny Rao --- Changes in v3: None Changes in v2: None Changes in v1: None drivers/spi/spi-rockchip.c | 16 ++--

[PATCH v3 6/9] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3288 platform

2015-09-01 Thread Shawn Lin
From: Addy Ke Pl330 integrated in rk3288 platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. Also we add rockchip,i2s-broken-burst-len and rockchip,spi-broken-burst-len to fix this problem. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc:

[PATCH v3 7/9] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform

2015-09-01 Thread Shawn Lin
Pl330 integrated in rk3xxx platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. And add rockchip,spi-broken-burst-len for spi. Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v3: None Changes

[PATCH v3 4/9] Documentation: rockchip-i2s: add description of rockchip,i2s-broken-burst-len

2015-09-01 Thread Shawn Lin
Signed-off-by: Shawn Lin cc: Addy Ke cc: Jianqun Xu cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson cc: Sonny Rao --- Changes in v3: None Changes in v2: None Changes in v1: None Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 4 1 file changed, 4 insertions

[PATCH v3 3/9] Documentation: spi-rockchip: add description of rockchip,spi-broken-burst-len

2015-09-01 Thread Shawn Lin
Signed-off-by: Shawn Lin cc: Addy Ke cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson cc: Sonny Rao --- Changes in v3: None Changes in v2: None Changes in v1: None Documentation/devicetree/bindings/spi/spi-rockchip.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v3 5/9] DMA: pl330: add quirk for broken no flushp

2015-09-01 Thread Shawn Lin
From: Addy Ke This patch add "arm,pl330-broken-no-flushp" quirk to avoid execute DMAFLUSHP if Soc doesn't support it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Doug Anderson cc: Heiko Stuebner cc: Olof Johansson Reviewed-by: Sonny Rao --- Changes in v3: -

[PATCH v3 2/9] Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp

2015-09-01 Thread Shawn Lin
Signed-off-by: Shawn Lin Reviewed-by: Doug Anderson Reviewed-by: Sonny Rao --- Changes in v3: - add Reviewed-by: Sonny Rao Changes in v2: - add Reviewed-by: Doug Anderson Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp" suggested by Krzysztof. Doc

[PATCH v3 1/9] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-09-01 Thread Shawn Lin
From: Boojin Kim This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-by: Sonny Rao --- Changes in v3: - add Sunny'

[PATCH v3 0/9] Fix broken DMAFLUSHP on Rockchips platform

2015-09-01 Thread Shawn Lin
(3): DMA: pl330: add quirk for broken no flushp ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3288 platform spi: rockchip: modify DMA max burst to 1 Boojin Kim (1): DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit Shawn Lin (4): Documentation: arm-pl330:

Re: [PATCH v2 0/5] Fix broken DMAFLUSHP on Rockchips platform

2015-08-31 Thread Shawn Lin
在 2015/9/1 5:40, Sonny Rao 写道: On Thu, Aug 27, 2015 at 5:36 PM, Shawn Lin wrote: The purpose of the DMAFLUSHP instruction: - Tell the peripheral to clear its status and control registers. - Send a message to the peripheral to resend its level status. There are 3 timings described in PL330

Re: [PATCH 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-28 Thread Shawn Lin
在 2015/8/29 2:19, Sonny Rao 写道: On Thu, Aug 27, 2015 at 6:28 AM, Shawn Lin wrote: 在 2015/8/27 20:57, Krzysztof Kozlowski 写道: 2015-08-27 17:48 GMT+09:00 Shawn Lin : This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy

[PATCH v2] mmc: core: fix race condition in mmc_wait_data_done

2015-08-28 Thread Shawn Lin
ion, it can avoid this race condition. Fixes: 2220eedfd7ae ("mmc: fix async request mechanism ") Signed-off-by: Jialing Fu Signed-off-by: Shawn Lin Tested-by: Shawn Lin --- Changes in v2: - add fixes tag drivers/mmc/core/core.c | 6 -- 1 file changed, 4 insertions(+)

Re: [RESEND PATCH] mmc: core: fix race condition in mmc_wait_data_done

2015-08-28 Thread Shawn Lin
trange that no one had captured it before you did. Anyway, I will add a fixes tag and send v2 ASAP. :) Kind regards Uffe -- Best Regards Shawn Lin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org M

Re: [RESEND PATCH] mmc: core: fix race condition in mmc_wait_data_done

2015-08-28 Thread Shawn Lin
在 2015/8/28 16:55, Ulf Hansson 写道: On 28 August 2015 at 05:25, Shawn Lin wrote: On 2015/8/28 11:13, Shawn Lin wrote: From: Jialing Fu The following panic is captured in ker3.14, but the issue still exists in latest kernel

Re: [RESEND PATCH] mmc: core: fix race condition in mmc_wait_data_done

2015-08-27 Thread Shawn Lin
On 2015/8/28 11:13, Shawn Lin wrote: From: Jialing Fu The following panic is captured in ker3.14, but the issue still exists in latest kernel. - [ 20.738217] c0 3136 (Compiler) Unable to handle kernel NULL pointer

[RESEND PATCH] mmc: core: fix race condition in mmc_wait_data_done

2015-08-27 Thread Shawn Lin
ion, it can avoid this race condition. Signed-off-by: Jialing Fu Tested-by: Shawn Lin --- drivers/mmc/core/core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 664b617..0520064 100644 --- a/drivers/mmc/

[PATCH v2 2/5] DMA: pl330: add quirk for broken no flushp

2015-08-27 Thread Shawn Lin
From: Addy Ke This patch add "arm,pl330-broken-no-flushp" quirk to avoid execute DMAFLUSHP if Soc doesn't support it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Doug Anderson cc: Heiko Stuebner cc: Olof Johansson --- Changes in v2: - amend the author - amend Olof

[PATCH v2 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-27 Thread Shawn Lin
From: Boojin Kim This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v2: - amend the author - amend Olof's

[PATCH v2 4/5] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3288 platform

2015-08-27 Thread Shawn Lin
From: Addy Ke Pl330 integrated in rk3288 platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Olof Johansson Reviewed-by: Doug Anderson --- Changes in v2: - amend the a

[PATCH v2 5/5] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform

2015-08-27 Thread Shawn Lin
Pl330 integrated in rk3xxx platform doesn't support DMAFLUSHP function. So we add arm,pl330-broken-no-flushp quirk for it. Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v2: None Changes in v1: - rename broken-no-flushp to "arm,pl

[PATCH v2 3/5] Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp

2015-08-27 Thread Shawn Lin
Signed-off-by: Shawn Lin Reviewed-by: Doug Anderson --- Changes in v2: - add Reviewed-by: Doug Anderson - reorder this patch before the usage of the quirk Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp" suggested by Krzysztof. Documentation/devicetree/bi

[PATCH v2 0/5] Fix broken DMAFLUSHP on Rockchips platform

2015-08-27 Thread Shawn Lin
rk3288 platform Boojin Kim (1): DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit Shawn Lin (2): Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform .../devicetree/bindings/dma/

Re: [PATCH v1 3/5] ARM: dts: Add arm, pl330-broken-no-flushp quirk for rk3288 platform

2015-08-27 Thread Shawn Lin
On 2015/8/28 0:52, Doug Anderson wrote: Hi, On Thu, Aug 27, 2015 at 7:24 AM, Shawn Lin wrote: From: Addy Ke Looks like you just added the "From" here. I think that's fine, but better to set the author so you get the right cover letter... Pl330 integrated in rk3288 p

[PATCH v1 5/5] Documentation: arm-pl330: add description of arm,pl330-broken-no-flushp

2015-08-27 Thread Shawn Lin
Signed-off-by: Shawn Lin --- Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp" suggested by Krzysztof. Documentation/devicetree/bindings/dma/arm-pl330.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/arm-pl

[PATCH v1 4/5] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3xxx platform

2015-08-27 Thread Shawn Lin
Pl330 integrated in rk3xxx platform doesn't support DMAFLUSHP function. So we add broken-no-flushp quirk for it. Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp"

[PATCH v1 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-27 Thread Shawn Lin
From: Boojin Kim This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v1: - rename broken-no-flushp to "arm,

[PATCH v1 2/5] DMA: pl330: add quirk for broken no flushp

2015-08-27 Thread Shawn Lin
From: Addy Ke This patch add "arm,pl330-broken-no-flushp" quirk to avoid execute DMAFLUSHP if Soc doesn't support it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v1: - rename broken-no-flushp to &q

[PATCH v1 3/5] ARM: dts: Add arm,pl330-broken-no-flushp quirk for rk3288 platform

2015-08-27 Thread Shawn Lin
From: Addy Ke Pl330 integrated in rk3288 platform doesn't support DMAFLUSHP function. So we add broken-no-flushp quirk for it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- Changes in v1: - rename broken-no-flushp to

[PATCH v1 0/5] Fix broken DMAFLUSHP on Rockchips platform

2015-08-27 Thread Shawn Lin
chip Soc default value of GRF_PERIDMAC_CON0[2:1] is b01. To support brust transfer, these bits should not be changed in bootloader. Changes in v1: - rename broken-no-flushp to "arm,pl330-broken-no-flushp" suggested by Krzysztof. - add From original author. - remove Sunny's tag Sh

Re: [PATCH 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-27 Thread Shawn Lin
在 2015/8/27 20:57, Krzysztof Kozlowski 写道: 2015-08-27 17:48 GMT+09:00 Shawn Lin : This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof

Re: [PATCH 5/5] Documentation: arm-pl330: add description of broken-no-flushp

2015-08-27 Thread Shawn Lin
On 2015/8/27 20:59, Krzysztof Kozlowski write: 2015-08-27 17:49 GMT+09:00 Shawn Lin : Signed-off-by: Shawn Lin --- Documentation/devicetree/bindings/dma/arm-pl330.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/arm-pl330.txt b/Documentation

Re: [PATCH 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-27 Thread Shawn Lin
-- This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-and-tested-by: Sonny Rao --- drivers/d

[PATCH 4/5] ARM: dts: Add broken-no-flushp quirk for rk3xxx platform

2015-08-27 Thread Shawn Lin
Pl330 integrated in rk3xxx platform doesn't support DMAFLUSHP function. So we add broken-no-flushp quirk for it. Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson --- arch/arm/boot/dts/rk3xxx.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arc

[PATCH 5/5] Documentation: arm-pl330: add description of broken-no-flushp

2015-08-27 Thread Shawn Lin
Signed-off-by: Shawn Lin --- Documentation/devicetree/bindings/dma/arm-pl330.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/arm-pl330.txt b/Documentation/devicetree/bindings/dma/arm-pl330.txt index 2675658..0f19268 100644 --- a/Documentation

[PATCH 3/5] ARM: dts: Add broken-no-flushp quirk for rk3288 platform

2015-08-27 Thread Shawn Lin
Pl330 integrated in rk3288 platform doesn't support DMAFLUSHP function. So we add broken-no-flushp quirk for it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-and-tested-by: Sonny Rao --- arch/arm/boot/dts/rk3288.dts

[PATCH 0/5] Fix broken DMAFLUSHP on Rockchips platform

2015-08-27 Thread Shawn Lin
chip Soc default value of GRF_PERIDMAC_CON0[2:1] is b01. To support brust transfer, these bits should not be changed in bootloader. Shawn Lin (5): DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit DMA: pl330: add quirk for broken no flushp ARM: dts: Add broken-no-flushp

[PATCH 1/5] DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit

2015-08-27 Thread Shawn Lin
This patch adds to support burst mode for dev-to-mem and mem-to-dev transmit. Signed-off-by: Boojin Kim Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-and-tested-by: Sonny Rao --- drivers/dma/pl330.c | 18

[PATCH 2/5] DMA: pl330: add quirk for broken no flushp

2015-08-27 Thread Shawn Lin
This patch add "broken-no-flushp" quirk to avoid execute DMAFLUSHP if Soc doesn't support it. Signed-off-by: Addy Ke Signed-off-by: Shawn Lin cc: Heiko Stuebner cc: Doug Anderson cc: Olof Johansson Reviewed-and-tested-by: Sonny Rao --- drivers/d

Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23

2015-08-26 Thread Shawn Lin
-- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Shawn Lin -- To unsubscribe from this list: send the line "un

[PATCH v2] clk: rockchip: reset init state before mmc card initialization

2015-08-24 Thread Shawn Lin
to that of identification mode in kernel stage. Anyway, we can't force all bootloaders to reset tuning phase and degree setting before into kernel. Simply reset it in rockchip_clk_register_mmc. Signed-off-by: Shawn Lin --- Changes in v2: - rename to rockchip_clk_mmc_reset - simplifying the cod

Re: [RESEND PATCH] clk: rockchip: disable init state before mmc card initialization

2015-08-24 Thread Shawn Lin
On 2015/8/24 18:01, Heiko Stuebner wrote: Hi Shawn, Am Montag, 24. August 2015, 16:27:43 schrieb Shawn Lin: mmc host controller's IO input/output timing is unpredictable if bootloader execute tuning for HS200 mode. It might make kernel failed to initialize mmc card in identification mode

[RESEND PATCH] clk: rockchip: disable init state before mmc card initialization

2015-08-24 Thread Shawn Lin
to that of identification mode in kernel stage. Anyway, we can't force all bootloaders to disable tuning phase and degree setting before into kernel. Simply disable it in rockchip_clk_register_mmc. Signed-off-by: Shawn Lin --- drivers/clk/rockchip/clk-mmc-phase.c | 20 1 f

[PATCH] clk: rockchip: disable init state before mmc card initialization

2015-08-24 Thread Shawn Lin
to that of identification mode in kernel stage. Anyway, we can't force all bootloaders to disable tuning phase and degree setting before into kernel. Simply disable it in rockchip_clk_register_mmc. Signed-off-by: Shawn Lin --- drivers/clk/rockchip/clk-mmc-phase.c | 20 1 f

[RFC PATCH v7 10/10] arm: zx_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: No

[RFC PATCH v7 08/10] arm: lpc18xx_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Joachim Eastwood --- Changes in v7: None Changes in v6: None Changes i

[RFC PATCH v7 09/10] arm: multi_v7_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: No

[RFC PATCH v7 07/10] arm: hisi_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Wei Xu --- Changes in v7: None Changes in v6: None Changes in v5: None

[RFC PATCH v7 03/10] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac

2015-08-23 Thread Shawn Lin
synopsys-dw-mshc supports three types of transfer mode. We add bindings and description for how to use them at runtime. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None .../devicetree/bindings

[RFC PATCH v7 05/10] arc: axs10x_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Vineet Gupta --- Changes in v7: None Changes in v6: None Changes i

[RFC PATCH v7 04/10] mips: pistachio_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Govindraj Raja Acked-by: Ralf Baechle --- Changes in v7: None Changes i

[RFC PATCH v7 06/10] arm: exynos_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-23 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Krzysztof Kozlowski --- Changes in v7: None Changes in v6: None Cha

[RFC PATCH v7 02/10] mmc: dw_mmc: use macro for HCON register operations

2015-08-23 Thread Shawn Lin
This patch add some macros for HCON register operations to make code more readable. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mmc/host/dw_mmc.c | 6 +++--- drivers/mmc/host

[RFC PATCH v7 0/10] Add external dma support for Synopsys MSHC

2015-08-23 Thread Shawn Lin
itle of cover letter - reuse some code for reducing code size Changes in v3: - choose transfer mode at runtime - remove all CONFIG_MMC_DW_IDMAC config option - add supports-idmac property for some platforms Changes in v2: - Fix typo of dev_info msg - remove unused dmach from declarat

[RFC PATCH v7 01/10] mmc: dw_mmc: Add external dma interface support

2015-08-23 Thread Shawn Lin
with idmac mode. Signed-off-by: Shawn Lin --- Changes in v7: - rebased on Ulf's next - combine condition state - elaborate more about DMA_INTERFACE - define some macro for DMA_INERFACE value - spilt HCON ops' changes into another patch Changes in v6: - add trans_mode condition for IDMAC

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-21 Thread Shawn Lin
On 2015/8/21 15:38, Jaehoon Chung wrote: On 08/21/2015 04:27 PM, Shawn Lin wrote: On 2015/8/21 14:35, Jaehoon Chung wrote: On 08/21/2015 03:30 PM, Shawn Lin wrote: On 2015/8/21 14:27, Jaehoon Chung wrote: Hi, Shawn. Is this based on Ulf's repository? no, it's based on "htt

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-21 Thread Shawn Lin
On 2015/8/21 14:35, Jaehoon Chung wrote: On 08/21/2015 03:30 PM, Shawn Lin wrote: On 2015/8/21 14:27, Jaehoon Chung wrote: Hi, Shawn. Is this based on Ulf's repository? no, it's based on "https://github.com/jh80chung/dw-mmc.git tags/dw-mmc-for-ulf-v4.2" :) Oh..I

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-20 Thread Shawn Lin
On 2015/8/21 14:27, Jaehoon Chung wrote: Hi, Shawn. Is this based on Ulf's repository? no, it's based on "https://github.com/jh80chung/dw-mmc.git tags/dw-mmc-for-ulf-v4.2" :) On 08/20/2015 05:43 PM, Shawn Lin wrote: DesignWare MMC Controller can supports two types o

[RFC PATCH v6 9/9] arm: zx_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: No

[RFC PATCH v6 7/9] arm: lpc18xx_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Joachim Eastwood --- Changes in v6: None Changes in v5: None Changes i

[RFC PATCH v6 8/9] arm: multi_v7_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: No

[RFC PATCH v6 4/9] arc: axs10x_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Vineet Gupta --- Changes in v6: None Changes in v5: None Changes i

[RFC PATCH v6 5/9] arm: exynos_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Krzysztof Kozlowski --- Changes in v6: None Changes in v5: None Cha

[RFC PATCH v6 6/9] arm: hisi_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Wei Xu --- Changes in v6: None Changes in v5: None Changes in v4: None

[RFC PATCH v6 2/9] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac

2015-08-20 Thread Shawn Lin
synopsys-dw-mshc supports three types of transfer mode. We add bindings and description for how to use them at runtime. Signed-off-by: Shawn Lin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None .../devicetree/bindings/mmc/synopsys-dw

[RFC PATCH v6 3/9] mips: pistachio_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-20 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Govindraj Raja Acked-by: Ralf Baechle --- Changes in v6: None Changes i

[RFC PATCH v6 0/9] Add external dma support for Synopsys MSHC

2015-08-20 Thread Shawn Lin
runtime - remove all CONFIG_MMC_DW_IDMAC config option - add supports-idmac property for some platforms Changes in v2: - Fix typo of dev_info msg - remove unused dmach from declaration of dw_mci_dma_slave Shawn Lin (9): mmc: dw_mmc: Add external dma interface support Documentation: syno

[RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-20 Thread Shawn Lin
with idmac mode. Signed-off-by: Shawn Lin --- Changes in v6: - add trans_mode condition for IDMAC initialization suggested by Heiko - re-test my patch on rk3188 platform and update commit msg - update performance of pio vs edmac in cover letter Changes in v5: - add the title of cover letter - fix

Re: [RFC PATCH v1] mmc: sdhci-of-arasan: Add the support for sdhci-5.1

2015-08-17 Thread Shawn Lin
Hi Ulf, On 2015/8/12 13:07, Michal Simek wrote: +linux-mmc On 08/11/2015 04:53 PM, Michal Simek wrote: On 08/11/2015 09:46 AM, Shawn Lin wrote: This patch adds the compatible string in sdhci-of-arasan.c to support sdhci-arasan5.1 version of controller. No documented controller IP version is

Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23

2015-08-16 Thread Shawn Lin
lags = MMC_RSP_R1 | MMC_CMD_AC; brq->mrq.sbc = &brq->sbc; } Thanks. Shawn memset(brq, 0, sizeof(struct mmc_blk_request)); brq->mrq.cmd = &brq->cmd; -- Shawn Lin N�r��y���b�X��ǧv�^�)޺{.n�+{��g"��^n�r���z���h&

Re: [RFC PATCH v5 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-16 Thread Shawn Lin
在 2015/8/17 5:10, Doug Anderson 写道: Heiko, On Fri, Aug 14, 2015 at 3:13 PM, Heiko Stübner wrote: Hi Shawn, Am Freitag, 14. August 2015, 16:34:35 schrieb Shawn Lin: DesignWare MMC Controller can supports two types of DMA mode: external dma and internal dma. We get a RK312x platform

Re: [RFC PATCH v5 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-16 Thread Shawn Lin
在 2015/8/15 6:13, Heiko Stübner 写道: Hi Shawn, Am Freitag, 14. August 2015, 16:34:35 schrieb Shawn Lin: DesignWare MMC Controller can supports two types of DMA mode: external dma and internal dma. We get a RK312x platform integrated dw_mmc and ARM pl330 dma controller. This patch add edmac ops

[RFC PATCH v5 4/9] arc: axs10x_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-14 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin Acked-by: Vineet Gupta --- Changes in v5: None Changes in v4: None Changes i

[RFC PATCH v5 9/9] arm: zx_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-14 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: N

[RFC PATCH v5 8/9] arm: multi_v7_defconfig: remove CONFIG_MMC_DW_IDMAC

2015-08-14 Thread Shawn Lin
DesignWare MMC Controller's transfer mode should be decided at runtime instead of compile-time. So we remove this config option and read dw_mmc's register to select DMA master. Signed-off-by: Shawn Lin --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: N

<    4   5   6   7   8   9   10   >