Skip to content

Commit 7969212

Browse files
irengeambarus
authored andcommitted
spi: atmel: Add missing annotation for atmel_spi_next_xfer_dma_submit()
Sparse reports a warning at atmel_spi_next_xfer_dma_submit() warning: context imbalance in atmel_spi_next_xfer_dma_submit() - unexpected unlock The root cause is the missing annotation at atmel_spi_next_xfer_dma_submit() Add the missing __must_hold(&as->lock) annotation Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Link: https://lore.kernel.org/r/20200429225723.31258-3-jbi.octave@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit b68527d) Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 48fa103 commit 7969212

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/spi/spi-atmel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ static void atmel_spi_next_xfer_pio(struct spi_master *master,
706706
static int atmel_spi_next_xfer_dma_submit(struct spi_master *master,
707707
struct spi_transfer *xfer,
708708
u32 *plen)
709+
__must_hold(&as->lock)
709710
{
710711
struct atmel_spi *as = spi_master_get_devdata(master);
711712
struct dma_chan *rxchan = master->dma_rx;

0 commit comments

Comments
 (0)