Re: [RESEND LIST PATCHv7 1/4] clk: socfpga: Add a clk-phase property to the "altr, socfpga-gate-clk"

2013-12-18 Thread Arnd Bergmann
On Thursday 19 December 2013, Dinh Nguyen wrote: > On 12/18/13 3:21 PM, Arnd Bergmann wrote: > > On Wednesday 18 December 2013, Mike Turquette wrote: > > I would definitely prefer using degrees over an arbitrary enumeration that > > might work on some platforms but not on others. > > > > I'm also a

Re: [RESEND LIST PATCHv7 1/4] clk: socfpga: Add a clk-phase property to the "altr, socfpga-gate-clk"

2013-12-18 Thread Dinh Nguyen
On 12/18/13 3:21 PM, Arnd Bergmann wrote: > On Wednesday 18 December 2013, Mike Turquette wrote: >>> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi >>> index f936476..616d9ee 100644 >>> --- a/arch/arm/boot/dts/socfpga.dtsi >>> +++ b/arch/arm/boot/dts/socfpga.dtsi >>>

[RFC PATCH] mmc: card: Skip regular block io operations for RPMB partitions

2013-12-18 Thread Abbas Raza
From: Abbas Raza Idea behind this patch is to skip all the regular block io operations for RPMB partitions because these are not regular partitions and require a different command sequence for reading and writing. RPMB partitions should only be accessed via ioctl. Without this patch we see follow

Re: [PATCH v3 07/21] ARM: dts: parse DMA config in pxamci

2013-12-18 Thread Sergei Ianovich
Daniel, On Tue, 2013-12-17 at 23:37 +0400, Sergei Ianovich wrote: > The existing PXA MMC driver cannot get DMA channels in a proper > way from the respective device tree binding. > > This patch provides temporary workaround which allows using the > existing driver in DT machines by pointing to th

Re: [PATCH] mmc: core: don't return 1 for max_discard

