From patchwork Wed Mar 6 14:04:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 159747 Delivered-To: patches@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6205959jad; Wed, 6 Mar 2019 06:05:02 -0800 (PST) X-Received: by 2002:a2e:9d85:: with SMTP id c5mr2752525ljj.70.1551881102079; Wed, 06 Mar 2019 06:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551881102; cv=none; d=google.com; s=arc-20160816; b=wXVhnVS+FeiE2v5QLGGi1wqQMKcA9BKtK8AAFetAv5MkbFOZWccILAc1zDtVfZWM16 Pl+mYEvMj6+fOHg0s90M9CVGeUtV279yePpckpjS76kuqrRlMCL5OrQdMZ32YnrTHsD1 ZM1S3TLEP2ENN9ld+ODRSenjYs1RvBjEjNWhByxAy6YbWCpGpR2yKT4Ve3eH16th8kdu cTb7iXoYWJQoZ+TQF8uvu7RdpN7QBLWu3wZjs32wbYY6wD1L6kI2+LUalijCFSNesgBa AXTw8hKHYOkJBuy0eIaX8MdwE7fBC2vUuR9HcitD6dsGl6WFOCJ2yh0HMX6tlqthrcOF elSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g/Za4hq141wjla95OKLl48Gc6w1ISNKdaaNlUk5ERmI=; b=uq3YgKYMWcXokmNrdqjLTA/lgTNpeSlDtjaVbpBGZCeXG8b84YEpDZqPrb2ZW+iVgw RmLwT8Q885KewGLTdCZ/E4OlD11R1KxTRUx2LNEEprqedgxAVK4Z9H8mJB+/DdLgPhEa TDv1KHtkRIHyXXPZdg9E/DDsZRygUyPyLp3aFGY7j7LMqAcf9sUwgMW7rL5dlYYgFyiT jedy5OvtscMv8QyfNIwq5ObnnQcFNOg+zA05qeCFh0UklyUL98QTUv0rLSk8EEFXdxED WbGqOg2nmIjvS7haNFRPwT70vHf7SVmzMm6CPqArkBfHBRQ5nyXKXmJeB6wkgWV4OVRC Jb0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PPlYImpw; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p12sor552626lfk.37.2019.03.06.06.05.01 for (Google Transport Security); Wed, 06 Mar 2019 06:05:01 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PPlYImpw; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g/Za4hq141wjla95OKLl48Gc6w1ISNKdaaNlUk5ERmI=; b=PPlYImpw3uCGHuRsgpCi4OCVgzRykzOR8PtmsyTRQbC5+1iABqBR7zRsDePBKpJ2hb Zt3VdsBLZnsF8u8SzOraAP0E3I0qKUpdSUIF+dml72nDWt2u6FvruCLdOsfEqn0F77cD +heGv6KNiYsFfvxenmRo3f9KPFayV0tQKeLq8ZiAmic4r/KY6J6B/3z9wycdl+xc/VXz kBnOiglKkHovx6MdCk3eAiZzpwxL0Hz4G7DxwrMQ30UGVtCqQJsmNztUJZdqb5sTiJxL KX+VamQL6gPf1eR+My7kPfH6f6zz7RCZrScUpnmIIglaxlhduyhgueBOBg96yortr5UR /pNg== 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; bh=g/Za4hq141wjla95OKLl48Gc6w1ISNKdaaNlUk5ERmI=; b=VFuit+l3AM/Vz9gc6YIxqiOylEiOhTaxqDrhfJfpTz2xBLB6rPepdnHHQcf3spCEob dQEmlSiD5EujC+IOvXxL0kntqebc0ghltsMH90HKfdPwanJvdGjAb4tdgP380sir4IMY wbFG1d1yhBRrQ4skzlM1dmeSoP65v+c/ida5ygJUp//6seZjO++9HU/g4hgFhZv2hvAU /5hfU45pFChSBaql8pU2cLSJO3+SC0pdHLi2F/VBqWfRS1ZRFfZoZUfytMFVhl3KpgAa 91Itqt2q66mRPtjkSCjr11NCWcpkop+92Atrnj5Gbwpyug9c4QpT11BLGCsC/w6VWrqi ubfQ== X-Gm-Message-State: APjAAAXBMK0lTBLk3mesCBV8YKddi02+XCC1qOqsisFV56P5N77G3ay/ 4zCstaAq0NovDKXT+7px4iYqE3Le X-Google-Smtp-Source: APXvYqw1SYiMum+GIfBMQhBNYlOsLfrFAZzMaNkxIBCP3NdtEp34jAeRiuBVYfTgcB8Oqva9QLsM6Q== X-Received: by 2002:a19:385a:: with SMTP id d26mr1350577lfj.137.1551881101428; Wed, 06 Mar 2019 06:05:01 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id o12sm343734ljc.37.2019.03.06.06.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 06:05:00 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ludovic Barre Cc: Russell King , Linus Walleij , Ulf Hansson Subject: [PATCH 1/6] mmc: mmci: Don't share un-implemented DMA functions Date: Wed, 6 Mar 2019 15:04:51 +0100 Message-Id: <20190306140456.28187-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190306140456.28187-1-ulf.hansson@linaro.org> References: <20190306140456.28187-1-ulf.hansson@linaro.org> Some of the DMA functions are shared via mmci.h, however they are not implemented unless CONFIG_DMA_ENGINE is set. Therefore, add that constraint to the header file as well. Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h index 14df81054438..b368ed3acc29 100644 --- a/drivers/mmc/host/mmci.h +++ b/drivers/mmc/host/mmci.h @@ -429,6 +429,7 @@ struct mmci_host { void mmci_write_clkreg(struct mmci_host *host, u32 clk); void mmci_write_pwrreg(struct mmci_host *host, u32 pwr); +#ifdef CONFIG_DMA_ENGINE int mmci_dmae_prep_data(struct mmci_host *host, struct mmc_data *data, bool next); void mmci_dmae_unprep_data(struct mmci_host *host, struct mmc_data *data, @@ -439,3 +440,4 @@ void mmci_dmae_release(struct mmci_host *host); int mmci_dmae_start(struct mmci_host *host, unsigned int *datactrl); void mmci_dmae_finalize(struct mmci_host *host, struct mmc_data *data); void mmci_dmae_error(struct mmci_host *host); +#endif