Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2884641pxv; Sun, 4 Jul 2021 00:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/bvMFsvYtfAPgu5NB3eJTX4bshGT6urPcVEBLocuOb+zJrh8kEff4j3X4hftK7Dm76pR2 X-Received: by 2002:a05:6e02:1d10:: with SMTP id i16mr6076326ila.5.1625385336640; Sun, 04 Jul 2021 00:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625385336; cv=none; d=google.com; s=arc-20160816; b=NWvHBCTwcK9rbV+tU+KOHu8JektrmVOa2+0QiyCE/UixdnHdaWDCik7alRaY4pbvKt oY3RIJ/2IBLnDdBe/d/Zus54ZB+fJz0sVYDFu3vkb6Z1/tebzY4kZp5cJRm+0HOkBjKt 5cM11qgkbjL3ymf1BYCFXCkeUesE7b68zYZmu0DFcVrcp4SaEhyKWHCESt5ZLIbTvoil ntmhw5APbD8ZTcaQalkqCeHj6eklE4hzWmji2Au6mjBL2RptPhHamLssrSCGgxadJ0B2 9pN4KTvnTmJeiW6uqVIQjQYfzcPX43ghBVkNewfs73buvi43cQQDlzITLyvZvMpDUMC1 MGVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Wg7eVf+u9qLEn8VTfoDPDp3u3C7bPuLEWlxI477XRmw=; b=zOxn5rf9Rs9O9g8s59gvwwPeqGi4CPO4glE4UoPQh6J94Ea7pEjVoy8Wvj2JhDrlay UnEk1MyknWRxjuuAS49N2Ni1TIYhBdX4HrXQ8XgUzQmkI/iZPIfbI6vvUR0OBeokeyxF UKoTvLboygdgieaf8toVs0smGb1yXApw7/DPy6Q6awo60qJMKzcbwOIr9064lgLje+Xf KtF8wd14VV6JLTeWBISpEBBpTzUynW9rf6rgkBIShgVafiVlmzvclg6Jsb+yWu7ixxi0 Ufm2Z3xYgN4T7hMwAy4SHNnQroO2Mwn+j2wAilp61XKLTsdhX5eiAxlRACSg9LUe1XF6 Ai+A== 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 k11si2893640ilo.114.2021.07.04.00.55.12; Sun, 04 Jul 2021 00:55:36 -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 S229639AbhGDH5A (ORCPT + 99 others); Sun, 4 Jul 2021 03:57:00 -0400 Received: from comms.puri.sm ([159.203.221.185]:33930 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbhGDH47 (ORCPT ); Sun, 4 Jul 2021 03:56:59 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 6F293DF4A4; Sun, 4 Jul 2021 00:54:24 -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 ZQPgz9CQlyPN; Sun, 4 Jul 2021 00:54:23 -0700 (PDT) From: Martin Kepplinger To: martin.kepplinger@puri.sm, bvanassche@acm.org Cc: hch@infradead.org, jejb@linux.ibm.com, kernel@puri.sm, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, stern@rowland.harvard.edu Subject: [PATCH v6 3/3] scsi: devinfo: add BLIST_MEDIA_CHANGE for Ultra HS-SD/MMC usb cardreaders Date: Sun, 4 Jul 2021 09:54:03 +0200 Message-Id: <20210704075403.147114-4-martin.kepplinger@puri.sm> In-Reply-To: <20210704075403.147114-1-martin.kepplinger@puri.sm> References: <20210704075403.147114-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These cardreader devices issue a MEDIA CHANGE unit attention not only when actually a medium changed but also simply when resuming from suspend. Setting the BLIST_MEDIA_CHANGE flag enables using runtime pm for SD cardreaders. Signed-off-by: Martin Kepplinger Reviewed-by: Bart Van Assche --- drivers/scsi/scsi_devinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c index d33355ab6e14..8ac0a11ac541 100644 --- a/drivers/scsi/scsi_devinfo.c +++ b/drivers/scsi/scsi_devinfo.c @@ -171,6 +171,7 @@ static struct { {"FUJITSU", "ETERNUS_DXM", "*", BLIST_RETRY_ASC_C1}, {"Generic", "USB SD Reader", "1.00", BLIST_FORCELUN | BLIST_INQUIRY_36}, {"Generic", "USB Storage-SMC", NULL, BLIST_FORCELUN | BLIST_INQUIRY_36}, /* FW: 0180 and 0207 */ + {"Generic", "Ultra HS-SD/MMC", "2.09", BLIST_MEDIA_CHANGE | BLIST_INQUIRY_36}, {"HITACHI", "DF400", "*", BLIST_REPORTLUN2}, {"HITACHI", "DF500", "*", BLIST_REPORTLUN2}, {"HITACHI", "DISK-SUBSYSTEM", "*", BLIST_REPORTLUN2}, -- 2.30.2