linux-stable/drivers/spi
Zheng Yongjun 863f3c2a79 spi: img-spfi: Fix pm_runtime_get_sync() error checking
[ Upstream commit cc470d5534 ]

If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1, so a test for negative
value should be used to check for errors.

Fixes: deba25800a ("spi: Add driver for IMG SPFI controller")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20220422062641.10486-1-zhengyongjun3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:53:48 +02:00
..
Kconfig spi: Prevent adding devices below an unregistering controller 2020-08-26 10:29:55 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spi-adi-v3.c
spi-altera.c spi: altera: Consolidate TX/RX data register access 2017-08-16 11:53:31 +01:00
spi-armada-3700.c spi: change clk_disable_unprepare to clk_unprepare 2021-12-29 12:17:32 +01:00
spi-ath79.c spi/ath79: Fix checkpatch warnings 2017-07-17 12:09:38 +01:00
spi-atmel.c spi: atmel: Put allocated master before return 2021-03-03 18:22:46 +01:00
spi-au1550.c
spi-axi-spi-engine.c spi: spi-axi: fix potential use-after-free after deregistration 2017-12-10 13:40:39 +01:00
spi-bcm-qspi.c spi: bcm-qspi: check for valid cs before applying chip select 2022-02-08 18:16:28 +01:00
spi-bcm-qspi.h
spi-bcm53xx.c
spi-bcm53xx.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spi-bcm63xx-hsspi.c Merge remote-tracking branches 'spi/topic/altera', 'spi/topic/at79', 'spi/topic/bcm-qspi', 'spi/topic/bcm63xx' and 'spi/topic/bcm63xx-hspi' into spi-next 2017-09-04 15:51:14 +01:00
spi-bcm63xx.c spi/bcm63xx: fix error return code in bcm63xx_spi_probe() 2017-08-08 11:36:35 +01:00
spi-bcm2835.c spi: bcm2835: Release the DMA channel if probe fails after dma_init 2020-12-11 13:39:06 +01:00
spi-bcm2835aux.c spi: bcm2835aux: Restore err assignment in bcm2835aux_spi_probe 2020-12-29 13:46:42 +01:00
spi-bfin-sport.c
spi-bfin5xx.c
spi-bitbang-txrx.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spi-bitbang.c spi: bitbang: Fix NULL pointer dereference in spi_unregister_master 2019-07-10 09:54:31 +02:00
spi-brcmstb-qspi.c
spi-butterfly.c
spi-cadence.c spi: cadence: Correct initialisation of runtime PM again 2021-07-28 11:12:18 +02:00
spi-cavium-octeon.c
spi-cavium-thunderx.c spi: spi-cavium-thunderx: Add missing pci_release_regions() 2020-01-12 12:11:53 +01:00
spi-cavium.c
spi-cavium.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spi-clps711x.c
spi-coldfire-qspi.c
spi-davinci.c spi: davinci: Fix use-after-free on unbind 2020-12-29 13:47:09 +01:00
spi-dln2.c spi: dln2: Fix reference leak to master 2021-05-22 10:57:17 +02:00
spi-dw-mid.c spi: dw: Return any value retrieved from the dma_transfer callback 2020-06-20 10:25:14 +02:00
spi-dw-mmio.c
spi-dw-pci.c
spi-dw.c spi: dw: Return any value retrieved from the dma_transfer callback 2020-06-20 10:25:14 +02:00
spi-dw.h spi: spi-dw: Add lock protect dw_spi rx/tx to prevent concurrent calls 2020-02-05 14:18:06 +00:00
spi-efm32.c
spi-ep93xx.c spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare} 2018-11-13 11:14:52 -08:00
spi-falcon.c spi: spi-falcon: drop check of boot select 2017-09-01 11:33:22 +01:00
spi-fsl-cpm.c
spi-fsl-cpm.h
spi-fsl-dspi.c spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config 2021-09-22 11:45:18 +02:00
spi-fsl-espi.c spi: fsl-espi: Only process interrupts for expected events 2020-10-14 09:51:08 +02:00
spi-fsl-lib.c
spi-fsl-lib.h
spi-fsl-lpspi.c spi: fsl-lpspi: Prevent FIFO under/overrun by default 2019-11-24 08:23:28 +01:00
spi-fsl-spi.c spi: spi-fsl-spi: call spi_finalize_current_message() at the end 2020-01-27 14:46:35 +01:00
spi-fsl-spi.h
spi-gpio.c
spi-img-spfi.c spi: img-spfi: Fix pm_runtime_get_sync() error checking 2022-06-14 16:53:48 +02:00
spi-imx.c spi: imx: mx51-ecspi: Move some initialisation to prepare_message hook. 2018-12-29 13:39:11 +01:00
spi-iproc-qspi.c
spi-jcore.c
spi-lantiq-ssc.c spi: lantiq: fix: Rx overflow error in full duplex mode 2020-08-21 09:48:04 +02:00
spi-lm70llp.c
spi-loopback-test.c spi: spi-loopback-test: Fix 'tx_buf' might be 'rx_buf' 2021-07-20 16:17:30 +02:00
spi-lp8841-rtc.c
spi-meson-spicc.c spi: meson-spicc: add IRQ check in meson_spicc_probe 2022-02-08 18:16:29 +01:00
spi-meson-spifc.c spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe 2022-01-27 09:00:51 +01:00
spi-mpc52xx-psc.c
spi-mpc52xx.c
spi-mpc512x-psc.c
spi-mt65xx.c spi: mediatek: Avoid NULL pointer crash in interrupt 2022-02-08 18:16:28 +01:00
spi-mxs.c
spi-nuc900.c
spi-oc-tiny.c
spi-omap-100k.c spi: omap-100k: Fix the length judgment problem 2021-07-20 16:17:31 +02:00
spi-omap-uwire.c
spi-omap2-mcspi.c spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch 2019-12-01 09:14:14 +01:00
spi-orion.c spi: Convert to using %pOF instead of full_name 2017-07-19 11:56:23 +01:00
spi-pic32-sqi.c
spi-pic32.c spi: spi-pic32: Fix issue with uninitialized dma_slave_config 2021-09-22 11:45:18 +02:00
spi-pl022.c spi: spl022: fix Microwire full duplex mode 2021-11-26 11:40:22 +01:00
spi-ppc4xx.c
spi-pxa2xx-dma.c
spi-pxa2xx-pci.c spi: pxa2xx-pci: Balance reference count for PCI DMA device 2022-04-20 09:08:12 +02:00
spi-pxa2xx.c spi: pxa2xx: Fix use-after-free on unbind 2021-01-17 13:58:59 +01:00
spi-pxa2xx.h spi: pxa2xx: Allow 64-bit DMA 2018-05-22 18:53:56 +02:00
spi-qup.c spi: qup: call spi_qup_pm_resume_runtime before suspending 2020-04-02 16:34:11 +02:00
spi-rb4xx.c spi: rb4xx: Don't leak SPI master in probe error path 2020-12-29 13:47:09 +01:00
spi-rockchip.c spi: rockchip: initialize dma_slave_config properly 2019-11-24 08:23:33 +01:00
spi-rspi.c spi: rspi: Fix sequencer reset during initialization 2019-05-31 06:47:35 -07:00
spi-s3c24xx-fiq.S ARM: s3c: fix fiq for clang IAS 2021-03-03 18:22:39 +01:00
spi-s3c24xx-fiq.h
spi-s3c24xx.c
spi-s3c64xx.c spi: spi-s3c64xx: Fix system resume support 2018-08-03 07:50:20 +02:00
spi-sc18is602.c spi: sc18is602: Don't leak SPI master in probe error path 2020-12-29 13:47:09 +01:00
spi-sh-hspi.c
spi-sh-msiof.c spi: sh-msiof: fix deferred probing 2019-12-01 09:13:21 +01:00
spi-sh-sci.c
spi-sh.c spi: spi-sh: Fix use-after-free on unbind 2020-12-29 13:47:09 +01:00
spi-sirf.c
spi-slave-system-control.c
spi-slave-time.c
spi-st-ssc4.c spi: st-ssc4: Fix unbalanced pm_runtime_disable() in probe error path 2020-12-29 13:47:09 +01:00
spi-stm32.c spi: stm32: properly handle 0 byte transfer 2021-03-03 18:22:47 +01:00
spi-sun4i.c spi: sun4i: disable clocks in the remove function 2018-02-25 11:08:02 +01:00
spi-sun6i.c spi: spi-sun6i: Fix chipselect/clock bug 2021-07-20 16:17:35 +02:00
spi-tegra20-sflash.c spi: tegra20-sflash: fix reference leak in tegra_sflash_resume 2020-12-29 13:46:52 +01:00
spi-tegra20-slink.c spi: tegra20: Use of_device_get_match_data() 2022-04-20 09:08:22 +02:00
spi-tegra114.c spi: tegra114: Add missing IRQ check in tegra_spi_probe 2022-04-20 09:08:12 +02:00
spi-test.h
spi-ti-qspi.c spi: spi-ti-qspi: Fix return value handling of wait_for_completion_timeout 2022-06-14 16:53:48 +02:00
spi-tle62x0.c
spi-topcliff-pch.c spi: spi-topcliff-pch: Fix potential double free in pch_spi_process_messages() 2021-07-20 16:17:31 +02:00
spi-txx9.c
spi-xcomm.c
spi-xilinx.c spi: xilinx: Detect stall with Unknown commands 2017-12-29 17:53:47 +01:00
spi-xlp.c spi: xlp: fix error return code in xlp_spi_probe() 2017-08-08 11:36:07 +01:00
spi-xtensa-xtfpga.c
spi-zynqmp-gqspi.c spi/zynqmp: remove entry that causes a cs glitch 2020-04-02 16:34:13 +02:00
spi.c spi: Fix erroneous sgs value with min_t() 2022-04-20 09:08:08 +02:00
spidev.c spi: spidev: Align buffers for DMA 2020-08-21 09:48:15 +02:00