Re: CMD7 failing on ATP & Transcend MMC cards

From: Russell King (rmk+lkml_at_arm.linux.org.uk)
Date: 10/03/05

  • Next message: Luben Tuikov: "Re: I request inclusion of SAS Transport Layer and AIC-94xx into the kernel"
    Date:	Mon, 3 Oct 2005 15:02:52 +0100
    To: Jarkko Lavinen <jarkko.lavinen@nokia.com>
    
    

    On Mon, Oct 03, 2005 at 04:54:45PM +0300, Jarkko Lavinen wrote:
    > So far, the problem occured only on ATP and Transcend cards when the card
    > have already been detected and then mmc_detect_change() is called to
    > check if any new cards have been inserted. After CMD2 the next card
    > select command CMD7 fails due to illegal command error.

    I'm not surprised. CMD2 is part way through the initialisation
    sequence, so no one should be sending a CMD7.

    After a CMD2, the next expected command is a CMD3 for MMC cards (maybe
    not SD cards).

    Given the code, I don't see how you can possibly be sending a CMD7
    before the initialisation has completed. You need to find out why
    a CMD7 is being sent after CMD2.

    > I got rid of the problem by simply adding call to mmc_check_cards()
    > at and of mmc_setup() function, which is perhaps an overkill. One could do
    > it also in mmc_rescan() after switching back to higher clock.

    This is not a fix.

    -- 
    Russell King
     Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
     maintainer of:  2.6 Serial core
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Luben Tuikov: "Re: I request inclusion of SAS Transport Layer and AIC-94xx into the kernel"

    Relevant Pages

    • Re: compact flash IDE hot-swap summary please
      ... With dual device you tend to have nasty ... certainly for embedded devices - a fair number of people do use ... CF cards in their embedded solutions, and some of us hotplug CF cards to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: e1000, sshd, and the infamous "Corrupted MAC on input"
      ... I would disable rx/tx checksums on the cards to ensure that's not a bug ... you can do this with ethtool: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Sequence of network cards
      ... > 2) you can rename ethX to ethY yourself with nameif and similar tools. ... As the number of cards goes up it scales easily. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: compact flash IDE hot-swap summary please
      ... With dual device you tend to have nasty ... certainly for embedded devices - a fair number of people do use ... > CF cards in their embedded solutions, and some of us hotplug CF cards to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Binary-only firmware covered by the GPL?
      ... It is, however, obfuscated and not the preferred form for making ... And about binary data which is not executed by any processor? ... cards have ASIC chips that must be programmed to make the card do ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)