Skip to content

hack: scsi: sd: set expecting_media_change flag in suspend() too

This is part of a workaround we use to fix SD cardreader suspend. Initially we've split out suspend_runtime() just for this flag, but that should not have been done. We want to keep treating suspend() and suspend_runtime() equally.

Signed-off-by: Martin Kepplinger

@kyle.rankin says he still gets "media changed" errors when having these mount options:

/dev/sda1 /mnt/sda1 auto auto,nofail 0 2
/mnt/sda1/Music/podcasts /home/purism/gPodder/Downloads none auto,bind,nofail

which is the motivation for this change in order to fix it. But I think it should have been this way in any case from the beginning.

Merge request reports