Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3352912ybg; Mon, 28 Oct 2019 11:27:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYE+fDKowsnu48rYb6yKjkCnbneh3eUTyMkO5n+38+q8slq0OvHVA1DU+lZ2c/XX12ROzn X-Received: by 2002:a17:906:33cc:: with SMTP id w12mr471234eja.112.1572287265910; Mon, 28 Oct 2019 11:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572287265; cv=none; d=google.com; s=arc-20160816; b=C9PcAxSOFX/gknBDhWKMAuDXJhSek9WdOLXxX8hbTi20vk5TSmcepv4wW+32eZ6kjm jUfAuN0Uu+YXopmboO4QV/OmtqZbdr+xj0+s7M5hSFqx0lcTbnYLnfEaextZkBafQyEV c3vnjrNfX2K1TE3S1Fr5F37yZqI67ADvcWSZZUt8kv7CtLIBhk+WkSbooOPjHWLHFw4K 6qFus3UvM+LBM0VwCtHQMEpmQhsuV6HfPvKyTcK67v43AzhPn0ALkGhOQUGnTG9m1OdD E2qzmTcEUuv7Pk666SWEEQd/B4KhyNH4MXasQmN5d9PtN6nIuZ4rg2GLRShQdasT9xnb Hhjg== 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=S/zfjSlN7u+hfp01M44eaJLCnlc5zQ4qw+KWC99u9BM=; b=uBlXV3Cmeuv3QcLD61NOz3wHmi39g5cpjMXIweQBfcwuwxVpl5D1jFov9FcVpkFuj+ exR6eF01U5pLAMAdL3ocuPi7E2fPdvIwjRVX0bzcv+E5niY8xrE9SNUvWHw66vXAHzGx 91obUqFfzSwN2fyQUY6Al+w004axyE7al/IA8U54nL7PaujgBduvRtyk8En8OYdjADAz esG6LiKSeNEjsLwUt82dRqNNmmntail5N/ELix9rIL2NsMPbF0l+pfflXp9Dhq0xDrH9 ateMMhTk1bF3l9DoZaCgLyQbtEyzg0vhaFXsucLJvS/exrGmFsNKahvwGy/IvKYKHS9E ZdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sytDF/Lp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a9si8652471edm.231.2019.10.28.11.27.22; Mon, 28 Oct 2019 11:27:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sytDF/Lp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1733292AbfJ1I1Z (ORCPT + 99 others); Mon, 28 Oct 2019 04:27:25 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35844 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731531AbfJ1I1Z (ORCPT ); Mon, 28 Oct 2019 04:27:25 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so10319464ljj.3 for ; Mon, 28 Oct 2019 01:27:22 -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=S/zfjSlN7u+hfp01M44eaJLCnlc5zQ4qw+KWC99u9BM=; b=sytDF/LpIKW8EXGur4LbXrE+yh/7bGUeOhM7ESSOCmAeRXGFamQM2GqvB/dnrnhOOz HJ1oawodXFoA4G9SydsaWIwhhP5dUu4+2FLWegqBQIRpUPaGHS/J45+LmfVtYndtu/2U SOycRGXSLdPZ3Y/M3qEMaCUHMPn3Q+v2bJoADHxDuRiLE/lDAkyLmefqDArHLxZTnDLL QXFvKSwImjfWrIldauQ3y6ybc/8trdmlTlBijYZoR9FlTEbUoJGU04JuPkhn0irc6mSF VSppXpahjxIP7jMZgJLfy5Avdx+ofpu3y3PJ5q/P+3lTW1o2JRQ3uFL3RWbeR6hf6gpy WbbQ== 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=S/zfjSlN7u+hfp01M44eaJLCnlc5zQ4qw+KWC99u9BM=; b=jzRuPZNENlsDrXG+GPoFxTGJL4fshS4oajRTAij32bGZJKZY0aNkL4YOOcrX09DXKN MTslA3NYTgMmzzZlEahP+06jxOzM9DKtT+yAUuvfG9SPVXYPNpCQbfbqi1SEnRxx0Ijg flmA5PtWGZ4fxLsrbIA0NB6X1312GF3lvrE4YWaDAzzJuCBbqlC9cdAzVS8Rr2CT8Cw+ 2nRAaiMhOpHoSSbjhUUWyouSlWscWbZcykNYwGeadHPlx9bdaeZNikjUk+n0cQnqbuoT ZW6Cf20m6wobaeKsR/AaTk1knE7WEEWhKrnzk9y3ffuo/SLgkQYwN5VaCGHbVjBFayin a7qA== X-Gm-Message-State: APjAAAVySNoBoE6tod6tX/7y68DVCRxmn1aAwN4G0c5xyQ8BMO0WVZ1A LYcvoLlvUlvVsmCcbIgsh0T4xah3h+Wbc+NDJD/cjA== X-Received: by 2002:a2e:a415:: with SMTP id p21mr10848136ljn.59.1572251241736; Mon, 28 Oct 2019 01:27:21 -0700 (PDT) MIME-Version: 1.0 References: <487c2e45810c6dc6485638474136e375cb567807.1571722391.git.baolin.wang@linaro.org> <50696230-75f4-3de4-7424-c33d531ee159@intel.com> In-Reply-To: <50696230-75f4-3de4-7424-c33d531ee159@intel.com> From: Baolin Wang Date: Mon, 28 Oct 2019 16:27:09 +0800 Message-ID: Subject: Re: [PATCH v4 2/3] mmc: host: sdhci: Add request_done ops for struct sdhci_ops To: Adrian Hunter Cc: Ulf Hansson , asutoshd@codeaurora.org, Orson Zhai , Chunyan Zhang , Arnd Bergmann , Linus Walleij , Vincent Guittot , baolin.wang7@gmail.com, linux-mmc , LKML 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 Hi Adrian, On Mon, 28 Oct 2019 at 16:20, Adrian Hunter wrote: > > On 22/10/19 8:58 AM, Baolin Wang wrote: > > Add request_done ops for struct sdhci_ops as a preparation in case some > > host controllers have different method to complete one request, such as > > supporting request completion of MMC software queue. > > > > Signed-off-by: Baolin Wang > > --- > > drivers/mmc/host/sdhci.c | 12 ++++++++++-- > > drivers/mmc/host/sdhci.h | 2 ++ > > 2 files changed, 12 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > > index b056400..850241f 100644 > > --- a/drivers/mmc/host/sdhci.c > > +++ b/drivers/mmc/host/sdhci.c > > @@ -2729,7 +2729,10 @@ static bool sdhci_request_done(struct sdhci_host *host) > > > > spin_unlock_irqrestore(&host->lock, flags); > > > > - mmc_request_done(host->mmc, mrq); > > + if (host->ops->request_done) > > + host->ops->request_done(host, mrq); > > For hsq, couldn't this result in sdhci_request() being called interrupt > context here. Right, now it did not support. > > To prevent that you would need to add a condition to sdhci_defer_done() so > it always defers when using hsq. Yes, but now the condition can be matched in sdhci_defer_done() when using hsq. So no need to worry that the sdhci_request() will be called in interrupt context in this patch set. Thanks. -- Baolin Wang Best Regards