From patchwork Mon Aug 20 13:04:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 144612 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3952245ljj; Mon, 20 Aug 2018 06:05:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyGdLhCWofs/2bZLEGCUfLNImmDJzXqKmY4RRncR1rvCi4pXNo9HndIAt/CbB688IvgN+tL X-Received: by 2002:a63:2214:: with SMTP id i20-v6mr9025310pgi.212.1534770303760; Mon, 20 Aug 2018 06:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534770303; cv=none; d=google.com; s=arc-20160816; b=u2x4Kn3rpBZ2zIDhP6T4JQldnYH8G13W4QIQqh/DXhRs4OvMTMsuLYdON2jQPTZf4a LG3RnOx0mVVNIvh+7oDqjrdJJx4BeGRWgaiLsoF0R2HZGwr9xuvLrnc5x+jp+9k/dTGW kaWyaD4/dQR//zgfRR836YAVhdjZh8wOh3h8SWwnf65BR3e/9WOfYrRGR6V23LCToqG+ KhBazCc+tjP4Jy0UzsGuJ3xy/imgU8EA99ESYgg1PObVwlbw0MkIThjepQ65/qUJzaYt 0y3QtxvaMWoO78gj4ACo0q62V08VB+cFfdaeF9mZ+Qo4NTMKhriOgHq4HJ+F8DQ3C+Uv exsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=xfcQGYQBphhbtmAEqjD6gaA64mislqgTZk4XZ7mkbcE=; b=Ax0aIDvr+CeANtlSCSJYTyAxs3OrAS9OKbHynuxUHCP/uy+l4RWgvoYAogBg84wgek d8YiHFBfAKQ9pCJS1FSfW5A29qBDvoUT7pRym46Lo41GEwx7KTUkqDL1oOp8t5s5gyUJ mK12nFCIhsFbtS5Uj0MNPmulYaD/zeyPPBJHA6src2BkWIfqPasffZAqJG1UAcpiTnPf FacAlWUbg6+J1vfY07l9pvRgnrCOBFRZEh/7H4fLhU3LzCfGD0iocKFmjPUyHYEXPXLm eKZZhLOZtwCwW+dx9rDiHGEOUSs/7FHvfD1p8CR7p7TkCdtJGsFGzopj0wLIW7MArU9i R9Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jwwRIWmo; 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 a35-v6si10574895pla.27.2018.08.20.06.05.03; Mon, 20 Aug 2018 06:05:03 -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=jwwRIWmo; 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 S1727181AbeHTQUf (ORCPT + 32 others); Mon, 20 Aug 2018 12:20:35 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41335 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeHTQUf (ORCPT ); Mon, 20 Aug 2018 12:20:35 -0400 Received: by mail-lf1-f67.google.com with SMTP id v22-v6so10840284lfe.8 for ; Mon, 20 Aug 2018 06:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xfcQGYQBphhbtmAEqjD6gaA64mislqgTZk4XZ7mkbcE=; b=jwwRIWmo5p308CPdoOS+DxwxmbCrde+vIxsBPV/0uukMgqQPzA3KzM/IV1tiQAu8N/ u4+Nv3u/Mv5j+0J1lFXCkIGMNpZvUorwWuSoCNaLN0x/t47eOoM3Pu2n8he+KUuqhSep CShGRsX+g90QeK4lQnsRGrZhVbAahYbl5uW4g= 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; bh=xfcQGYQBphhbtmAEqjD6gaA64mislqgTZk4XZ7mkbcE=; b=JJzWS7qfcRALtulgZL87gN3Pkszh6YPIx6l+jYNP/iKyDecw5zTZ+cjs0blBMOlJvj dji2WwEhv5LthqNP55PKGBTHND2JsG64fK+frjNv5Au20LNtjXqDtB5zDSWjMviLjCyP JvHtU7Nf9WKIR8DRiF8KLoZNNIridTdxTvf+/1hn9Wrk0qcPbfs3pdAG/I6JP8x4l33v pT2xB5Q3HdBqxgHfdtSBFiNkf/hF9zm5emsq5gPq2VfYKiiv5LFeb5U73JGSDItLfOME N8qUly4ng3FjUDXyGvDnuqkFEu2fObsLbQBGlgmPmJpSLLrkqweqUEZKXwLl2UffZMFG WUcQ== X-Gm-Message-State: AOUpUlEUqMXkk5UZwHXFYjBxQaLcUwS2ArkgAfHUQJpGyAFL+7AVqVIg adcMxghqY25zcM6QENaxseqS/g== X-Received: by 2002:a19:db94:: with SMTP id t20-v6mr28680039lfi.126.1534770299211; Mon, 20 Aug 2018 06:04:59 -0700 (PDT) Received: from localhost (host-176-38-103-11.la.net.ua. [176.38.103.11]) by smtp.gmail.com with ESMTPSA id g133-v6sm1749443lfg.81.2018.08.20.06.04.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 06:04:58 -0700 (PDT) From: Igor Opaniuk To: linux-mmc@vger.kernel.org Cc: Jaehoon Chung , Ulf Hansson , Shawn Guo , tianshuliang@hisilicon.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/1] mmc: dw_mmc: hi3798cv200: add MMC_CAP_CMD23 cap Date: Mon, 20 Aug 2018 16:04:57 +0300 Message-Id: <1534770297-5242-1-git-send-email-igor.opaniuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable access to the RPMB on the on-board eMMC of the Poplar board. Signed-off-by: Igor Opaniuk --- v2: - as there are three dwmmc blocks integrated on Hi3798CV200 SoC with identical CMD23 support, provide MMC_CAP_CMD23 capability instead of 0 for the third block also. drivers/mmc/host/dw_mmc-hi3798cv200.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 diff --git a/drivers/mmc/host/dw_mmc-hi3798cv200.c b/drivers/mmc/host/dw_mmc-hi3798cv200.c index f9b333f..bc51cef 100644 --- a/drivers/mmc/host/dw_mmc-hi3798cv200.c +++ b/drivers/mmc/host/dw_mmc-hi3798cv200.c @@ -23,6 +23,12 @@ struct hi3798cv200_priv { struct clk *drive_clk; }; +static unsigned long dw_mci_hi3798cv200_caps[] = { + MMC_CAP_CMD23, + MMC_CAP_CMD23, + MMC_CAP_CMD23 +}; + static void dw_mci_hi3798cv200_set_ios(struct dw_mci *host, struct mmc_ios *ios) { struct hi3798cv200_priv *priv = host->priv; @@ -160,6 +166,8 @@ static int dw_mci_hi3798cv200_init(struct dw_mci *host) } static const struct dw_mci_drv_data hi3798cv200_data = { + .caps = dw_mci_hi3798cv200_caps, + .num_caps = ARRAY_SIZE(dw_mci_hi3798cv200_caps), .init = dw_mci_hi3798cv200_init, .set_ios = dw_mci_hi3798cv200_set_ios, .execute_tuning = dw_mci_hi3798cv200_execute_tuning,