diff mbox

[v3,1/4] SSI: Built in multiple device support

Message ID 201204252110.20873.paul@codesourcery.com
State New
Headers show

Commit Message

Paul Brook April 25, 2012, 8:10 p.m. UTC
> > Im happy to spend the 10 mins updating stellaris.c accordingly, but is
> > someone sitting on a binary package and brief instructions or some
> > such to regression test it? Do you of this machine have some sort of
> > kernel image handy?
> 
> I've attached a tarball with some test binaries.  They're built from the
> example libraries shipped with this board.

This time with the actual attachment.

It also appears that the SD Physical Spec v2 bits don't include all the 
commands necessary for SPI mode operation, so for now you also need to disable 
that.  Triggered by this test, but not some of my older code.  Proper patch 
for that to follow.

Paul
diff mbox

Patch

diff --git a/hw/sd.c b/hw/sd.c
index 07eb263..03404a7 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -740,6 +740,9 @@  static sd_rsp_type_t sd_normal_command(SDState *sd,
         break;
 
     case 8:	/* CMD8:   SEND_IF_COND */
+        if (sd->spi) {
+            goto bad_cmd;
+        }
         /* Physical Layer Specification Version 2.00 command */
         switch (sd->state) {
         case sd_idle_state: