linux-stable/drivers/mtd/spi-nor
Evgeny Novikov 59929f9a57 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-17 09:48:45 +01:00
..
aspeed-smc.c
cadence-quadspi.c spi: cadence-quadspi: Abort read if dummy cycles required are too many 2021-03-04 10:26:27 +01:00
hisi-sfc.c mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-17 09:48:45 +01:00
intel-spi-pci.c
intel-spi-platform.c
intel-spi.c
intel-spi.h
Kconfig
Makefile
mtk-quadspi.c
nxp-spifi.c
spi-nor.c mtd: spi-nor: core: Add erase size check for erase command initialization 2021-03-04 10:26:48 +01:00