Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: tmio: comment the ERR_PTR usage in this driver

It is not super obvious why the driver sometimes uses an ERR_PTR for the
current mrq. Explain why in comments.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240305105623.3379-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wolfram Sang and committed by
Ulf Hansson
0cd8fd15 a5f372a1

+3 -1
+3 -1
drivers/mmc/host/tmio_mmc_core.c
··· 972 972 return; 973 973 } 974 974 975 + /* Disallow new mrqs and work handlers to run */ 975 976 host->mrq = ERR_PTR(-EBUSY); 976 977 977 978 spin_unlock_irqrestore(&host->lock, flags); ··· 1007 1006 "%s.%d: IOS interrupted: clk %u, mode %u", 1008 1007 current->comm, task_pid_nr(current), 1009 1008 ios->clock, ios->power_mode); 1010 - host->mrq = NULL; 1011 1009 1010 + /* Ready for new mrqs */ 1011 + host->mrq = NULL; 1012 1012 host->clk_cache = ios->clock; 1013 1013 1014 1014 mutex_unlock(&host->ios_lock);