Skip to content

Commit

Permalink
spi_master : set spi bus lock log level to verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
mcapdeville committed Jan 7, 2024
1 parent abf5018 commit b020b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/esp_driver_spi/src/gpspi/spi_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ esp_err_t SPI_MASTER_ISR_ATTR spi_device_acquire_bus(spi_device_t *device, TickT
}
host->device_acquiring_lock = device;

ESP_LOGD(SPI_TAG, "device%d locked the bus", device->id);
ESP_LOGV(SPI_TAG, "device%d locked the bus", device->id);

#ifdef CONFIG_PM_ENABLE
// though we don't suggest to block the task before ``release_bus``, still allow doing so.
Expand Down Expand Up @@ -1125,7 +1125,7 @@ void SPI_MASTER_ISR_ATTR spi_device_release_bus(spi_device_t *dev)
//Release APB frequency lock
esp_pm_lock_release(host->bus_attr->pm_lock);
#endif
ESP_LOGD(SPI_TAG, "device%d release bus", dev->id);
ESP_LOGV(SPI_TAG, "device%d release bus", dev->id);

host->device_acquiring_lock = NULL;
esp_err_t ret = spi_bus_lock_acquire_end(dev->dev_lock);
Expand Down

0 comments on commit b020b93

Please sign in to comment.