linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1 0/1] Export an API to reinit SDIO card
@ 2025-07-21  9:43 Sayali Lokhande
  2025-07-21  9:43 ` [PATCH V1 1/1] mmc: sdio: Export an API to reinit the " Sayali Lokhande
  2025-07-23 10:25 ` [PATCH V1 0/1] Export an API to reinit " Ulf Hansson
  0 siblings, 2 replies; 4+ messages in thread
From: Sayali Lokhande @ 2025-07-21  9:43 UTC (permalink / raw)
  To: ulf.hansson, wsa+renesas, avri.altman, adrian.hunter, shawn.lin
  Cc: linux-mmc, linux-kernel

Some SDIO client drivers, manage external power to the SDIO card.
In such cases, the card may be power-cycled independently of the
MMC core's runtime PM state.
Currently, reinitialization of the SDIO card is tied to the runtime
PM resume path. However, if the card is powered off and on again before
the autosuspend delay expires, the runtime suspend/resume callbacks are
not triggered, leaving the card in an uninitialized state.

To address this, export sdio_reinit_card() so that client drivers can
explicitly trigger reinitialization after powering the card back on,
ensuring proper device state regardless of runtime PM behavior.

This change enables more robust handling of power-managed SDIO devices
in scenarios where runtime PM is disabled or insufficient.

Sayali Lokhande (1):
  mmc: sdio: Export an API to reinit the SDIO card

 drivers/mmc/core/core.h       | 1 +
 drivers/mmc/core/sdio.c       | 2 +-
 drivers/mmc/core/sdio_io.c    | 6 ++++++
 include/linux/mmc/sdio_func.h | 2 ++
 4 files changed, 10 insertions(+), 1 deletion(-)

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


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

end of thread, other threads:[~2025-07-23 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-21  9:43 [PATCH V1 0/1] Export an API to reinit SDIO card Sayali Lokhande
2025-07-21  9:43 ` [PATCH V1 1/1] mmc: sdio: Export an API to reinit the " Sayali Lokhande
2025-07-22  5:55   ` Christoph Hellwig
2025-07-23 10:25 ` [PATCH V1 0/1] Export an API to reinit " Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).