/* wait for config mode bit setup to be acted upon by the hardware  */
static int malidp_wait_configdone(struct malidp_priv *malidp)
/* wait for config mode bit setup to be acted upon by the hardware  */
static int malidp_wait_configdone(struct malidp_priv *malidp)
{
	u32 status, tries = 300;
	while (tries--) {
		status = readl(malidp->dc_status_addr);
		if ((status >> malidp->config_bit_shift) & 1)
			break;
		udelay(500);
	}
	if (!tries)
		return -ETIMEDOUT;
	return 0;
}