u-boot/drivers/spi
Weijie Gao b43512d046 spi: mtk_spim: clear IRQ enable bits
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 the spim driver due to IRQ event happens before IRQ handler
is properly setup.

This patch clear IRQ bits to prevent this from happening.

Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2023-08-03 09:40:49 -04:00
..
altera_spi.c
apple_spi.c
atcspi200_spi.c
ath79_spi.c
atmel-quadspi.c
atmel_spi.c
atmel_spi.h
bcm63xx_hsspi.c spi: bcm63xx-hsspi: Add prepend mode support 2023-07-13 13:59:57 +05:30
bcm63xx_spi.c
bcmbca_hsspi.c spi: bcmbca-hsspi: Add driver for newer HSSPI controller 2023-07-13 13:59:57 +05:30
bcmstb_spi.c
ca_sflash.c
cadence_ospi_versal.c cadence_qspi: Enable flash reset for Versal NET platform 2023-07-21 09:00:38 +02:00
cadence_qspi.c cadence_qspi: Enable flash reset for Versal NET platform 2023-07-21 09:00:38 +02:00
cadence_qspi.h spi: cadence-qspi: Use priv instead of plat across the driver 2022-09-13 11:32:48 +02:00
cadence_qspi_apb.c spi: cadence-quadspi: Reset CMD_CTRL Reg on cmd r/w completion 2023-04-26 13:37:39 +05:30
cf_spi.c cf_spi.c: Rename CONFIG_SPI_IDLE_VAL to SPI_IDLE_VAL 2022-12-23 13:01:13 -05:00
davinci_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
designware_spi.c
exynos_spi.c
fsl_dspi.c drivers: spi: fix some typos 2023-01-26 20:53:20 +05:30
fsl_espi.c global: Migrate CONFIG_SYS_MPC8* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
fsl_qspi.c
gxp_spi.c
ich.c
ich.h
iproc_qspi.c
Kconfig spi: bcmbca-hsspi: Add driver for newer HSSPI controller 2023-07-13 13:59:57 +05:30
kirkwood_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Makefile spi: bcmbca-hsspi: Add driver for newer HSSPI controller 2023-07-13 13:59:57 +05:30
meson_spifc.c
microchip_coreqspi.c spi: Add Microchip PolarFire SoC QSPI driver 2022-11-03 13:27:56 +08:00
mpc8xx_spi.c spi, mpc8xx: Take parameter RAM relocation into account 2023-05-05 07:26:53 +02:00
mpc8xxx_spi.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
mscc_bb_spi.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
mt7620_spi.c
mt7621_spi.c
mtk_snfi_spi.c drivers: spi: fix some typos 2023-01-26 20:53:20 +05:30
mtk_snor.c drivers: use devfdt_get_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
mtk_spim.c spi: mtk_spim: clear IRQ enable bits 2023-08-03 09:40:49 -04:00
mvebu_a3700_spi.c drivers: spi: fix some typos 2023-01-26 20:53:20 +05:30
mxc_spi.c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
mxs_spi.c
npcm_fiu_spi.c spi: npcm-fiu: add regulator feature and remove set clock 2023-04-25 23:01:48 +05:30
npcm_pspi.c spi: npcm_pspi: use ACTIVE_LOW flag for cs gpio and set default max_hz 2023-07-13 14:16:59 +05:30
nxp_fspi.c
octeon_spi.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
omap3_spi.c drivers: spi: omap3_spi: Initialize mode for all channels 2023-06-20 16:08:13 -04:00
pic32_spi.c
pl022_spi.c spi: pl022: Add chip-select gpio support 2023-07-13 13:59:57 +05:30
renesas_rpc_spi.c mtd: spi: renesas: Add 4 bytes address mode support 2023-06-10 11:50:45 +02:00
rk_spi.c rockchip: spi: rk_spi: use base variable with uintptr_t size 2023-05-06 17:28:18 +08:00
rk_spi.h
rockchip_sfc.c spi: rockchip_sfc: Use linux rockchip,sfc-no-dma prop 2023-05-18 08:44:04 +08:00
sandbox_spi.c cf_spi.c: Rename CONFIG_SPI_IDLE_VAL to SPI_IDLE_VAL 2022-12-23 13:01:13 -05:00
sh_qspi.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
soft_spi.c spi: soft_spi: Support the recommended soft spi properties 2023-07-13 13:59:57 +05:30
spi-aspeed-smc.c spi: spi-aspeed-smc: use devfdt_get_addr_index_ptr 2023-05-06 17:28:18 +08:00
spi-emul-uclass.c
spi-mem-nodm.c
spi-mem.c spi: spi-mem: perform odd len check only while writing data 2023-04-25 22:56:14 +05:30
spi-mxic.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
spi-qup.c global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
spi-sifive.c drivers: spi: fix some typos 2023-01-26 20:53:20 +05:30
spi-sn-f-ospi.c spi: f-ospi: Add missing spi_mem_default_supports_op() helper 2023-04-25 22:58:21 +05:30
spi-sunxi.c spi: sunxi: Add support for F1C100s SPI controller 2022-07-18 11:34:22 +01:00
spi-synquacer.c spi: synquacer: remove SPI_TX_BYTE handling 2023-07-13 13:59:57 +05:30
spi-uclass.c spi: Implement spi_set_speed 2022-10-16 12:23:22 +02:00
spi.c
stm32_qspi.c spi: stm32_qspi: Remove useless struct stm32_qspi_flash 2023-04-19 09:52:42 +02:00
stm32_spi.c
tegra20_sflash.c
tegra20_slink.c spi: tegra20_slink: accept any word length 2023-02-23 12:55:36 -07:00
tegra114_spi.c
tegra210_qspi.c
tegra_spi.h
ti_qspi.c
uniphier_spi.c
xilinx_spi.c spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op 2023-07-21 09:00:38 +02:00
zynq_qspi.c spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op 2023-07-21 09:00:38 +02:00
zynq_spi.c
zynqmp_gqspi.c xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write 2023-03-09 13:15:00 +01:00