From patchwork Wed Aug 15 11:39:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 144280 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp726022ljj; Wed, 15 Aug 2018 04:39:51 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw9W0sKhVzkvdH4xWV86fJe4pl9f5Nnl4IkNPB2B8/tNrkzglddMNQ8/AK7D1hvvNAY1rQ4 X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr27333501pfd.219.1534333191550; Wed, 15 Aug 2018 04:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534333191; cv=none; d=google.com; s=arc-20160816; b=M96OW88YDWBJE/2WWbqdeQHsJ7n9nmpjX79k+Li58p/fGCV9iIQc19WwtPjETrm3pp +5TewK+3VWTEi0MYUNvX8UIgV3MAZRHyCvwZ+UwuhOxTQ2Xo57Fvn5TNRr5Efk3w9jfX ovk3b29yJSiekD+KGBf9/OUBm5N6vTHAPa9YhwsfNValudrFVv5wTMl6HzcQa4iRcc4s ySFmrpPqGPKOd5yX0W9qgKA/vCYOKwC7xsRV26xxlzxY5B2bdrsA/GGXO9zHzKTuSL9y /xVq6QpfeBAJrCzN7aSs8x/mqMKyQXeH0Qfgxg4eNOGiYEy+aZ5OhFgVSu9b6YtT+NAu fQOw== 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=bttAIsX+4Dj1kpqGyBCqDZLfnZ3uy0iRTOTVcj82q+4=; b=Z65TJFacDqHq5iZzEVVqed3dIHIWNKBKIFazD79ay59u6etxdfDu1qtIJ0ho7zWht0 aWgqQiFknHLdCdRyv4/TvPWTqng4502p4QkKrCUraFULTH8yw0q6nFDGBmCf4iDk/jNX j2pHQTG0zR/BhZ/e2lPg++2fCr3Z1psr+gpiSttZbzdTwk81w/lNeZI5EECpTq+SjOpT ePHkq1kDq785FHWIt+BZcs8rmztwaLNgiPgBKpl6DbSkDFMnnidHH0gR3emmQqrnfMHS Lz246lUdUXL8gOAEvxztL7/i7ESV5avkkGMOjZmneC412YWjvGjnaMVnMvkW1WFGKWPI 8gvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PXFpTRGu; 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 g69-v6si18424115plb.297.2018.08.15.04.39.51; Wed, 15 Aug 2018 04:39:51 -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=PXFpTRGu; 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 S1729203AbeHOObh (ORCPT + 32 others); Wed, 15 Aug 2018 10:31:37 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43919 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbeHOObg (ORCPT ); Wed, 15 Aug 2018 10:31:36 -0400 Received: by mail-wr1-f65.google.com with SMTP id b15-v6so856580wrv.10 for ; Wed, 15 Aug 2018 04:39:46 -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=bttAIsX+4Dj1kpqGyBCqDZLfnZ3uy0iRTOTVcj82q+4=; b=PXFpTRGuxjpn2SFiTBOnsuORQz6vZyNT2Rdmiev+kEYlNDanyPoyYG6UU3Wd4p4oD7 Mt3agNtp+zh8+a3URejpMbSnQNqowZ6jJUHCD9aadtRZw5zc0DnhFb/AArmeykXNNgpS Z67vgS4nWFyCTc/SuaGc+B0na2Uw3TCxRa1BY= 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=bttAIsX+4Dj1kpqGyBCqDZLfnZ3uy0iRTOTVcj82q+4=; b=MF4J16uivw5F8dxHyc2gzows0JeMm7YPiz+crAuq0f4lp3Qn1AHoakWx47afVpssNN lnCg8WmZ2flKqvmAvEpmdbi4i6XkVpc9h1A0mMr68WascokWIjVgXnMUR/GQnVy9s1P3 78awLgThDbadj9RDgDHIwDtJvpxbwZJPe2eDol9L1vBlbMhrtipxcyCBGne67KBhqNi+ 5dOJPpe7ToBrbQChzXIzIf2Oo95T/USSwrvB3y3T7f42Ytmmt8PkcOE2tDnWwNA/WYf4 0pUKdVWNhLnPHMK7mVFLxetvUJmFy78b1hpBiyhKTM3Cs25ts0DS/uNUsSYvEMu3ueyr +B7w== X-Gm-Message-State: AOUpUlFSM99q7NwCJLOsNuEJnWVL0QUnFX8l9/mxxskSWAn7g3t5Zt2L nwOAyLlMhe5MTsRWBdcttd+L7Q== X-Received: by 2002:adf:a197:: with SMTP id u23-v6mr16908076wru.50.1534333185824; Wed, 15 Aug 2018 04:39:45 -0700 (PDT) Received: from localhost (host-176-38-103-11.la.net.ua. [176.38.103.11]) by smtp.gmail.com with ESMTPSA id c129-v6sm3040438wmh.2.2018.08.15.04.39.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 04:39:45 -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 1/1] mmc: dw_mmc: hi3798cv200: add MMC_CAP_CMD23 capability Date: Wed, 15 Aug 2018 14:39:44 +0300 Message-Id: <1534333184-25599-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 --- 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..7a023f0 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, + 0 +}; + 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,