linux-stable/drivers/mtd/spi-nor
Evgeny Novikov 9f4972862f mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare()
[ Upstream commit 78e4d34218 ]

hisi_spi_nor_probe() invokes clk_disable_unprepare() on all paths after
successful call of clk_prepare_enable(). Besides, the clock is enabled by
hispi_spi_nor_prep() and disabled by hispi_spi_nor_unprep(). So at remove
time it is not possible to have the clock enabled. The patch removes
excessive clk_disable_unprepare() from hisi_spi_nor_remove().

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: e523f11141 ("mtd: spi-nor: add hisilicon spi-nor flash controller driver")
Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20210709144529.31379-1-novikov@ispras.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 11:40:34 +01:00
..
aspeed-smc.c
atmel-quadspi.c
cadence-quadspi.c spi: cadence-quadspi: Abort read if dummy cycles required are too many 2021-03-03 18:22:44 +01:00
fsl-quadspi.c mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB 2018-11-13 11:14:45 -08:00
hisi-sfc.c mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:40:34 +01:00
intel-spi-pci.c
intel-spi-platform.c
intel-spi.c mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write 2019-05-21 18:50:17 +02:00
intel-spi.h
Kconfig mtd: atmel-quadspi: disallow building on ebsa110 2019-01-09 17:14:47 +01:00
Makefile
mtk-quadspi.c
nxp-spifi.c
spi-nor.c mtd: spi-nor: fix silent truncation in spi_nor_read_raw() 2020-01-17 19:45:52 +01:00
stm32-quadspi.c