On Fri, Aug 24, 2018 at 9:28 AM, Chris <coderi...@gmail.com> wrote:
> So far it has worked on the first attempt every time. So it needs only
> the delay and nothing else.
>
> I still need to test with all my SD cards. Though I only have a 64GB
> Sandisk and a handful of 32GB Samsung. The question is whether or not
> the delay is dependent on the card type or if it's just the controller
> that needs to stabilize.

OK, I tested all the cards I have and everything works. Attached is
the simplified patch. Hopefully someone can test other cards. I'm
interested to know if 128+GB and 16GB works.

Chris
diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c
index 6410340..910bc58 100644
--- a/src/hw/sdcard.c
+++ b/src/hw/sdcard.c
@@ -501,6 +501,9 @@ sdcard_controller_setup(struct sdhci_s *regs, int prio)
     if (volt < 0)
         return;
 
+    // Let card/controller stabilize
+    msleep(5);
+
     // Initialize card
     struct sddrive_s *drive = malloc_fseg(sizeof(*drive));
     if (!drive) {
_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
https://mail.coreboot.org/mailman/listinfo/seabios

Reply via email to