Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2999527pxf; Sun, 28 Mar 2021 08:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg0zLel4E7C4Os7LKXV0w0U6XfCG37LuUAx/IqhfvBPqznKZ7xES5r+zCkCcLsD9JoUz1i X-Received: by 2002:a17:906:110d:: with SMTP id h13mr24988780eja.357.1616944850198; Sun, 28 Mar 2021 08:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616944850; cv=none; d=google.com; s=arc-20160816; b=BjUHq3DxaMvGb5zKIm7Gd/aWLQv6xoRF6p/S4BsLr7qD1DcT/c8/j3S0p5tRpjgX6v N+22Xbfezz4gipFi2WfPPtGKY+iq+4PIf9EEXzNZRk25xEM1L2MQaW2OLo0hOWSJjnkR iXTbMORMP8BQEfQzvUMhKGuXBepTBFJ1swXb/+s5uL2mAtX4/I2UTkdIKBYZTOhXvVhK lQzfTjRFXkZ/4ZyKZuoxetQythNVr8vlil6PEPeZ//3VujSEInBoJTiqcz9fErotcn8y yRL+6KhRKxaIde5nphWvmSHY51K66le78pEOIGpDLqeXAqIFuq6Ak5vZSYqTmEnAYXzk tCcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=E8RbIT0biMQ7ZRVIz7IU1ie4nR0e0SuUz6EUtNGTRr8=; b=EwbKnxjGC7ndK8FBEh49F6V2TsRkDmNRsJlgi2koalkN/M6rbCiTKeupNirYuMUxlN zM66ijPWBf1QsNXCNN55WxVwnuBLNKdleQpILndtNLde/LxWJSCtssFC6j7PKgwPmfW6 s0qT7Ri6Sgb0ed0TYfxVikaS3LI1Ht1eIS4/IO2oAYSCjOZ0goojR1zVEsukeeQnflDI kkZZQu4yLBZJy1FJx78I5jC51a5Fd69JWrRb3JBnT6eI3J3P0waxYXUnHew9uzjIzNcp 8GEeWrET5tlCngM4RKsdf4uxzfpVLpE9vkJ6Sh50dum0uVSk7RP5EjQfpAlS2W3vcpyd QCpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si10893964ejz.234.2021.03.28.08.20.27; Sun, 28 Mar 2021 08:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbhC1PRN (ORCPT + 99 others); Sun, 28 Mar 2021 11:17:13 -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