> + for (k = 100; k > 0; k--) { > + if (!(sh_msiof_read(p, CTR) & mask)) > + break; > + > + udelay(1); > + } Why no reuse of sh_msiof_modify_ctr_wait? And can't we maybe even use readl_poll_timeout() here since we know the register is fixed to CTR?
Attachment:
signature.asc
Description: PGP signature