From: Timur Tabi <timur@xxxxxxxxxxxxxx> Date: Fri, 24 Jun 2016 18:46:48 -0500 > + while (test_and_set_bit(EMAC_STATUS_RESETTING, &adpt->status)) > + msleep(20); /* Reset might take few 10s of ms */ ... > + while (test_and_set_bit(EMAC_STATUS_RESETTING, &adpt->status)) > + msleep(20); /* Reset might take few 10s of ms */ You cannot spin in the kernel potentially forever if the tested condition is never met. Instead you must have some limit for the loop, and signal a failure if it is reached. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html