sunxi: mmc: consolidate two halves of mmc_trans_data_by_cpu.

They are close to identical, so consolidate.

Suggested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: mmc: use a time based timeout in mmc_trans_data_by_cpu

Suggested-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: mmc: use a time based timeout in mmc_update_clk

The Linux driver uses a 2000msec delay, so do the same.

Suggested-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: mmc: use a time based timeout in mmc_send_cmd

Suggested-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>