Re: [PATCH] mmc: dw_mmc: use resource_size_t to store physical address

2015-11-13 Thread Arnd Bergmann
On Friday 13 November 2015 03:10:13 Andy Shevchenko wrote: > On Thu, Nov 12, 2015 at 4:14 PM, Arnd Bergmann wrote: > > The dw_mmc driver stores the physical address of the MMIO registers > > in a pointer, which requires the use of type casts, and is actually > > broken if anyone

Re: [PATCH V2 1/3] mmc: sdhci-pltfm: Add DT properties to set various QUIRKS

2015-11-13 Thread Ulf Hansson
On 12 November 2015 at 20:44, Alan Cooper wrote: > On Thu, Nov 12, 2015 at 4:35 AM, Ulf Hansson wrote: >> On 6 November 2015 at 19:56, Al Cooper wrote: >>> Add support for "broken-ddr50", "broken-64-bit-dma" >>> and

[PATCH 2/6] mmc: move mmc_wait_busy() to core

2015-11-13 Thread Holger Schurig
Currently this function is used inside the mmc test driver. But it is also usable in the (upcoming) firmware update patch. So move this function out of mmc_test.c into core.c. Signed-off-by: Holger Schurig --- drivers/mmc/card/mmc_test.c | 46

[RFC 0/6] mmc: Field Firmware Update

2015-11-13 Thread Holger Schurig
There have been some attempts to add FFU (field firmware update). The last AFAIK in Nov 2014, http://www.spinics.net/lists/linux-mmc/msg29324.html But it seems that the committers weren't persistent enought. I took the liberty to take Avi's patch and make it hopefully maintainer-review

[PATCH 6/6] mmc: eMMC Field Firmware Update support

2015-11-13 Thread Holger Schurig
The Field Firmware Update (FFU) feature is in the eMMC 5.0 spec, see http://www.jedec.org/standards-documents/technology-focus-areas/flash-memory-ssds-ufs-emmc/e-mmc) This adds a new ioctl MMC_FFU_INVOKE to transfer the new Firmware data from user space (via udev firmware request) to the eMMC

[PATCH 3/6] mmc: move mmc_check_result() to core.c

2015-11-13 Thread Holger Schurig
Currently this function is used inside the mmc test driver. But it is also usable in the (upcoming) firmware update patch. So move this function out of mmc_test.c into core.c. This also adds global MMC_RESULT_ variables that show if some condition stems from the host controller or the card/chip.

[PATCH 1/6] mmc: move mmc_prepare_mrq() to core.c

2015-11-13 Thread Holger Schurig
Currently this function is used inside the mmc test driver. But it is also usable in the (upcoming) firmware update patch. So move this function out of mmc_test.c into core.c. Signed-off-by: Holger Schurig --- drivers/mmc/card/mmc_test.c | 48

[PATCH 5/6] mmc: move mmc_send_cxd_data() to core.c

2015-11-13 Thread Holger Schurig
This function can be used to send ext_csd data towards the chip, which is needed in the (upcoming) firmware update patch. Signed-off-by: Holger Schurig --- drivers/mmc/core/mmc_ops.c | 4 ++-- include/linux/mmc/core.h | 3 +++ 2 files changed, 5 insertions(+), 2

[PATCH 4/6] mmc: move mmc_simple_transfer() to core.c

2015-11-13 Thread Holger Schurig
Currently this function is used inside the mmc test driver. But it is also usable in the (upcoming) firmware update patch. So move this function out of mmc_test.c into core.c. Signed-off-by: Holger Schurig --- drivers/mmc/card/mmc_test.c | 38