linux-uconsole/drivers/mtd/spi-nor
Evgeny Novikov d2ff7a8b07 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-18 14:04:23 +01:00
..
controllers mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-18 14:04:23 +01:00
atmel.c mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040 2020-12-30 11:53:41 +01:00
catalyst.c
core.c mtd: spi-nor: core: Fix an issue of releasing resources during read/write 2021-05-11 14:47:13 +02:00
core.h mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040 2020-12-30 11:53:41 +01:00
eon.c
esmt.c
everspin.c
fujitsu.c
gigadevice.c
intel.c
issi.c
Kconfig
macronix.c Revert "mtd: spi-nor: macronix: Add support for mx25l51245g" 2021-05-11 14:47:13 +02:00
Makefile
micron-st.c
sfdp.c mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region 2021-03-04 11:38:37 +01:00
sfdp.h
spansion.c
sst.c
winbond.c
xilinx.c
xmc.c