2013-12-18 Thread Stephen Warren
On 12/18/2013 03:27 PM, Stephen Warren wrote: > From: Stephen Warren > > In mmc_do_calc_max_discard(), if only a single erase block can be > discarded within the host controller's timeout, don't allow discard > operations at all. > > Previously, the code allowed sector-at-a-time discard (rather

[PATCH] mmc: core: don't return 1 for max_discard

2013-12-18 Thread Stephen Warren
From: Stephen Warren In mmc_do_calc_max_discard(), if only a single erase block can be discarded within the host controller's timeout, don't allow discard operations at all. Previously, the code allowed sector-at-a-time discard (rather than erase-block-at-a-time), which was chronically slow. Wi

Re: [RESEND LIST PATCHv7 1/4] clk: socfpga: Add a clk-phase property to the "altr, socfpga-gate-clk"

2013-12-18 Thread Arnd Bergmann
On Wednesday 18 December 2013, Mike Turquette wrote: > > diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi > > index f936476..616d9ee 100644 > > --- a/arch/arm/boot/dts/socfpga.dtsi > > +++ b/arch/arm/boot/dts/socfpga.dtsi > > @@ -413,6 +413,7 @@ > >

Re: [RESEND LIST PATCHv7 1/4] clk: socfpga: Add a clk-phase property to the "altr, socfpga-gate-clk"

2013-12-18 Thread Mike Turquette
Quoting dingu...@altera.com (2013-12-16 09:04:33) > From: Dinh Nguyen > > The clk-phase property is used to represent the 2 clock phase values that is > needed for the SD/MMC driver. Add a prepare function to the clk_ops, that will > use the syscon driver to set sdmmc_clk's phase shift that is lo

Re: [PATCHv6 2/5] clk: socfpga: Add a clock type for the SD/MMC driver

2013-12-18 Thread Mike Turquette
Quoting David Lanzendörfer (2013-12-16 13:54:21) > Hi > > that takes the MMC clock (and only the MMC clock) and does the setup > > (it's basically configuring two values, "sample" and "output", into the > > clock register). I really don't know what does this do/why is it > > required/when is it use

Re: max_discard anomaly on certain Sandisk eMMC

2013-12-18 Thread Stephen Warren
On 12/17/2013 08:32 PM, Dong Aisheng wrote: > On Wed, Dec 18, 2013 at 1:27 AM, Stephen Warren wrote: >> On 12/17/2013 02:25 AM, Dong Aisheng wrote: >>> Hi Stephen, >>> >>> On Sat, Dec 14, 2013 at 6:43 AM, Stephen Warren >>> wrote: On one of my eMMC devices, I see the following results from

Re: [PATCH 2/4] Moving of_init_opp_table

2013-12-18 Thread John Tobias
Ahh ok I think I got what you mean here.. I should call opp_get_opp_count(cpu_dev) to check if the platform supplied it. If not, call the of_init_opp_table. On Tue, Dec 17, 2013 at 11:43 PM, Shawn Guo wrote: > On Tue, Dec 17, 2013 at 05:17:29PM -0800, John Tobias wrote: >> Moving of_init_op

Re: [PATCH] mmc: core: don't decrement qty when calculating max_discard

2013-12-18 Thread Stephen Warren
On 12/18/2013 04:08 AM, Adrian Hunter wrote: > On 17/12/13 20:02, Stephen Warren wrote: >> From: Stephen Warren >> >> In mmc_do_calc_max_discard(), if any value has been assigned to qty, >> that value must have passed the timeout checks in the loop. Hence, >> qty is the maximum number of erase blo

Re: [PATCH 1/4] iMX6SL frequency table

2013-12-18 Thread John Tobias
Will update it base on your previous email. Thanks, john On Tue, Dec 17, 2013 at 11:37 PM, Shawn Guo wrote: > On Tue, Dec 17, 2013 at 05:17:28PM -0800, John Tobias wrote: >> Device tree for iMX6SL doesn't have an existing cpu frequency table. > > Drop these leading spaces. > >> >> Signed-of

Re: [PATCH 3/4] Removing imx6q_opp_init

2013-12-18 Thread John Tobias
Got it. thanks john On Tue, Dec 17, 2013 at 11:49 PM, Shawn Guo wrote: > On Tue, Dec 17, 2013 at 05:17:30PM -0800, John Tobias wrote: >> Since of_init_opp_table is in imx6q-cpufreq.c, the imx6q_opp_init is no >> longer needed anymore. >> The only question right now is the imx6q_opp_che

[PATCH 2/2 v2] mmc: sdhci-pci: add support of O2Mirco/BayHubTech SD hosts

2013-12-18 Thread Adam Lee
Add O2Micro/BayHubTech SD Host DeviceId 8520 support. Add O2Micro/BayHubTech SD Host DeviceId 8420 & 8421 support. Add O2Micro/BayHubTech SD Host DeviceId 8620 & 8621 support. Signed-off-by: Peter Guo Signed-off-by: Adam Lee --- drivers/mmc/host/Makefile| 1 + drivers/mmc/host/sdh

Re: [RFC PATCH v3 2/8] mmc: omap_hsmmc: handle vcc and vcc_aux independently

2013-12-18 Thread Balaji T K
On Wednesday 11 December 2013 04:51 PM, Ulf Hansson wrote: On 10 December 2013 12:48, Balaji T K wrote: On Tuesday 10 December 2013 04:39 PM, Ulf Hansson wrote: On 21 November 2013 15:20, Balaji T K wrote: handle vcc and vcc_aux independently to reduce indent. Signed-off-by: Balaji T K -

[PATCH 2/2] mmc: sdhci-pci: add support of O2Mirco/BayHubTech SD hosts

2013-12-18 Thread Adam Lee
Add O2Micro/BayHubTech SD Host DeviceId 8520 support. Add O2Micro/BayHubTech SD Host DeviceId 8420 & 8421 support. Add O2Micro/BayHubTech SD Host DeviceId 8620 & 8621 support. Signed-off-by: Peter Guo Signed-off-by: Adam Lee --- drivers/mmc/host/Makefile| 1 + drivers/mmc/host/sdh

[PATCH 1/2] mmc: sdhci-pci: break out definitions to header file

2013-12-18 Thread Adam Lee
Break out definitions in sdhci-pci.c to sdhci-pci.h, for introducing module files like sdhci-pci-xxx.c Signed-off-by: Adam Lee --- drivers/mmc/host/sdhci-pci.c | 74 +- drivers/mmc/host/sdhci-pci.h | 77 2 files

[PATCH 0/2] add support of O2Mirco/BayHubTech SD hosts

2013-12-18 Thread Adam Lee
BugLink: http://bugs.launchpad.net/bugs/1239938 Card readers on Lenovo ThinkPad W540, Dell Latitude E5440 and Dell Latitude E6540 don't work without this patch. Thanks to Chris Ball's suggestion, I create new files but not add hundreds lines of code into the main source file. Adam Lee (2): mmc

Re: [PATCH] mmc: core: sd: implement proper support for sd3.0 au sizes

2013-12-18 Thread Wolfram Sang
On Tue, Nov 26, 2013 at 02:16:25AM +0100, Wolfram Sang wrote: > This reverts and updates commit 6fd0a4cc541b9a528eacc1d31ca47eb1ae7a > ("mmc: sd: fix the maximum au_size for SD3.0"). The au_size for SD3.0 > cannot be achieved by a simple bit shift, so this needs to be > implemented differently.

[PATCH 1/2] mmc: core: Use mmc_flush_cache() during mmc suspend

2013-12-18 Thread Ulf Hansson
Earlier we disabled the cache during suspend, which meant a flush was internally at the eMMC performed as well. To simplify code we can make use of the mmc_flush_cache(), during mmc suspend, which makes the mmc_cache_ctrl() redundant so then we can remove it. Signed-off-by: Ulf Hansson --- driv

[PATCH 2/2] mmc: core: Enable MMC_CAP2_CACHE_CTRL as default

2013-12-18 Thread Ulf Hansson
There are no reason to why the use of a non-volatile internal eMMC cache should be controlled by a host cap. Instead let's just enable it if the eMMC card supports it. Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c |3 --- drivers/mmc/core/mmc.c |3 +-- include/linux/mmc/host.

Re: [PATCH] mmc: core: don't decrement qty when calculating max_discard

2013-12-18 Thread Adrian Hunter
On 17/12/13 20:02, Stephen Warren wrote: > From: Stephen Warren > > In mmc_do_calc_max_discard(), if any value has been assigned to qty, > that value must have passed the timeout checks in the loop. Hence, > qty is the maximum number of erase blocks that fit within the timeout, > not the first va

Re: [PATCH] mmc: core: don't decrement qty when calculating max_discard

2013-12-18 Thread Ulf Hansson
On 17 December 2013 19:02, Stephen Warren wrote: > From: Stephen Warren > > In mmc_do_calc_max_discard(), if any value has been assigned to qty, > that value must have passed the timeout checks in the loop. Hence, > qty is the maximum number of erase blocks that fit within the timeout, > not the

[GIT PULL] Xilinx Zynq mmc changes for v3.14

2013-12-18 Thread Michal Simek
Hi Chris, Soren and I are trying to reach you regarding Arasan driver we sent to mailing list for review. There are no complains about this version 3 that's why I have added to our repo and sending you this pull request. Patches: http://lkml.org/lkml/2013/12/2/413 http://lkml.org/lkml/2013/12/2/

Re: [PATCHv3] mmc: atmel-mci: add vmmc-supply support

2013-12-18 Thread Ludovic Desroches
Hi Alexandre, On Tue, Dec 17, 2013 at 08:03:12PM +0100, Alexandre Belloni wrote: > Hi, > > It seems that patch never made it to the mainline. Is it still missing > something ? No reason on my side, maybe because my ack is missing but I thought I gave it on a previous version, maybe I am wrong.

Re: [PATCH] atmel-mci: fix transfers < 16 bytes problem in PDC mode

2013-12-18 Thread Olivier Sobrie
Hi Ludovic, On Fri, Dec 13, 2013 at 12:09:13PM +0100, Ludovic Desroches wrote: > Hi Olivier, > > On Thu, Dec 05, 2013 at 10:45:16AM +0100, Olivier Sobrie wrote: > > [...] > > > With this patch I'm able to use the wlan sdio module wl1271. > > When you've time, it would be nice to validate or fix