Skip to content

Commit

Permalink
spi: spi_mcux_lpspi: Removed spin lock from iodev_start
Browse files Browse the repository at this point in the history
Does not seem to be required. This allows hiding away the spin lock APIs.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
  • Loading branch information
ubieda committed Sep 16, 2024
1 parent da7922d commit f628a15
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/spi/spi_mcux_lpspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,8 @@ static void spi_mcux_iodev_start(const struct device *dev)

data->transfer_len = transfer.dataSize;

k_spinlock_key_t key = spi_spin_lock(dev);

status = LPSPI_MasterTransferNonBlocking(base, &data->handle,
&transfer);
spi_spin_unlock(dev, key);
if (status != kStatus_Success) {
LOG_ERR("Transfer could not start");
rtio_iodev_sqe_err(txn_head, -EIO);
Expand Down

0 comments on commit f628a15

Please sign in to comment.