    if (timeout == 0) {
      timeout = SPI_ACK_TIMEOUT;
    }
  
    spi_ioc_transfer transfer = {
      .tx_buf = (uint64_t)tx_buf,
      .rx_buf = (uint64_t)rx_buf,
 
</s> remove   if (timeout <= 0) {
 </s> add   if (timeout == 0) { </s> remove const int SPI_ACK_TIMEOUT = 500; // milliseconds
 </s> add const unsigned int SPI_ACK_TIMEOUT = 500; // milliseconds
  timeout = std::clamp(timeout, 100U, SPI_ACK_TIMEOUT);
    if (timeout == 0) {
      timeout = SPI_ACK_TIMEOUT;
    }
  timeout = std::clamp(timeout, 100U, SPI_ACK_TIMEOUT);
  
    spi_ioc_transfer transfer = {
      .tx_buf = (uint64_t)tx_buf,
      .rx_buf = (uint64_t)rx_buf,
keep keep add keep keep keep keep
 boardd: set min spi timeout 
selfdrive/boardd/spi.cc