Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mmc: sdhci-of-dwcmshc: minor cleanups
@ 2026-05-21  8:35 Artem Shimko
  2026-05-21  8:35 ` [PATCH v2 1/3] mmc: sdhci-of-dwcmshc: improve delay and sleep handling with fsleep() Artem Shimko
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Artem Shimko @ 2026-05-21  8:35 UTC (permalink / raw)
  To: andriy.shevchenko, adrian.hunter, ulfh, p.zabel
  Cc: Artem Shimko, linux-mmc, linux-kernel

Hi,

This series introduces three non-functional cleanups for the Synopsys
DWC MSHC driver.

Patch 1 replaces udelay and usleep_range with fsleep,
following the kernel documentation recommendation for delays in
non-atomic contexts.

Patch 2 removes redundant IS_ERR() checks for bus_clk in suspend/resume
paths where the called functions already have internal protection.

Patch 3 converts error handling in probe paths to use dev_err_probe()
macro for more compact code and better deferred probe debugging.
--
Best regards,
Artem

ChangeLog:
  v1: 
    * https://lore.kernel.org/all/20260518110034.142587-1-a.shimko.dev@gmail.com/T/#t
  v2:
    * Remove redundant "Error:" prefix from dev_err_probe() message
    * Put dev_err_probe() call on a single line
    * Replace usleep_range() with fsleep(midpoint) as primary change
    * Reword commit message to clarify the purpose

Artem Shimko (3):
  mmc: sdhci-of-dwcmshc: improve delay and sleep handling with fsleep()
  mmc: sdhci-of-dwcmshc: remove redundant IS_ERR() check
  mmc: sdhci-of-dwcmshc: use dev_err_probe() to simplify error paths

 drivers/mmc/host/sdhci-of-dwcmshc.c | 50 ++++++++++++-----------------
 1 file changed, 20 insertions(+), 30 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-05-22  7:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21  8:35 [PATCH v2 0/3] mmc: sdhci-of-dwcmshc: minor cleanups Artem Shimko
2026-05-21  8:35 ` [PATCH v2 1/3] mmc: sdhci-of-dwcmshc: improve delay and sleep handling with fsleep() Artem Shimko
2026-05-22  6:01   ` Adrian Hunter
2026-05-22  6:58     ` Artem Shimko
2026-05-22  7:11       ` Adrian Hunter
2026-05-21  8:35 ` [PATCH v2 2/3] mmc: sdhci-of-dwcmshc: remove redundant IS_ERR() check Artem Shimko
2026-05-21  8:35 ` [PATCH v2 3/3] mmc: sdhci-of-dwcmshc: use dev_err_probe() to simplify error paths Artem Shimko
2026-05-22  6:17   ` Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox