lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFrarv7AebbcfrJ6hWTX0B=iAxLOomQ+7VfAeKZU6eewAw@mail.gmail.com>
Date: Wed, 23 Jul 2025 12:25:29 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Sayali Lokhande <quic_sayalil@...cinc.com>
Cc: wsa+renesas@...g-engineering.com, avri.altman@....com, 
	adrian.hunter@...el.com, shawn.lin@...k-chips.com, linux-mmc@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH V1 0/1] Export an API to reinit SDIO card

On Mon, 21 Jul 2025 at 11:43, Sayali Lokhande <quic_sayalil@...cinc.com> wrote:
>
> 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.

Please use mmc_hw|sw_reset() instead.

Kind regards
Uffe

>
> 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
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