linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection
@ 2013-04-10 17:05 Robert Nelson
  2013-04-10 18:54 ` Robert Nelson
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Nelson @ 2013-04-10 17:05 UTC (permalink / raw)
  To: linux-arm-kernel

Use cd-inverted to fix card detection on the at91sam9g20-ek Rev C Dev board.

With: v3.9-rc6:
atmel_mci fffa8000.mmc: version: 0x210
atmel_mci fffa8000.mmc: using PDC
atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots
Waiting for root device /dev/mmcblk0p2...

With: v3.9-rc6 + this patch, card is now detected.
atmel_mci fffa8000.mmc: version: 0x210
atmel_mci fffa8000.mmc: using PDC
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 0007
atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots
mmcblk0: mmc0:0007 SD02G 1.89 GiB
mmcblk0: p1 p2

Although other issues still remain:
mmcblk0: retrying using single block read
mmcblk0: error -115 sending stop command, original cmd response 0xb00, card status 0x900
mmcblk0: error -110 transferring data, sector 834296, nr 8, cmd response 0xb00, card status 0x0
mmcblk0: retrying using single block read

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 arch/arm/boot/dts/at91sam9g20ek_2mmc.dts |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
index 66467b1..d1b1521 100644
--- a/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
+++ b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
@@ -24,6 +24,7 @@
 					reg = <0>;
 					bus-width = <4>;
 					cd-gpios = <&pioC 2 0>;
+					cd-inverted;
 				};
 			};
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection
  2013-04-10 17:05 [PATCH] ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection Robert Nelson
@ 2013-04-10 18:54 ` Robert Nelson
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Nelson @ 2013-04-10 18:54 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Apr 10, 2013 at 12:05 PM, Robert Nelson <robertcnelson@gmail.com> wrote:
> Use cd-inverted to fix card detection on the at91sam9g20-ek Rev C Dev board.

Please Ignore this patch for now... As after more testing it looks
more like pinmux problem..  Aka removing a card (used to load
at91bootstrap/u-boot) during boot and then inserting the card again
after "Waiting for root device" shows up.. Results in nothing...

[    1.023437] atmel_mci fffa8000.mmc: version: 0x210
[    1.031250] atmel_mci fffa8000.mmc: no DMA channel available
[    1.039062] atmel_mci fffa8000.mmc: using PDC
[    1.132812] atmel_mci fffa8000.mmc: Atmel MCI controller at
0xfffa8000 irq 30, 2 slots
[    1.140625] Waiting for root device /dev/mmcblk0p2...

Regards,

-- 
Robert Nelson
http://www.rcn-ee.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-10 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 17:05 [PATCH] ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection Robert Nelson
2013-04-10 18:54 ` Robert Nelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).