Re: [linux-sunxi] [PATCH v3 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread Hans de Goede
Hi, On 08/12/2015 03:29 PM, Michal Suchanek wrote: The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over 350ms. This does not make mmc clock gating look like good option to have

Re: [linux-sunxi] CSR8510 A10 BLE dongle driver for A20 humming board

2015-08-12 Thread Dmitriy B.
2015-08-12 8:55 GMT+03:00 Nithin Chakravarthy nithin.mukthin...@gmail.com: here kernel log 6usb 5-1: new full-speed USB device number 2 using sw-ohci 3bluetooth: exports duplicate symbol baswap (owned by kernel) [ 94.643972] bluetooth: exports duplicate symbol baswap (owned by kernel)

[linux-sunxi] Re: [PATCH v4 2/2] mfd: axp20x: Add a cell for the usb power_supply part of the axp20x PMICs

2015-08-12 Thread Hans de Goede
Hi, On 11-08-15 16:18, Lee Jones wrote: On Sat, 08 Aug 2015, Hans de Goede wrote: Add a cell for the usb power_supply part of the axp20x PMICs. Note that this cell is only for the usb power_supply part and not the ac-power / battery-charger / rtc-backup-bat-charger bits. Depending on the

Re: [linux-sunxi] [PATCH] pinctrl: sun4i: add spdif to pin description.

2015-08-12 Thread Hans de Goede
Hi, On 12-08-15 07:31, Code Kipper wrote: On 11 August 2015 at 18:48, Chen-Yu Tsai w...@csie.org wrote: On Wed, Aug 12, 2015 at 12:19 AM, codekip...@gmail.com wrote: From: Marcus Cooper codekip...@gmail.com Signed-off-by: Marcus Cooper codekip...@gmail.com ---

Re: [linux-sunxi] Re: xen on sun7i successful

2015-08-12 Thread Ian Campbell
On Tue, 2015-08-11 at 03:39 -0700, ghl.b...@gmail.com wrote: On Tuesday, August 11, 2015 at 1:10:45 PM UTC+5:30, Ian Campbell wrote: On Mon, 2015-08-10 at 12:27 +0200, Michal Suchanek wrote: I assume that all allwinner core enable in hyp mode and following code checks for hyp

Re: [linux-sunxi] [PATCH] pinctrl: sun4i: add spdif to pin description.

2015-08-12 Thread Chen-Yu Tsai
On Wed, Aug 12, 2015 at 5:13 PM, Code Kipper codekip...@gmail.com wrote: On 12 August 2015 at 10:34, Hans de Goede hdego...@redhat.com wrote: Hi, On 12-08-15 07:31, Code Kipper wrote: On 11 August 2015 at 18:48, Chen-Yu Tsai w...@csie.org wrote: On Wed, Aug 12, 2015 at 12:19 AM,

Re: [linux-sunxi] [PATCH] pinctrl: sun4i: add spdif to pin description.

2015-08-12 Thread Code Kipper
On 12 August 2015 at 10:34, Hans de Goede hdego...@redhat.com wrote: Hi, On 12-08-15 07:31, Code Kipper wrote: On 11 August 2015 at 18:48, Chen-Yu Tsai w...@csie.org wrote: On Wed, Aug 12, 2015 at 12:19 AM, codekip...@gmail.com wrote: From: Marcus Cooper codekip...@gmail.com

Re: [linux-sunxi] [PATCH] pinctrl: sun4i: add spdif to pin description.

2015-08-12 Thread Hans de Goede
Hi, On 12-08-15 11:18, Chen-Yu Tsai wrote: On Wed, Aug 12, 2015 at 5:13 PM, Code Kipper codekip...@gmail.com wrote: On 12 August 2015 at 10:34, Hans de Goede hdego...@redhat.com wrote: Hi, On 12-08-15 07:31, Code Kipper wrote: On 11 August 2015 at 18:48, Chen-Yu Tsai w...@csie.org wrote:

[linux-sunxi] Re: [PATCH v4 2/2] mfd: axp20x: Add a cell for the usb power_supply part of the axp20x PMICs

2015-08-12 Thread Lee Jones
On Wed, 12 Aug 2015, Hans de Goede wrote: Hi, On 12-08-15 11:29, Lee Jones wrote: On Wed, 12 Aug 2015, Hans de Goede wrote: Hi, On 11-08-15 16:18, Lee Jones wrote: On Sat, 08 Aug 2015, Hans de Goede wrote: Add a cell for the usb power_supply part of the axp20x PMICs. Note that

[linux-sunxi] Re: [PATCH v4 2/2] mfd: axp20x: Add a cell for the usb power_supply part of the axp20x PMICs

2015-08-12 Thread Lee Jones
On Wed, 12 Aug 2015, Hans de Goede wrote: Hi, On 11-08-15 16:18, Lee Jones wrote: On Sat, 08 Aug 2015, Hans de Goede wrote: Add a cell for the usb power_supply part of the axp20x PMICs. Note that this cell is only for the usb power_supply part and not the ac-power / battery-charger /

Re: [linux-sunxi] MMC clock gating broken on a20

2015-08-12 Thread Olliver Schinagl
Actually, I've reverted hans's mmc: sunxi: Don't start commands while the card is busy and that makes it disapear as well. So it looks like that patch triggers the aggressiveness more? I'll apply your patch and undo the revert to see if that fixes the root issue. Olliver On 12-08-15

[linux-sunxi] Re: [PATCH v3 4/4] power: Add an axp20x-usb-power driver

2015-08-12 Thread Hans de Goede
Hi Sebastian, On 24-07-15 17:10, Sebastian Reichel wrote: Hi, On Fri, Jun 26, 2015 at 12:59:17PM +0200, Hans de Goede wrote: This adds a driver for the usb power_supply bits of the axp20x PMICs. I initially started writing my own driver, before coming aware of Bruno Prémont's excellent

[linux-sunxi] [PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

2015-08-12 Thread Michal Suchanek
The driver has open-coded test for SDIO cards. Use the mmc core provided MMC_QUIRK_BROKEN_CLK_GATING flag instead. As a bonus this may enable clock gating on SDIO cards that are known to work with it. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/mmc/host/dw_mmc.c | 33

[linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Michal Suchanek
When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc interface. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/mmc/host/sunxi-mmc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH resend 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread michal . suchanek
The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over 350ms. This does not make mmc clock gating look like good option to have on sunxi but the system should not crash with mmc

Re: [linux-sunxi] MMC clock gating broken on a20

2015-08-12 Thread Michal Suchanek
On 12 August 2015 at 13:55, Olliver Schinagl oliver+l...@schinagl.nl wrote: Actually, I've reverted hans's mmc: sunxi: Don't start commands while the card is busy and that makes it disapear as well. So it looks like that patch triggers the aggressiveness more? It probably inserts delays

[linux-sunxi] [PATCH 0/3] misc MMC fixes

2015-08-12 Thread Michal Suchanek
Hello, The first sunxi patch from this series was rejected on the basis that this clock gating functionality is obsolete and should be eventually removed. However, the function still exists in the current code and until removed it should be corrected to work properly. Turning off the clock may

[linux-sunxi] Re: [PATCH resend 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread Hans de Goede
Hi, On 12-08-15 14:23, michal.sucha...@ruk.cuni.cz wrote: The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over 350ms. This does not make mmc clock gating look like good option

Re: [linux-sunxi] MMC clock gating broken on a20

2015-08-12 Thread Michal Suchanek
Hello, On 12 August 2015 at 13:40, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey all, I'm noticing the exact same thing using hans's sunxi-wip from a few days ago. I did see a patch from you about this very issue I belive mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff but can't

Re: [linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Hans de Goede
Hi, On 12-08-15 14:23, Michal Suchanek wrote: When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc interface. Signed-off-by: Michal Suchanek hramr...@gmail.com In general this looks good, but I wonder how intensively this

Re: [linux-sunxi] Re: [PATCH resend 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread Olliver Schinagl
While I can't speak for Michal obviously, I left the debugging bit (in my v2 that i sent 2 minutes ago) as both you and Hans where content with it back then and both acked it. Michal, feel free to send the v3 without the debug info, unless you want me to do it ;) Olliver On 12-08-15

[linux-sunxi] [PATCH v3 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread Michal Suchanek
The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over 350ms. This does not make mmc clock gating look like good option to have on sunxi but the system should not crash with mmc

Re: [linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Michal Suchanek
On 12 August 2015 at 15:19, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey, On 12-08-15 14:35, Hans de Goede wrote: Hi, On 12-08-15 14:23, Michal Suchanek wrote: When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc

Re: [linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Olliver Schinagl
Hey, On 12-08-15 14:35, Hans de Goede wrote: Hi, On 12-08-15 14:23, Michal Suchanek wrote: When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc interface. Signed-off-by: Michal Suchanek hramr...@gmail.com In general this

Re: [linux-sunxi] ARM: sunxi: Experiences NAND flash

2015-08-12 Thread Olliver Schinagl
Hey Yassin, I'm affraid. The strange thing that seems very related here is that when writing a file onto the flash, it fails and succeeds alternating. It never fails or succeeds twice in a row! And this on any board and any partition. root@system-020502824168:/boot# nandwrite -p /dev/mtd0

[linux-sunxi] [PATCH v2] pinctrl: sun4i: add spdif to pin description.

2015-08-12 Thread codekipper
From: Marcus Cooper codekip...@gmail.com Signed-off-by: Marcus Cooper codekip...@gmail.com --- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c