/* Returns 1 if SHPC finishes executing a command within 1 sec, otherwise returns 0.  */
static int shpc_poll_ctrl_busy(struct controller *ctrl)
/* Returns 1 if SHPC finishes executing a command within 1 sec, otherwise returns 0.  */
static int shpc_poll_ctrl_busy(struct controller *ctrl)
{
	int i;
	if (!is_ctrl_busy(ctrl))
		return 1;
	for (i = 0; i < 10; i++) {
		msleep(100);
		if (!is_ctrl_busy(ctrl))
			return 1;
	}
	return 0;
}