X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hw%2Fsd.c;h=d59c4bf5648cf75eb701f6959bdbc65b8bcd8cb3;hb=cd346349b45ef056f138a184f660b8c34c3213cc;hp=799c9453352e3e6dac9d3d6ebfdf7c256a4aafdd;hpb=a1bb27b1e98a372545f37a599c0f9ea785502554;p=qemu diff --git a/hw/sd.c b/hw/sd.c index 799c945..d59c4bf 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -1,4 +1,4 @@ -/* +/* * SD Memory Card emulation as defined in the "SD Memory Card Physical * layer specification, Version 1.10." * @@ -1151,9 +1151,10 @@ int sd_do_command(SDState *sd, struct sd_request_s *req, return 0; } - if (last_status & APP_CMD) + if (last_status & APP_CMD) { rtype = sd_app_command(sd, *req); - else + sd->card_status &= ~APP_CMD; + } else rtype = sd_normal_command(sd, *req); sd->current_cmd = req->cmd;