WSL2-Linux-Kernel/drivers/mtd/spi-nor
Evgeny Novikov 321a355777 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 19:17:01 +01:00
..
controllers mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-18 19:17:01 +01:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
Makefile mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
atmel.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
catalyst.c
core.c mtd: spi-nor: remove redundant continue statement 2021-06-21 11:17:10 +05:30
core.h mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
eon.c
esmt.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
everspin.c
fujitsu.c
gigadevice.c
intel.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
issi.c mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
macronix.c mtd: spi-nor: enable locking support for MX25L12805D 2021-05-27 20:04:38 +05:30
micron-st.c mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode 2020-11-09 19:00:14 +05:30
otp.c mtd: spi-nor: otp: implement erase for Winbond and similar flashes 2021-06-09 23:34:16 +05:30
sfdp.c mtd: spi-nor: sfdp: save a copy of the SFDP data 2021-06-15 23:18:31 +05:30
sfdp.h mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
spansion.c mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
sst.c mtd: spi-nor: sst: Add support for Global Unlock on sst26vf 2021-02-05 15:24:59 +02:00
swp.c mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr() 2021-03-31 22:41:34 +03:00
sysfs.c mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
winbond.c mtd: spi-nor: otp: implement erase for Winbond and similar flashes 2021-06-09 23:34:16 +05:30
xilinx.c
xmc.c