Skip to content

Commit 69544f2

Browse files
Barry Songbroonie
authored andcommitted
spi: spi-tegra20-sflash: remove redundant irqsave and irqrestore in hardIRQ
Running in hardIRQ, disabling IRQ is redundant. Signed-off-by: Barry Song <song.bao.hua@hisilicon.com> Link: https://lore.kernel.org/r/20200926001616.21292-1-song.bao.hua@hisilicon.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 23f370c commit 69544f2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/spi/spi-tegra20-sflash.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,8 @@ static int tegra_sflash_transfer_one_message(struct spi_master *master,
359359
static irqreturn_t handle_cpu_based_xfer(struct tegra_sflash_data *tsd)
360360
{
361361
struct spi_transfer *t = tsd->curr_xfer;
362-
unsigned long flags;
363362

364-
spin_lock_irqsave(&tsd->lock, flags);
363+
spin_lock(&tsd->lock);
365364
if (tsd->tx_status || tsd->rx_status || (tsd->status_reg & SPI_BSY)) {
366365
dev_err(tsd->dev,
367366
"CpuXfer ERROR bit set 0x%x\n", tsd->status_reg);
@@ -391,7 +390,7 @@ static irqreturn_t handle_cpu_based_xfer(struct tegra_sflash_data *tsd)
391390
tegra_sflash_calculate_curr_xfer_param(tsd->cur_spi, tsd, t);
392391
tegra_sflash_start_cpu_based_transfer(tsd, t);
393392
exit:
394-
spin_unlock_irqrestore(&tsd->lock, flags);
393+
spin_unlock(&tsd->lock);
395394
return IRQ_HANDLED;
396395
}
397396

0 commit comments

Comments
 (0)