Re: [PATCH net-next v1 1/3] dinghai: add firmware version check and? RISC-V readiness polling

Andrew Lunn <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
> +	for (i = 0; i < ZXDH_RISCV_READY_TIMEOUT_SEC; i++) {
> +		if (ioread8(&hb->riscv_power_on) == 1)
> +			return 0;
> +		msleep(MSEC_PER_SEC);
> +	}

Please use one of the macros in iopoll.h

	Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.