[PATCH 3.4-stable] mmc: block: fix a bug of error handling in MMC driver

2013-07-01 Thread KOBAYASHI Yoshitake
Backport for 3.4-stable for the following patch: https://lkml.org/lkml/2013/5/10/20 This patch fixes a bug of error handling in Linux MMC driver. Current MMC driver doesn't handle generic error (bit19 of device status) in write sequence. As a result, write data gets lost when generic error

[PATCH] mmc: sdhci-pci: identify correct base addresses for slots

2013-07-01 Thread Jackey Shen
A PCI Based SD Host Controller can support up to a total of six SD Slots, and the base addresses are specified by Slot Information Register of its PCI header. Please refer to C.3.3 of SD Host Controller Standard Specification Version 3.0. Signed-off-by: Jackey Shen jackey.s...@amd.com ---

RE: [PATCH] mmc: dw_mmc: don't queue up a card detect at slot startup

2013-07-01 Thread Seungwon Jeon
On Sat, June 29, 2013, Doug Anderson wrote: Seungwon, On Mon, Jun 24, 2013 at 1:04 AM, Seungwon Jeon tgih@samsung.com wrote: This patch looks good to me. I agree above. Card detection procedure of mmc subsystem will be started by mmc_start_host during probe time. There is no need

Oops on linux-next during reboot, possibly related to mmc: core: Handle card shutdown from mmc_bus

2013-07-01 Thread Tuomas Tynkkynen
Hi, On next-20130628 I get the following Oops during reboot: [ 89.814921] Unable to handle kernel NULL pointer dereference at virtual address 004c [ 89.824208] pgd = ecd54000 [ 89.827276] [004c] *pgd= [ 89.831340] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [c040b244]

[PATCH] Add basic support for password protected (locked) SD cards.

2013-07-01 Thread Peter Turczak
Adds support for sd cards that are locked by a password and rereading an already enumerated card. This fixes compatibility issues with password locked cards as they would not enumerate correctly when detecting them. The card side locking functionality is specified as mandatory in the Physical

[PATCH] mmc-utils: Add support for locking/unlocking SD cards by password.

2013-07-01 Thread Peter Turczak
Add commands for locking and unlocking SD cards by password. This is to be used in conjunction with a kernel that enumerates locked sd cards and provides an ioctl for rereading the card after unlocking. Signed-off-by: Peter Turczak pe...@turczak.de --- mmc.c | 24 +- mmc.h |

Re: [PATCH 3.4-stable] mmc: block: fix a bug of error handling in MMC driver

2013-07-01 Thread Greg KH
On Mon, Jul 01, 2013 at 04:56:25PM +0900, KOBAYASHI Yoshitake wrote: Backport for 3.4-stable for the following patch: https://lkml.org/lkml/2013/5/10/20 What is the git commit id of this patch in Linus's tree? thanks, greg k-h -- To unsubscribe from this list: send the line unsubscribe

Crash during reboot due to 7628774 mmc: core: Handle card shutdown from mmc_bus

2013-07-01 Thread Stephen Warren
It looks like commit 7628774 mmc: core: Handle card shutdown from mmc_bus causes a crash during reboot at least on Tegra platforms. The issue appears to be in: static void mmc_bus_shutdown(struct device *dev) { struct mmc_driver *drv = to_mmc_driver(dev-driver); struct mmc_card

[PATCH] sdhci:sirf:drop SDHCI_QUIRK_INVERTED_WRITE_PROTECT as only sd0 has inverted_wp

2013-07-01 Thread Barry Song
From: Bin Shi bin@csr.com only sd0 has the issue that WP is inverted, so we drop the global set of SDHCI_QUIRK_INVERTED_WRITE_PROTECT and only enable the wp-inverted prop for sd0 in dts. Signed-off-by: Bin Shi bin@csr.com Signed-off-by: Barry Song baohua.s...@csr.com ---