mirror-linux/drivers/mmc/core
Zhen Lei 5aebe9ba13 mmc: core: Normalize the error handling branch in sd_read_ext_regs()
[ Upstream commit fc02e2b523 ]

Let's use pr_err() to output the error messages and let's extend a comment
to clarify why returning 0 (success) in one case make sense.

Fixes: c784f92769 ("mmc: core: Read the SD function extension registers for power management")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
[Ulf: Clarified the comment and the commit-msg]
Link: https://lore.kernel.org/r/20221130134920.2109-1-thunder.leizhen@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:25 +01:00
..
Kconfig
Makefile
block.c mmc: block: Remove error check of hw_reset on reset 2022-10-17 11:51:33 +02:00
block.h
bus.c mmc: core: Use mmc_card_* macro and add a new for the sd_combo type 2022-07-13 12:44:41 +02:00
bus.h
card.h mmc: core: Add SD card quirk for broken discard 2022-10-06 13:31:13 +02:00
core.c mmc: core: Fix ambiguous TRIM and DISCARD arg 2022-11-18 10:39:22 +01:00
core.h
crypto.c
crypto.h
debugfs.c mmc: debugfs: Fix file release memory leak 2022-07-12 12:25:36 +02:00
host.c mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
host.h
mmc.c
mmc_ops.c
mmc_ops.h
mmc_test.c mmc: mmc_test: Fix removal of debugfs file 2022-11-25 11:51:44 +01:00
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
queue.c mmc: core: Fix WRITE_ZEROES CQE handling 2022-10-24 19:14:17 +02:00
queue.h
quirks.h mmc: core: Add SD card quirk for broken discard 2022-10-06 13:31:13 +02:00
regulator.c
sd.c mmc: core: Normalize the error handling branch in sd_read_ext_regs() 2022-12-31 13:32:25 +01:00
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
sdio_bus.c mmc: core: Fix kernel panic when remove non-standard SDIO card 2022-10-17 11:51:34 +02:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
sdio_ops.c
sdio_ops.h
sdio_uart.c tty: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
slot-gpio.c
slot-gpio.h