Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9679223ybl; Thu, 26 Dec 2019 03:32:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzQfpRvZsautAup+99cX7xxm18j2q6pccjcG2Nmhttlctjac+DE2SiE7CXz248FW+KsstTW X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr51223144otc.129.1577359940846; Thu, 26 Dec 2019 03:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577359940; cv=none; d=google.com; s=arc-20160816; b=PRSI2+7CeVdy+Vc1eXmvvO+k3YBQ0phPGl1jycCVvccAuuzGCjQFywUnrpzhHDxe7O 1J9iPdnK8gnlbn1Qudjx+e+WQnkNuAxbBReKl5FxBaxJCP2AjD2nAqtwP7QZaekZd76Z Ror0W7z6xvAEPLIkbf3bovfQiLi96U2npPTVNwI4BaTArvur6Y0SsDjjlUCYLPUfdoDR zWFDiIp5G5bEcjNtVa9zNwqnVqQ3T5+x6g6yoHHDf7kPLAwvFboTBDQzc364BVzNV5In fUEYn5PzJBQPNKfyK7MJlALloIyGXPZo7CHGCFZpLk1dD8Bp4ZjwtfxN+kDBwKhgK2n5 XzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=quLGNZb7ZQN7mncU2FVNFHiswtw4Rne1IcTNi3v2IO0=; b=ymQ5B8MRdMUhHzQ+WU1CPONTdLMD1ukGXjZIq1Ety4n9FgoQDwCmiwGV9neye7zj/V YZq8KPaSu60+sU+yTCE2g4zjn1ngv+SkHK0mtTvEQB8GkywsdMeUeepqYNhuwIbMtzOt jfa0pgDljQb2128CnOhVgsmVlrqB74WMUsaa3V18VbWCOtQvtN1RaaEWUSrVj98TztQu o+YEiJNgkiVfTduGnzd0v3rfXVuhVZNBRVzR3CmvyqPfvv23GE1PQi4mzGYhBgeVr9b5 eCghxdbJdcK3gyVCYk+AHIMsSbCkx1KxNrji6du6MtyEhthmJBT/UaQJJqe/N3kr3f3+ N8/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LMXn37wP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si15792096otl.138.2019.12.26.03.32.09; Thu, 26 Dec 2019 03:32:20 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=LMXn37wP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbfLZLau (ORCPT + 99 others); Thu, 26 Dec 2019 06:30:50 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38630 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725954AbfLZLas (ORCPT ); Thu, 26 Dec 2019 06:30:48 -0500 Received: by mail-pl1-f193.google.com with SMTP id f20so10365859plj.5; Thu, 26 Dec 2019 03:30:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=quLGNZb7ZQN7mncU2FVNFHiswtw4Rne1IcTNi3v2IO0=; b=LMXn37wP47nJbWqD4jAQyH9O5y4EcESwiOrSn9yCb/xrT3DBkElFltMm8ATx/3NpFM RC2oGnlI9DRBrhalHj4ioZ/vdBzl8GN4ChbsPYA6nW4YUHYs/5sGJF0wYzbCLeuSVFQ/ 3YJn9C54oMfu39aWjqpYs/c+tbPWjYm4voI9PMkRg1FN1RSopiIQBmviBUHknhZ5FgE8 K2E8fF36szqOefeZMn/zAzumP8yfUAAQikSZ7yfYB+NbY+e+zUZr+Hq51z6kOM7KAmD1 d6OlAGs//p5k6QU0yz8lOQo9x3zXHZOwqFUbS5uv5alyFR8aPS+clWP8vmNcbpgkEnKF 47WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=quLGNZb7ZQN7mncU2FVNFHiswtw4Rne1IcTNi3v2IO0=; b=RkSS2zmPdsw7ACDQeKlvbaxz4j1rcSfQFasn1ZfunSSrvKZb3NsxAys2AbBcYB39SG vWFYqLz/k4i1tCpwm1rNPDqpLJTWMvwVM90LnmTex06wlncih5oX4YbuX1uDJ3ouRjz6 rk4kq3+nvXv4JOdYImILKv7L5eiGpC0YuK24pCWL93mGh+TSaT+gdQnsHIcuLUR67TTx S/iLWdEAR0H3nkviK6ZrvsW07vkJgWfGW5srqubPjFSAv4XK6x1a37JMK001K+csfZzu 4qiy4y0SEiZbeVIKC+dGnrHXd3Rl1MJC2h3yLDXlnnvvrRD8khfSRnNHgFRyWxjbqvNI DYng== X-Gm-Message-State: APjAAAVW92U/5l51TP5n1U85YgwiZz7+qjttHaHxDpWrlcSJWHcxbGJd tA3dvLKP4LzzHXg480ZCK8I= X-Received: by 2002:a17:90a:c983:: with SMTP id w3mr12876025pjt.121.1577359848207; Thu, 26 Dec 2019 03:30:48 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id y6sm33743287pgc.10.2019.12.26.03.30.45 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Dec 2019 03:30:47 -0800 (PST) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, arnd@arndb.de, linus.walleij@linaro.org, baolin.wang@linaro.org, baolin.wang7@gmail.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] mmc: host: hsq: Support request_atomic() API Date: Thu, 26 Dec 2019 19:29:21 +0800 Message-Id: <5616323e045e6b64ec9c24e056609ee0f5a26f4a.1577358666.git.baolin.wang7@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support to submit a request by request_atomic() API. Signed-off-by: Baolin Wang --- drivers/mmc/host/mmc_hsq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmc_hsq.c b/drivers/mmc/host/mmc_hsq.c index f5a4f93..6a6bdd0 100644 --- a/drivers/mmc/host/mmc_hsq.c +++ b/drivers/mmc/host/mmc_hsq.c @@ -40,7 +40,10 @@ static void mmc_hsq_pump_requests(struct mmc_hsq *hsq) spin_unlock_irqrestore(&hsq->lock, flags); - mmc->ops->request(mmc, hsq->mrq); + if (mmc->ops->request_atomic) + mmc->ops->request_atomic(mmc, hsq->mrq); + else + mmc->ops->request(mmc, hsq->mrq); } static void mmc_hsq_update_next_tag(struct mmc_hsq *hsq, int remains) -- 1.7.9.5