Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4242122ybf; Tue, 3 Mar 2020 23:43:59 -0800 (PST) X-Google-Smtp-Source: ADFU+vvw3QS40tl+lr7zw9L9tNGR1QO5xEuEgwuvF6WsaZl8F5d5rnobbt0G50I9zxQtiMwT6lss X-Received: by 2002:a9d:6548:: with SMTP id q8mr1387798otl.356.1583307838762; Tue, 03 Mar 2020 23:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583307838; cv=none; d=google.com; s=arc-20160816; b=Yad0whjRY1QMO3VPqGB6uSsB4dEWNCeZfej6hncX3NohZe3+TWytp5lb9GV8xjW6c+ 9EV7JQpfDT6D0FiiPKFkaNn4NE/XLzt1qE+NBF6EEmHWBJ58mww57yUPAv9+EJmajJYn CgzezQi0GUeRgzSDEdv7U+fQkTq/dMb/1/OT101U1NlbLspqWjsw7ZK0QSUXq/Ji4Eg9 m66yrJEXffctbKlwgbfkjGuwl1D9bN//PYPJFLbCksbVcPqdbDjUKY+jOJtKIHQq3Cbt Mio4z+h1s8XEwYgEIvjU5SCz79BpaLKyF0oMxY3XXXMh68G4MDhXtDjLv37BqjQqbmL5 UunA== 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=8qfiF1JKhG0mrt/OgfCJuZM/2Izclz7AEG9/yixgqhQ=; b=JEwnb64uhbkUOXB57VItGCbjT6VUE8DrxaD0X5NLW93HaWBmrM4Q7xVKitjylv8OgA XrY15jmnwlEqGDaRIP+uXEspwju8sz96aYRVbwAcqFzD6bhUdK6dxSpqQ6aN5KAkVvcl hg2sfxGjWM2odcdYfjnZ3sBCx3IoeghXxA6huZfRG9FIB6xT2ZC9dFKnKa+tRFcKEMYN 0XcJYQEtXuW50y+EhOOunXHSHL/1rbMT3dLZEw5Gf4zBbzA2Yx6nwPNPOCi5sMgx0G+1 rcFwu0eRSNm/VO0ynGSwqpEmX5iFNo7O+aRcpviBoBOkakB6RXBssR32PLQg07/7yUn6 Q0+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fb7xo1+h; 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 i6si767532otj.24.2020.03.03.23.43.47; Tue, 03 Mar 2020 23:43:58 -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=Fb7xo1+h; 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 S1728640AbgCDHme (ORCPT + 99 others); Wed, 4 Mar 2020 02:42:34 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40425 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728486AbgCDHmc (ORCPT ); Wed, 4 Mar 2020 02:42:32 -0500 Received: by mail-pg1-f193.google.com with SMTP id t24so581620pgj.7; Tue, 03 Mar 2020 23:42:31 -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=8qfiF1JKhG0mrt/OgfCJuZM/2Izclz7AEG9/yixgqhQ=; b=Fb7xo1+hcswdrEmZ0Ao2l2+UmxCRa3DJk/uJbhRK5zh2wyiCsaQD6wAxr6lEJHRrWe g9t1IZv9tXw4p5ml8f2Zry5kLXtT992rgflFKZILMKy5te+XMX3tnCcag43MaLpCxt8c v6CaJAbpMbuy2SKDw7qRj7Pe6xWucem5zMZgaJGcB+8hfcv0NxifFjmdI3HRKS2MEpA5 KMPDYWug4Ud5hDB0tvY4nbYrFFFwdyL4AXOv+e3XjC2JmKbSlvlYjKqAaMZRuwkaG74I p9tb7/TRwJzfxLdmSTttIk4RC7p3OLr+chOqGdaGOD0k2E3YxoXqRWyUcGzqd60B4uh+ cY4A== 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=8qfiF1JKhG0mrt/OgfCJuZM/2Izclz7AEG9/yixgqhQ=; b=iW5k6iuRTya4WbENePefB0Jhk98WL+MYGebP5osUSy7TRDDjT17A1xAB9eMhCQoPeh K3NhhpFS90R8284uRCQRavD0XMaJrvZNGZYkDCQ7AR1nUgXEnPXTgJ5FLQYn7TUHku0M /qgoJvzA1ZYZ3oeu5HZrY2zPh+Ivv0SZgDJvfWOV41V1blNSry7QlZ0LpsnOLbjGtBa5 jpB8OXf3Tt9yC7A/O/sYD2bxc4tP8r+eCnujHGL1QNaTKmqKraxRoBxMNCGHIChan8Zb JQbY4rZxJQREa7KSrNx2/R1YRui+DHO0v2hL3TypQcufUfcsZSLHfpP6O4o96hCTa9i4 W/3w== X-Gm-Message-State: ANhLgQ1ikRYzGUksjVsqNEQo/u8kpQlKk2OTlbw6YUr11JDLkPBCMB4+ 18GLoLi5N6aohmDc7t3nahE= X-Received: by 2002:a63:5c4:: with SMTP id 187mr1470272pgf.348.1583307751056; Tue, 03 Mar 2020 23:42:31 -0800 (PST) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id k24sm24097374pgm.61.2020.03.03.23.42.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2020 23:42:30 -0800 (PST) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, arnd@arndb.de, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 3/3] mmc: host: hsq: Support request_atomic() API Date: Wed, 4 Mar 2020 15:42:02 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 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 59d2776..fdbaa98 100644 --- a/drivers/mmc/host/mmc_hsq.c +++ b/drivers/mmc/host/mmc_hsq.c @@ -41,7 +41,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.9.1