Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2047600ybh; Fri, 24 Jul 2020 03:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdqU8P7wWrVmIZFmRweGPfE0LZ757T/PCl6P2C5og6/i8Z6Kir8Z20vctuwbPNSKVTEM2j X-Received: by 2002:a17:906:8318:: with SMTP id j24mr6219723ejx.409.1595585388128; Fri, 24 Jul 2020 03:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595585388; cv=none; d=google.com; s=arc-20160816; b=bZFFfbtDqPKuufXF2CwPyM4A7LnEjNQT541g+K4QDR90+synLYNlThkBftxbNALy/1 9y0f4KBl4chWzb945vvMHO5uVcRTtiEm/Lr9qHDvPgTENE9PD/mGstpjPlsXwsHtTPCZ 1Tb1G6gBnMcb3lTOaEz12oep7mtpDeY9sDbb7sWKMlkJGHTeYPejG85/EaoLMx+RtYLb PDztwKMt62O7In/tJFhGoACf2vxgo0qX0Hk+SGCANQu1YCNPdcgu8nuF9SJQItfkkKi1 yIW2Mv2XeyfmWq0ub2AzzRt+XLMsycFKnrBd9K1oyIYcHhDEUlUSFTUQduWL+bxuILxE yB8g== 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:dkim-signature; bh=nx9Us6fvE/iUsMsXh7T0pNo8U/ECZ5BCyqR2VoGQYII=; b=tkcW63F77xjJ2sOQtHfUM4OolQ3VBQINgtPTu9KzuEo753rGfV1jNOfUxbPcWflwQe zA3cK0Nr55cQuV18ftE+LIKQxUi1iMhTiXYlsPi7nE2XXEaFr2HVIKLO8Ieueybz46Am qgHibDMkfjNn89jVsD5l5uN8DXGjtqcPmCFwUvA9TxOeGw+QIZa66Oz6EckfN/0+ctYW eJCyLYODrXz0br3DnTgoehKA2QOdhNMt07buYqHG4V4eQ4ZF3zIm99BilOWbOjyn8TVb nCT1Cxx4QJbMPUN1EzXZy8iGrkJ+L7wp2z6PmZZICScRQB/CHYDWgGh+sNOnE5NZ8VF0 cNQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ovkwk+3I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si273573ejx.211.2020.07.24.03.09.25; Fri, 24 Jul 2020 03:09:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ovkwk+3I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727844AbgGXKGy (ORCPT + 99 others); Fri, 24 Jul 2020 06:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgGXKGy (ORCPT ); Fri, 24 Jul 2020 06:06:54 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAACBC0619E4 for ; Fri, 24 Jul 2020 03:06:52 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id d198so4622575vsc.1 for ; Fri, 24 Jul 2020 03:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nx9Us6fvE/iUsMsXh7T0pNo8U/ECZ5BCyqR2VoGQYII=; b=ovkwk+3I/iXk5jeFsY/WfnMEn0KEmtJFr5cU2ehK7tZhja2S1NphgiLhEvk7cqabv8 N/1LOxgGvFFkl5RHpq3VVezuT9G15haWTj1gtmF3+1EdOBR+sjZ9vRynRxsvYGxi7H0b nfWNe4y7aUhgWKpJ8jYDqcRl0RqZSBCdG1xdVuNmHPy8y/Ga3m9NkM4JNtDnpP1Ozxl3 X+IIXCu3HpzX8bjyf5z1qVyriIzXccruUVD6bROhwWklNyLoivuFVHmX4AcUb+tQqUiA yoBeN4/sGSiWq6/f3tA+cBJDO+tV0Tuy8UmlH76iiA0d+kwCaS/6NNHIR6P6t3dhKhGx iyjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nx9Us6fvE/iUsMsXh7T0pNo8U/ECZ5BCyqR2VoGQYII=; b=IINNWcC22SkYthOPnZPR9QWJgoP2MXEn7F2ulMNoXw2Kgk96TlqldpAb16lTqRdVXC +E6KsRh2Fq/3NqApyffG5rlC5jhferjLoyvgy2cr2pPE9txjdWxV2cLVZNWDVJBsfmGe i2yDBZukZPYt+qH7cDaIcaiXoy98fmDtnxZrOk8aI3T7cEZD5J6STtuYrdU14YIyLcpe 95T+eaKXJxKJL3JuSO6sQWtkzdEXdNOBNs0qtrfriJdPlQHDPrBjTWlM00d74wPO7qA3 gMIzKR+HsXGFtcqe6SxRnj8dmIlWpQHjh7X7OQWrDnIaTZMZG1FvzwX7J+6kbL1ivocv WELg== X-Gm-Message-State: AOAM533jg+/CD+o+8/VM+QiAK4IUkXImFMas5tm2Mfom+ezhulX50iKr DdC8179JvGwVGbb32fDqCG3mFVXKNJXMNKn4zuYCWw== X-Received: by 2002:a05:6102:126a:: with SMTP id q10mr6577066vsg.35.1595585211891; Fri, 24 Jul 2020 03:06:51 -0700 (PDT) MIME-Version: 1.0 References: <20200716141534.30241-1-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Fri, 24 Jul 2020 12:06:15 +0200 Message-ID: Subject: Re: [PATCH] mmc: core: Initial support for SD express card/host To: Arnd Bergmann 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jul 2020 at 20:23, Arnd Bergmann wrote: > > 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. You are correct! In principle, the card would not be detected (it doesn't disappear as it never gets registered). Instead, it's left in "half-initialized" state, waiting for the nvme driver to take over. I simply didn't want to go that far, to introduce synchronizations steps between the nvme driver and mmc driver, but rather started simple. Perhaps we can discuss these things as improvements on top instead? What do you think? Kind regards Uffe