From patchwork Wed Jun 1 12:39:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 9147327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3B64560777 for ; Wed, 1 Jun 2016 12:42:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DB6D2693F for ; Wed, 1 Jun 2016 12:42:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2282A269DA; Wed, 1 Jun 2016 12:42:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FSL_HELO_HOME, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB41A2693F for ; Wed, 1 Jun 2016 12:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758158AbcFAMmZ (ORCPT ); Wed, 1 Jun 2016 08:42:25 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35228 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752530AbcFAMl6 (ORCPT ); Wed, 1 Jun 2016 08:41:58 -0400 Received: by mail-wm0-f43.google.com with SMTP id a136so180231827wme.0 for ; Wed, 01 Jun 2016 05:41:57 -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=+oJJdZ3J4CC/4TqKmkMsx4ZAnZhC1cL8obMkwhHgdyo=; b=ToBpLpqMHg/eH75DhayBlew60ENQ6X0Q7hh0a9hik3sekUwrVaYZx3LzF5NV7pAy+8 924/OlhRIxV5SSRHTk0D5gDmOvbMPE7M/ZYGOkZDXA5Dv4qNuYqNH+BBMuyxvys35dEv N0pBt9RSUnTztncIyiRo9RUGTgHGPnq0lh3T0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+oJJdZ3J4CC/4TqKmkMsx4ZAnZhC1cL8obMkwhHgdyo=; b=CJaRkzwxCT0WcOuKoK0kkY+foZmOq7dtJfhVme2DWgQH1Ai48okqQ5hyHJSorMHVGO RSHteWZ5qO4BnsSLSudlg8BF3BTt+Dm9bHrOf+oBvrvS8zHShuuN5M9O0+RNiS6wYtGK otrdA69E6Vmf8Ps2Z1U2PGXs6HHLlczAiqAgMxMgZ+ISrnW3QXKBp8bkckUuRUNIpzDI U1e+zG4rPY9j7xUuWzkVeXxImIdlTU6bqo5S/ssHLNTntZTwGHRhDMYLGmHU2xnzGJ1+ R1XnD3EC0nK42eCtj3N+fbrFVWI9Sar3QF2XGlueXqOseDvAlSwCztDu14wf4LRcUxON BMnA== X-Gm-Message-State: ALyK8tKObRZE7rYwRvaXQaV6STG9SXju9y5vrfAeSsYlzT8SLFWl2jTtWUg+UkNQUtOADAhx X-Received: by 10.28.165.193 with SMTP id o184mr2342650wme.97.1464784911631; Wed, 01 Jun 2016 05:41:51 -0700 (PDT) Received: from jfw540.home (ANice-653-1-443-126.w86-193.abo.wanadoo.fr. [86.193.131.126]) by smtp.gmail.com with ESMTPSA id c2sm34929637wme.4.2016.06.01.05.41.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jun 2016 05:41:51 -0700 (PDT) From: Jerome Forissier To: Jaehoon Chung , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jerome Forissier Subject: [PATCH] mmc: dw_mmc: k3: add MMC_CAP_CMD23 Date: Wed, 1 Jun 2016 14:39:58 +0200 Message-Id: <1464784798-15828-1-git-send-email-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enables RPMB support for the on-board eMMC of the HiKey board as well as for eMMC modules connected to the microSD slot. Signed-off-by: Jerome Forissier --- drivers/mmc/host/dw_mmc-k3.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/dw_mmc-k3.c b/drivers/mmc/host/dw_mmc-k3.c index 63c2e2e..8e9d886 100644 --- a/drivers/mmc/host/dw_mmc-k3.c +++ b/drivers/mmc/host/dw_mmc-k3.c @@ -32,6 +32,12 @@ struct k3_priv { struct regmap *reg; }; +static unsigned long dw_mci_hi6220_caps[] = { + MMC_CAP_CMD23, + MMC_CAP_CMD23, + 0 +}; + static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) { int ret; @@ -126,6 +132,7 @@ static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios) } static const struct dw_mci_drv_data hi6220_data = { + .caps = dw_mci_hi6220_caps, .switch_voltage = dw_mci_hi6220_switch_voltage, .set_ios = dw_mci_hi6220_set_ios, .parse_dt = dw_mci_hi6220_parse_dt,