On Tue, Nov 19, 2019 at 12:10:39PM +0100, Ahmad Fatoum wrote: > > + if (prs & SDHCI_BUFFER_WRITE_ENABLE && > > + !(data->flags & MMC_DATA_READ)) { > > + sdhci_tx_pio(sdhci, data, block); > > + block++; > > + start = get_time_ns(); > > + } > > + > > + if (is_timeout(start, 10 * SECOND)) > > 10 seconds are a lot, should we call into barebox poller meanwhile? is_timeout() does that. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox