From: Thierry Reding Date: Tue, 29 Nov 2011 08:02:30 +0100 Subject: [U-Boot] [PATCH] mmc: Implement card detection. In-Reply-To: References: <1321530687-18334-1-git-send-email-thierry.reding@avionic-design.de> <20111128174752.GA11563@avionic-0098.mockup.avionic-design.de> Message-ID: <20111129070230.GB5044@avionic-0098.mockup.avionic-design.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de * Andy Fleming wrote: [...] > Well, while this isn't the case in any systems I know of now, it is > quite possible for there to be more than one *type* of SD/MMC > controller on an SoC, and there's always the possibility that an SoC > provides a non-controller-specific card-detect mechanism. The idea is > that, lacking a board-specific card-detect mechanism, the SoC might be > able to direct the query to the right place. > > But I'm talking very theoretically, here. I wouldn't object to a > mechanism that was just: > > cd = board_mmc_getcd(mmc); > > if (cd < 0 && mmc->getcd) > cd = mmc->getcd(mmc); > > If we ever ran into a case where an SoC had better knowledge than the > driver, then it's easy to fix the code. That makes sense. The code can always be extended when new hardware requires it. No need to over-engineer at this point. Do you want me to prepare a patch or should we rather wait for some more input from others? Thierry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: