From: Takashi Iwai Date: Thu, 21 Apr 2011 18:26:38 +0000 (+0200) Subject: mmc: sdhci: Fix read-only detection with JMicron 388 chip X-Git-Tag: v3.0-rc1~148^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b0e23a295cc58d1290017ee97a40956ad68d94;p=pandora-kernel.git mmc: sdhci: Fix read-only detection with JMicron 388 chip On HP laptops with JMicron 388 chip, the write-locked SD card isn't detected correctly as read-only in many cases. This is because the PRESENT_STATE register becomes unsable just after plugging, and it returns the WRITE_PROTECT bit wrongly at the first read. This patch fixes the read-only detection by adding a new sdhci quirk indicating to check the register more intensively with a relatively long delay. The patch is tested with 2.6.39-rc4 kernel. Cc: Aries Lee Signed-off-by: Takashi Iwai Signed-off-by: Chris Ball --- Reading git-diff-tree failed