Re: [PATCH v6 0/3] fix runtime PM for SD card readers
From: Martin K. Petersen
Date: Tue Jul 27 2021 - 00:15:54 EST
On Sun, 4 Jul 2021 09:54:00 +0200, Martin Kepplinger wrote:
> (According to Alan Stern, "as far as I know, all") SD card readers send
> MEDIA_CHANGED unit attention notification on (runtime) resume. We cannot
> use runtime PM with these devices as I/O always fails in that case.
>
> This fixes runtime PM for SD cardreaders. I'd appreciate any feedback.
>
> To enable runtime PM for an SD cardreader number 0:0:0:0, do:
>
> [...]
Applied to 5.15/scsi-queue, thanks!
[1/3] scsi: devinfo: add new flag BLIST_MEDIA_CHANGE
https://git.kernel.org/mkp/scsi/c/f591a2e0548d
[2/3] scsi: sd: send REQUEST SENSE for BLIST_MEDIA_CHANGE devices in runtime_resume()
https://git.kernel.org/mkp/scsi/c/ed4246d37f3b
[3/3] scsi: devinfo: add BLIST_MEDIA_CHANGE for Ultra HS-SD/MMC usb cardreaders
https://git.kernel.org/mkp/scsi/c/9abe677951d1
--
Martin K. Petersen Oracle Linux Engineering