Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3245779ybh; Mon, 16 Mar 2020 19:05:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtjNjvRRMTBWmQee7d6pJqwy+ck2gp+72rKMO2zxiHBqRcUWBBrAC49FFe5Fn+jNW0sgJTV X-Received: by 2002:a9d:525:: with SMTP id 34mr1775274otw.80.1584410752816; Mon, 16 Mar 2020 19:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584410752; cv=none; d=google.com; s=arc-20160816; b=drFs+V1EACFoSX52k6DCJqw623+aWZolMI9hPIIPU11p27kSvmMjbua+wjc9yWa/2z bGP9uYzdpBjNjAeFMNxbTP2qNVhYZ9J9ykSFtK0030pCR1FMxyU8u04YLgjHQ+oUo/er Bqb4MMOlCuHeXG1498l//yDrLKtzP2fsbuvX+gYTGqdnU0pqUmyzvTWNfT1lJUtECZUv eMc7ZL5YvygCHRey++H37EMh6j94berUWxgCCuas9B7RBjAA2jZX7qeo8tCjeKXOmpRf 4BalmRb+3bEJzsY2fxQ+y/0iv4VAa/4NlzF9PBhD1H/3fhgAXCWQ4pBd12nE67iokQ8h Acrg== 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=SAIHfbIIQekHhAbbBxMugf/Z3JyJbRfD6jfI9jRWXU0=; b=jBFLjwp+LaFqPJaC0UpMvYDgTI8JuHSeIksd49RnInf/7P7F8O/ytUN3MbXwbwoYsK ORMEYfPKUcmOFtwdphL2PBqpbAYO9DuFa9kuCYWABuNJiDQL+eG9VtPuNKhRy5ySvvt1 UWzqFN4TCbaA4VAerEDcRsdT5r7cfb6P4nMoMGl0ixaMD/ZAm/oi5YLOiMcQF0gxNecT 6onyMrWDCcYwor57uZtM5KhxDEa7mIPgwZiU9PbF2k5ZZs7JUrsUFuxGRAT3fcGTcDbu /Yg42z1ZQ2Hu2Xi50Jr+MdpKuRzzJBrDUo0pTXHCB39CtYpJzNfiOm5KHZNPWxlARnXu 6/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=brmuR0X4; 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 v81si942848oia.114.2020.03.16.19.05.41; Mon, 16 Mar 2020 19:05:52 -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=@gmail.com header.s=20161025 header.b=brmuR0X4; 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 S1726619AbgCQCAf (ORCPT + 99 others); Mon, 16 Mar 2020 22:00:35 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:33001 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbgCQCAf (ORCPT ); Mon, 16 Mar 2020 22:00:35 -0400 Received: by mail-qt1-f195.google.com with SMTP id d22so16208779qtn.0; Mon, 16 Mar 2020 19:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SAIHfbIIQekHhAbbBxMugf/Z3JyJbRfD6jfI9jRWXU0=; b=brmuR0X4B5q0JVb9Xm3u5iX3WuRqdZyuSBwF+7l+LsUuDvD/h+IRJKKqOkMTwyMBNN 9TbFpOAQMB5BRgxcAEzMTJcLu0Ckhvfl/RN521/b3h9p/UnjDR00WQLBT0nDAmYTRSVQ vY6QuQoGGoJKDrO4FTe7FmHpkqmCL7C5PA+2huy4FHXyxbCOeW7kyTslWDWI7fNxfs4j 1K48m9SygMEwh3Iqy+W8s9WDTMWISwDHlQhu4T2gIeYz766LuJba9WFahAq6vj7Ceeoe c8ym+2HL9nL0ojkgKYPDCUpVlYZ3qYj9mQSYcE28Y/4MpSN8/Xc+tKlFa8hssgV7eLgm KnJA== 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=SAIHfbIIQekHhAbbBxMugf/Z3JyJbRfD6jfI9jRWXU0=; b=OyXsf9VyTLBxPNcYoLQb7HnXAGesSErnB1UEfsEd1Q5oppJoZtQWvzbMoKZe0ady7B UHXU2FBc0q1K5EjCxbWXRveSmLw2/nLc8UTYbzbk6JbdmpBAT6+2G3wi+eEO4iNvZ5Ud +w59khjV0EoXgp19eFl1qskgq5tQP10ha+Uzf1OxzuW5S0fZMvIoyzIDaFu3bqWyH4Jk G5rDqgYC61b+mQvNqQDBzZDxQfmG4BNMr/imhUGK3uR2CsIF2pFgrCZugEQPZb8uvKDB m39m9QLb5VdfO9f9M+GdqPiU3vIUm4F1H18MrSaLGRvQJOcxk2FOnOZBe1e+oFqh3hhY i4GA== X-Gm-Message-State: ANhLgQ1zf+q+nBPfGYP8iregg199cQzMF+h4qmE17FwoS1qn7tpfwt7T IRF+vOGiwvCoWtDqMIPNnkzYzXf6ovJIyFVe1Wc= X-Received: by 2002:ac8:1add:: with SMTP id h29mr3220938qtk.258.1584410434019; Mon, 16 Mar 2020 19:00:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Baolin Wang Date: Tue, 17 Mar 2020 10:00:22 +0800 Message-ID: Subject: Re: [RESEND PATCH 1/3] mmc: host: Introduce the request_atomic() for the host To: Ulf Hansson Cc: Adrian Hunter , Orson Zhai , Chunyan Zhang , Arnd Bergmann , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List 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 Mon, Mar 16, 2020 at 7:48 PM Ulf Hansson wrote: > > On Wed, 4 Mar 2020 at 08:42, Baolin Wang wrote: > > > > The SD host controller can process one request in the atomic context if > > the card is nonremovable, which means we can submit next request in the > > irq hard handler when using the MMC software queue to reduce the latency. > > Thus this patch adds a new API request_atomic() for the host controller > > and implement it for the SD host controller. > > > > Suggested-by: Adrian Hunter > > Signed-off-by: Baolin Wang > > --- > > drivers/mmc/host/sdhci.c | 27 +++++++++++++++++++-------- > > drivers/mmc/host/sdhci.h | 1 + > > include/linux/mmc/host.h | 3 +++ > > 3 files changed, 23 insertions(+), 8 deletions(-) > > I think the code split of the changes in the series can be improved a > bit, so I suggest you move the code around in the series to reach > this: > > 1. A patch that adds the new host ops callback, combined with the > change you have in patch3. > 2. The sdhci core specific changes, from $subject patch. > 3. The sdhci-sprd changes, as in patch2. > > Other than that, I think the code looks good to me, besides a minor > comment on patch2, see separate reply. Sure. Will do as you suggested. Thanks. -- Baolin Wang