Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp184935pjb; Thu, 16 Jul 2020 11:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO++ISjwFMSX210BAxQpa98maQDnxwCDOZTcrKINzVVNcPgSxGzZE3nE/EbKKPSOGXIii4 X-Received: by 2002:a17:906:3b44:: with SMTP id h4mr5348741ejf.89.1594923819891; Thu, 16 Jul 2020 11:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594923819; cv=none; d=google.com; s=arc-20160816; b=zMEt+sgRlwK9L+aFRxr9PhkuiKd/MsLRs1P+GmiOT1V1zuE3a1ZqEhURWtOaxumfJ0 +zEX0u8lHidgXNJ7v0hWmlnbsG8V56aPtpknIy9Kv6+IxiN4lfKrLl2xRPpkobbP12iS 2hSjQoS/mutSRR19Wv6K6Kl6FUJuVc1taK0cnyA6zlunfKGfPCzOUxZ1KJa2vJ2kfEFI Z/MvuMgimP4gTSDxEj+ohRT3wmHQEzKbSjNWuBxNmcqObnPhe5/9r2X+YGhoO/uoH/rF nAOV0jueHtpTSH8cdiZJJMRiSSgG6o4i2j1BYLQOGtmYJs5UXKP0MZZHxmhlJY7uW7dx 10xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=vOywKuQjKVloz80cKjJVWY/zNsOIFyWOXng/mS6N2lk=; b=zINrrZKmxEqyqvgX/jUw070hXpToJxIz2aVkzWfBdCJ9+CfDWSylz1iX8hB2/uHLcl V2lR4Q7QVyxYVbaJVlUomSfJS0sBsRbjqTN2uSNaK8yQj36h93GpDA1BVAHORA1qdRpV 5gqTkbR47NyLVhbXaqZqcIKOakBAhgVnWYmUpStVIMTqdHDV6mEvguN7YMr/xy0RQQDX yiCigEE2ASGj4gMv6/mIv4m03FpRel/DS2NxK3U/KExV+YO4pgADU5aCN4WsNaJRw3+7 q/G4UKyVbhgU8UrEwVdEfl1Irt7d6SutbDfARywoavRjDNlvBxBfqnu3VXtO0UwP3pOV cM2g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si3727844eju.654.2020.07.16.11.23.16; Thu, 16 Jul 2020 11:23:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbgGPSXN (ORCPT + 99 others); Thu, 16 Jul 2020 14:23:13 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:52849 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727844AbgGPSXM (ORCPT ); Thu, 16 Jul 2020 14:23:12 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPSA (Nemesis) id 1Mn2Fb-1kfxPt3VPr-00k99o; Thu, 16 Jul 2020 20:23:11 +0200 Received: by mail-qk1-f179.google.com with SMTP id 80so6447878qko.7; Thu, 16 Jul 2020 11:23:10 -0700 (PDT) X-Gm-Message-State: AOAM530huo458TG5uk3Z/WsTLqhlmCFbrPZjAMEQAI827hRKlTINiWTw ez81v9L38s7QIwEJHT5pbXXDfw07c3Cu6qP0quk= X-Received: by 2002:a37:a496:: with SMTP id n144mr5371218qke.286.1594923789486; Thu, 16 Jul 2020 11:23:09 -0700 (PDT) MIME-Version: 1.0 References: <20200716141534.30241-1-ulf.hansson@linaro.org> In-Reply-To: <20200716141534.30241-1-ulf.hansson@linaro.org> From: Arnd Bergmann Date: Thu, 16 Jul 2020 20:22:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mmc: core: Initial support for SD express card/host To: Ulf Hansson Cc: linux-mmc , Christoph Hellwig , Rui Feng , linux-nvme@lists.infradead.org, linux-pci , "linux-kernel@vger.kernel.org" , Adrian Hunter , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:+TjDQ9YUAMYyAEtk98Cm3V/08UfVGlPkR6Yp9cG9e0a8gFt3h07 3AnnmZL7waJLYasGA6NDFjQPYJ1yyyRYpJf/wasOBsOi4+LI2SFJOwBHKzL+ITG6Sf69tP7 I88E1UDokMqPfftDjM+1wQ5thTYl46T59zRHIayUPGPWloZw6G0H3LF9seqGcwZPmxWguCy oxPxlBaX81A+9jNsiFEmA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:uZs/R89mfro=:SC6jXf7/yn75Xjer/U6coL +JsUU+t2kRt3Iq74fK9DOUlLz+2EjGqKwjd9492PCn8BA3abiZoUdTaxd3HjpTc2UNBRJLUFY MYI0aXbZ5Mtefnkrr1IU7+Ryex8gBsBFCJUd7wgc/q2NUpMjC3tKJ2t7B4WpFQT20q/JkBLgp GWHmjzhFTeviqwDElHZ3P1oUG4ILOZDtsTVcHUoL4YFKxuoGvE131PgZukPPGdjxZKf0aiRSP BAAWEeSCCR9LBNleJ13Jt97ia1cG09ET57QocXeE9lLse2ftTYG71PpibgmF49NVUnrDX5PxL GjlTebdmXKHddFzGNAa8SUKayjFDiJk3PajwcSbiAMf422F+sa3LkeAY7A/0B/YKNUI7mnhuZ 0QG1Ar2J3JYYg5ycoLvdiQ2w5TbUD0iwbrN/ZDiDpCSs2Qo+pFaUmLA0bBx0rjHbwqceF6tpu cn2FUBxzAEYDmWhuU1WeqEuIiKSJom0z0UvL14uLbPnlqhaTtSHiaoT4Zm0gW4br0FcvhxAQK 7TX9qqk/Do4JxM+Sd6yGIXwaRa/4EWQOV1XXXJkdDtF+RrhM4EhmWRohgb2D4HAbmGh4KxieG phUnjQZcH+8KsHRIhMddZnfz7qHITNM2DrZTyb32M787r1rkDH9bdJAjlLhmQXoRHxabzlItI 3wvfeM0Ob5O6SCpIp3NeBhhDa2cuSMH5WgAGlpQzy9M6aNj3FIhx4xFYEJ8cScIACQdNW5rXq onT1Ce7c2WI5PXhJZh9sco0+FW7g2jTjoYKtThNmchUQ1T1UBx75z9P7lgf1tsrU9lPGaCkIj B2lbFRovJGfGJ4Vaaw+7Hrhg4Y5Gmalr7VFQRIPR8fo3Lw1tE5XIaWFuxV8Rz6sG+5t7Zyv Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 4:16 PM Ulf Hansson wrote: > + /* Continue with the SD express init, if the card supports it. */ > + resp &= 0x3000; > + if (pcie_bits && resp) { > + if (resp == 0x3000) > + host->ios.timing = MMC_TIMING_SD_EXP_1_2V; > + else > + host->ios.timing = MMC_TIMING_SD_EXP; > + > + /* > + * According to the spec the clock shall also be gated, but > + * let's leave this to the host driver for more flexibility. > + */ > + return host->ops->init_sd_express(host, &host->ios); > + } > + > return 0; > } Does this need an additional handshake or timeout to see if the device was successfully probed by the nvme driver? It looks like the card would just disappear here if e.g. the nvme driver is not loaded or runs into a runtime error. Arnd