/* Disable interrupts and cancel any pending event processing work before clearing the Run/Stop bit.  */
static void whcrc_stop_rc(struct uwb_rc *rc)
/* Disable interrupts and cancel any pending event processing work before clearing the Run/Stop bit.  */
static void whcrc_stop_rc(struct uwb_rc *rc)
{
	struct whcrc *whcrc = rc->priv;
	struct umc_dev *umc_dev = whcrc->umc_dev;
	le_writel(0, whcrc->rc_base + URCINTR);
	cancel_work_sync(&whcrc->event_work);
	le_writel(0, whcrc->rc_base + URCCMD);
	whci_wait_for(&umc_dev->dev, whcrc->rc_base + URCSTS,
		      URCSTS_HALTED, URCSTS_HALTED, 100, "radio controller stop");
}