Message ID | 20210704075403.147114-1-martin.kepplinger@puri.sm (mailing list archive) |
---|---|
Headers | show |
Series | fix runtime PM for SD card readers | expand |
Martin, > (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. Made a few changes (added "ignore" to clarify what the flag does and twiddled how the workaround is triggered in sd.c). Applied to 5.15/scsi-staging, thanks!
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