[PATCH RESEND] mmc: core: Enable tuning according to the actual timing

2016-01-04 Thread Carlo Caione
From: Carlo Caione While in sdhci_execute_tuning() the choice whether or not to enable the tuning is done on the actual timing, in the mmc_sdio_init_uhs_card() the check is done on the capability of the card. This difference is causing some issues with some SDIO cards in DDR50 mode where the

Re: [PATCH] mmc: core: Enable tuning according to the actual timing

2015-12-20 Thread Carlo Caione
On Fri, Dec 18, 2015 at 10:34 PM, Carlo Caione wrote: > From: Carlo Caione > > While in sdhci_execute_tuning() the choice whether or not to enable the > tuning is done on the actual timing, in the mmc_sdio_init_uhs_card() the > check is done on the capability of the card. > &g

[PATCH] mmc: core: Enable tuning according to the actual timing

2015-12-18 Thread Carlo Caione
From: Carlo Caione While in sdhci_execute_tuning() the choice whether or not to enable the tuning is done on the actual timing, in the mmc_sdio_init_uhs_card() the check is done on the capability of the card. This difference is causing some issues with some SDIO cards in DDR50 mode where the

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-12-17 Thread Carlo Caione
des, please check > if the card->sw_caps.sd3_bus_mode changes with or without DDR50 tuning > enabled. It doesn't. -- Carlo Caione -- 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

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-12-14 Thread Carlo Caione
) is called - card->sw_caps.sd3_bus_mode is 0x14 - card->sw_caps.sd3_bus_mode & SD_MODE_UHS_SDR50 is actually verified (even though the tuning for DDR50 is not enabled) - mmc_execute_tuning() is actually called -- Carlo Caione -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-12-14 Thread Carlo Caione
he latest master with commit 9faac7b95 WiFi is broken on the ASUS X205TA (bcm43341) - Reverting 9faac7b95 makes it working fine again My conclusion is that issuing the CMD19 is basically breaking WiFi on this platform. -- Carlo Caione -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH 1/2] mmc: core: enable CMD19 tuning for DDR50 mode

2015-12-12 Thread Carlo Caione
ng mmc_sdio_init_uhs_card() in drivers/mmc/core/sdio.c but I end up with the error "Controller never released inhibit bit(s)". At least in my case CMD19 shouldn't be issued at all to have the SDIO card working. Any suggestion how to approach this problem? -- Carlo Caione --

Re: [PATCH v4] mmc: meson: Add driver for the SD/MMC host found on Amlogic MesonX SoCs

2015-12-08 Thread Carlo Caione
On Tue, Dec 8, 2015 at 4:06 PM, Ulf Hansson wrote: > On 1 December 2015 at 17:41, Carlo Caione wrote: >> +Required properties: >> + - compatible : "amlogic,meson-mmc" >> + - reg : mmc controller base registers >> + - interrupts : mmc controller inter

[PATCH v4] mmc: meson: Add driver for the SD/MMC host found on Amlogic MesonX SoCs

2015-12-01 Thread Carlo Caione
From: Carlo Caione Add a driver for the SD/MMC host found on the Amlogic MesonX SoCs. This is an MMC controller which provides an interface between the application processor and various memory cards. It supports the SD specification v2.0 and the eMMC specification v4.41. This patch adds also

Re: [PATCH v2] mmc: core: Introduce MMC_CAP2_NO_SDIO cap

2015-11-25 Thread Carlo Caione
On Wed, Nov 25, 2015 at 5:34 PM, Ulf Hansson wrote: > On 25 November 2015 at 15:39, Carlo Caione wrote: >> From: Carlo Caione >> >> This patch introduce a new MMC_CAP2_NO_SDIO cap used to tell the mmc >> core to not send SDIO specific commands. > > I guess

[PATCH v2] mmc: core: Introduce MMC_CAP2_NO_SDIO cap

2015-11-25 Thread Carlo Caione
From: Carlo Caione This patch introduce a new MMC_CAP2_NO_SDIO cap used to tell the mmc core to not send SDIO specific commands. Signed-off-by: Carlo Caione --- Drivers fix will follow. Changelog: * v2: - moved check from __mmc_start_request to mmc_rescan_try_freq --- drivers/mmc/core

[PATCH 2/3] mmc: Add a new mmc_is_io_op helper function

2015-11-25 Thread Carlo Caione
From: Carlo Caione Add a helper function to check if an opcode is a sd-io-* opcode. Signed-off-by: Carlo Caione --- drivers/mmc/core/sdio_ops.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/core/sdio_ops.h b/drivers/mmc/core/sdio_ops.h index e4b5ceb..9b614b2 100644

[PATCH 1/3] mmc: Rename mmc_is_io_op to mmc_is_rw_io_op

2015-11-25 Thread Carlo Caione
From: Carlo Caione This function is used only to filter on sd-io-rw-* operations. Rename it to reflect this behaviour. Signed-off-by: Carlo Caione --- drivers/mmc/core/core.c | 2 +- drivers/mmc/core/sdio_ops.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 3/3] mmc: core: Introduce MMC_CAP2_NO_SDIO cap

2015-11-25 Thread Carlo Caione
From: Carlo Caione This patch introduce a new MMC_CAP2_NO_SDIO cap used to tell the mmc core to not send SDIO specific commands. Signed-off-by: Carlo Caione --- drivers/mmc/core/core.c | 7 +++ include/linux/mmc/host.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/mmc

[PATCH 0/3] mmc: Add new MMC_CAP2_NO_SDIO cap

2015-11-25 Thread Carlo Caione
From: Carlo Caione Small patchset to add a new MMC_CAP2_NO_SDIO cap used to tell the mmc core to skip the SDIO commands. Drivers fix will follow. Carlo Caione (3): mmc: Rename mmc_is_io_op to mmc_is_rw_io_op mmc: Add a new mmc_is_io_op helper function mmc: core: Introduce

[PATCH v3] mmc: meson: Add driver for the SD/MMC host found on Amlogic MesonX SoCs

2015-06-20 Thread Carlo Caione
From: Carlo Caione Add a driver for the SD/MMC host found on the Amlogic MesonX SoCs. It is an MMC controller which provides an interface between the application processor and various memory cards. It supports the SD specification v2.0 and the eMMC specification v4.41. It also supports SDSC

Re: [PATCH v2] mmc: meson: Add driver for the SD/MMC host found on Amlogic MesonX SoCs

2015-06-11 Thread Carlo Caione
On Wed, Jun 10, 2015 at 3:44 PM, Daniel Drake wrote: > On Wed, Jun 10, 2015 at 2:53 AM, Carlo Caione wrote: >> +static int meson_mmc_map_dma(struct meson_mmc_host *host, >> +struct mmc_data *data, >> +unsigned int fl

[PATCH v2] mmc: meson: Add driver for the SD/MMC host found on Amlogic MesonX SoCs

2015-06-10 Thread Carlo Caione
From: Carlo Caione Add a driver for the SD/MMC host found on the Amlogic MesonX SoCs. It is an MMC controller which provides an interface between the application processor and various memory cards. It supports the SD specification v2.0 and the eMMC specification v4.41. It also supports SDSC