diff mbox series

[1/2] spi: spi-tegra20-sflash: remove redundant irqsave and irqrestore in hardIRQ

Message ID 20200926001616.21292-1-song.bao.hua@hisilicon.com (mailing list archive)
State Accepted
Commit 69544f2c15926379d6fb182b142e044b7378b5cf
Headers show
Series [1/2] spi: spi-tegra20-sflash: remove redundant irqsave and irqrestore in hardIRQ | expand

Commit Message

Song Bao Hua (Barry Song) Sept. 26, 2020, 12:16 a.m. UTC
Running in hardIRQ, disabling IRQ is redundant.

Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
---
 drivers/spi/spi-tegra20-sflash.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Mark Brown Oct. 1, 2020, 10:47 p.m. UTC | #1
On Sat, 26 Sep 2020 12:16:15 +1200, Barry Song wrote:
> Running in hardIRQ, disabling IRQ is redundant.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/2] spi: spi-tegra20-sflash: remove redundant irqsave and irqrestore in hardIRQ
      commit: 69544f2c15926379d6fb182b142e044b7378b5cf
[2/2] spi: spi-stm32: remove redundant irqsave and irqrestore in hardIRQ
      commit: e236893387f8fcace3660d7785b6fb05cf3bc209

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c
index 02cf5f463ba6..b59015c7c8a8 100644
--- a/drivers/spi/spi-tegra20-sflash.c
+++ b/drivers/spi/spi-tegra20-sflash.c
@@ -359,9 +359,8 @@  static int tegra_sflash_transfer_one_message(struct spi_master *master,
 static irqreturn_t handle_cpu_based_xfer(struct tegra_sflash_data *tsd)
 {
 	struct spi_transfer *t = tsd->curr_xfer;
-	unsigned long flags;
 
-	spin_lock_irqsave(&tsd->lock, flags);
+	spin_lock(&tsd->lock);
 	if (tsd->tx_status || tsd->rx_status || (tsd->status_reg & SPI_BSY)) {
 		dev_err(tsd->dev,
 			"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)
 	tegra_sflash_calculate_curr_xfer_param(tsd->cur_spi, tsd, t);
 	tegra_sflash_start_cpu_based_transfer(tsd, t);
 exit:
-	spin_unlock_irqrestore(&tsd->lock, flags);
+	spin_unlock(&tsd->lock);
 	return IRQ_HANDLED;
 }