Re: [PATCH 04/29] spi: mtk_spim: clear IRQ enable bits

2023-07-19 Thread Jagan Teki
On Wed, Jul 19, 2023 at 2:46 PM Weijie Gao wrote: > > In u-boot we don't use IRQ. Instead, we poll busy bit in SPI_STATUS. > > However these IRQ enable bits may be set in previous boot stage (BootROM). > > If we leave these bits not cleared, although u-boot has disabled IRQ and > nothing will happ

[PATCH 04/29] spi: mtk_spim: clear IRQ enable bits

2023-07-19 Thread Weijie Gao
In u-boot we don't use IRQ. Instead, we poll busy bit in SPI_STATUS. However these IRQ enable bits may be set in previous boot stage (BootROM). If we leave these bits not cleared, although u-boot has disabled IRQ and nothing will happen, the linux kernel may encounter panic during initializing th