Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: remove spin_lock_irq and variable in the irq procress

remove spin_lock_irq spin_unlock_irq and variable in the irq funciton

Signed-off-by: Li-hao Kuo <lhjeff911@gmail.com>
Link: https://lore.kernel.org/r/f9991d6064d892d22ac7c2dfabe16309e9d03888.1650010304.git.lhjeff911@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Li-hao Kuo and committed by
Mark Brown
c8108584 73f93db5

-6
-6
drivers/spi/spi-sunplus-sp7021.c
··· 85 85 int s_irq; 86 86 struct clk *spi_clk; 87 87 struct reset_control *rstc; 88 - // irq spin lock 89 - spinlock_t lock; 90 88 // data xfer lock 91 89 struct mutex buf_lock; 92 90 struct completion isr_done; ··· 197 199 if (tx_len == 0 && total_len == 0) 198 200 return IRQ_NONE; 199 201 200 - spin_lock_irq(&pspim->lock); 201 - 202 202 rx_cnt = FIELD_GET(SP7021_RX_CNT_MASK, fd_status); 203 203 if (fd_status & SP7021_RX_FULL_FLAG) 204 204 rx_cnt = pspim->data_unit; ··· 235 239 236 240 if (isrdone) 237 241 complete(&pspim->isr_done); 238 - spin_unlock_irq(&pspim->lock); 239 242 return IRQ_HANDLED; 240 243 } 241 244 ··· 441 446 pspim->mode = mode; 442 447 pspim->ctlr = ctlr; 443 448 pspim->dev = dev; 444 - spin_lock_init(&pspim->lock); 445 449 mutex_init(&pspim->buf_lock); 446 450 init_completion(&pspim->isr_done); 447 451 init_completion(&pspim->slave_isr);