> > I don't think this kind of protocol related code shall remain in the > host driver. Better keep this in the protocol layer. > > Moreover, most commands can be followed with status command (CMD13) to > check for busy assertion. I believe this could be a better option to > use from a generic point of view, since not all mmc controllers > support hw-check for busy signalling. > > In the cases were CMD13 is not allowed, there are two options to > improve the situation. > 1. Extend the usage of host->ops->card_busy in the protocol layer, > thus provide the option for a host driver to implement a software busy > check (could be by re-routing pins to GPIO for example) > 2. MMC_CAP_WAIT_WHILE_BUSY is set by host, thus the hw support busy check. I had implemented this patch for older version of kernel (3.4.5) and then ported to latest kernel. Need to check on card_busy and utilize it. I will re-work on this patch and will update a newer version in protocol layer. Thanks, Prasanna NAVARATNA -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html