2 comments:
/* wait for isp enter */
int retry = 10;
while (retry-- > 0) {
if (realtek_mst_i2c_spi_in_isp_mode(fd) == 1)
break;
struct timespec wait_200ms = { 0, (unsigned)2e8 };
nanosleep(&wait_200ms, NULL);
}
if (retry < 0)
return SPI_GENERIC_ERROR;
I think this is re-implementing, […]
Done
if (realtek_mst_i2c_spi_in_isp_mode(fd) == 0) {
msg_perr("%s: MST not in ISP mode, reset will not happen.\n", __func__);
return SPI_GENERIC_ERROR;
}
just inline this, […]
I was thinking use the return value as True/False to present whether the device is in the ISP mode. But probably that should be a parameter instead of return value.
To view, visit change 48662. To unsubscribe, or for help writing mail filters, visit settings.