Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-29 Thread Thierry Reding
* Andy Fleming wrote: > On Tue, Nov 29, 2011 at 1:02 AM, Thierry Reding > wrote: > > * 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 al

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-29 Thread Andy Fleming
On Tue, Nov 29, 2011 at 1:02 AM, Thierry Reding wrote: > * 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 >>

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-28 Thread Thierry Reding
* 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 id

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-28 Thread Andy Fleming
On Mon, Nov 28, 2011 at 11:47 AM, Thierry Reding wrote: >> >> Also, to handle code like is in fsl_esdhc.c for fallback in case no >> board-specific code is written, I'm thinking we should use a mechanism >> similar to the ethernet drivers: >> >>         if (board_eth_init != __def_eth_init) { >>  

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-28 Thread Thierry Reding
* Andy Fleming wrote: > On Thu, Nov 17, 2011 at 5:51 AM, Thierry Reding > wrote: > > Check for board-specific card detect each time an MMC/SD device is > > initialized. If card detection is not implemented, this code behaves as > > before and continues assuming a card is present. If no card is det

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-25 Thread Andy Fleming
On Thu, Nov 17, 2011 at 5:51 AM, Thierry Reding wrote: > Check for board-specific card detect each time an MMC/SD device is > initialized. If card detection is not implemented, this code behaves as > before and continues assuming a card is present. If no card is detected, > has_init is reset for t

Re: [U-Boot] [PATCH] mmc: Implement card detection.

2011-11-22 Thread Thierry Reding
* Thierry Reding wrote: > Check for board-specific card detect each time an MMC/SD device is > initialized. If card detection is not implemented, this code behaves as > before and continues assuming a card is present. If no card is detected, > has_init is reset for the MMC/SD device (to force initi

[U-Boot] [PATCH] mmc: Implement card detection.

2011-11-17 Thread Thierry Reding
Check for board-specific card detect each time an MMC/SD device is initialized. If card detection is not implemented, this code behaves as before and continues assuming a card is present. If no card is detected, has_init is reset for the MMC/SD device (to force initialization next time) and an erro