From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 191EDC433E1 for ; Sun, 28 Mar 2021 15:17:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E365861972 for ; Sun, 28 Mar 2021 15:17:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbhC1PRO (ORCPT ); Sun, 28 Mar 2021 11:17:14 -0400 Received: from comms.puri.sm ([159.203.221.185]:41270 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbhC1PQ7 (ORCPT ); Sun, 28 Mar 2021 11:16:59 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id C8C5EDFB8A; Sun, 28 Mar 2021 08:16:28 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmxW1Ic46DIB; Sun, 28 Mar 2021 08:16:27 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3 0/4] scsi: add runtime PM workaround for SD cardreaders From: Martin Kepplinger To: Alan Stern Cc: bvanassche@acm.org, jejb@linux.ibm.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-pm@vger.kernel.org, martin.petersen@oracle.com Date: Sun, 28 Mar 2021 17:16:23 +0200 In-Reply-To: <20210328145823.GA902609@rowland.harvard.edu> References: <20210328102531.1114535-1-martin.kepplinger@puri.sm> <20210328145823.GA902609@rowland.harvard.edu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, dem 28.03.2021 um 10:58 -0400 schrieb Alan Stern: > On Sun, Mar 28, 2021 at 12:25:27PM +0200, Martin Kepplinger wrote: > > hi, > > > > In short: there are SD cardreaders that send MEDIA_CHANGED on > > (runtime) resume. We cannot use runtime PM with these devices as > > I/O always fails. I'd like to discuss a way to fix this > > or at least allow us to work around this problem: > > In fact, as far as I know _all_ USB SD card readers send Media > Changed > notifications on resume.  Maybe there are some that don't, but I > haven't > heard of any. > > Alan Stern that makes me worry less about enabling this for "Generic", "Ultra HS- SD/MMC" then. thanks. it also makes me think about whether sd should implement this even for system-resume (not only runtime resume), but I guess that's a minor issue we could add at any time later. martin