From patchwork Mon Jun 10 15:03:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 17745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51EEC2397B for ; Mon, 10 Jun 2013 15:04:35 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id a11sf3389199qen.8 for ; Mon, 10 Jun 2013 08:04:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=MqagYv0FUX0WLpD6hNL4Hdvf7mslv4ZLxAvc1bojKOY=; b=PtPnhMMhyWDO4OOYrJeDMILcOh/rF84QOTfapSQPrKT2DTWl1C8tK10JW6xU+tNnXh 9D5skYZOVM99rg3GHPGBRetnBM4xMrhcLFOP5OfjHxIuqDtSzISqeJzsJaJXfXFxhTmU 24hWTBPVGx92cJNv3OyFpI4c6U4VDxYHoTObyOIIfgrHBnsktw/6J6KZ6r9gvfAoA+em /iQwanEi8wF8pKAuIn7S+ndOamW72whbrKfUiyWqeX1dClBIbremWiVO6zRSRkX0xteF SgDrGBgW0bmIugRa98/d7+sQ/M1M4lAKN4h1r2QqZJ4aMqr+FhLZnQ7ZENwVudXwBGR4 w+5A== X-Received: by 10.59.5.165 with SMTP id cn5mr1476140ved.20.1370876674995; Mon, 10 Jun 2013 08:04:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.134 with SMTP id o6ls2512442qed.33.gmail; Mon, 10 Jun 2013 08:04:34 -0700 (PDT) X-Received: by 10.58.235.69 with SMTP id uk5mr5900930vec.17.1370876674668; Mon, 10 Jun 2013 08:04:34 -0700 (PDT) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [2607:f8b0:400c:c01::22e]) by mx.google.com with ESMTPS id to9si5068329vdc.45.2013.06.10.08.04.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 08:04:34 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22e; Received: by mail-ve0-f174.google.com with SMTP id oz10so4776955veb.19 for ; Mon, 10 Jun 2013 08:04:34 -0700 (PDT) X-Received: by 10.52.170.148 with SMTP id am20mr4964997vdc.75.1370876674533; Mon, 10 Jun 2013 08:04:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp71504vcb; Mon, 10 Jun 2013 08:04:33 -0700 (PDT) X-Received: by 10.14.94.193 with SMTP id n41mr11495387eef.122.1370876673261; Mon, 10 Jun 2013 08:04:33 -0700 (PDT) Received: from eu1sys200aog107.obsmtp.com (eu1sys200aog107.obsmtp.com [207.126.144.123]) by mx.google.com with SMTP id n7si5574629eea.263.2013.06.10.08.04.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Jun 2013 08:04:33 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.123 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.123; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP ID DSNKUbXq/HDPsomMxQeSHQDwt9nClsxMMBQp@postini.com; Mon, 10 Jun 2013 15:04:32 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 7CC2197; Mon, 10 Jun 2013 15:04:25 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 390449C0; Mon, 10 Jun 2013 15:04:25 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 95AE424C07C; Mon, 10 Jun 2013 17:04:16 +0200 (CEST) Received: from steludxu1397.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 10 Jun 2013 17:04:24 +0200 From: Ulf Hansson To: , Chris Ball Cc: Ulf Hansson Subject: [PATCH 12/12] mmc: core: Add DT-bindings for MMC_CAP2_FULL_PWR_CYCLE Date: Mon, 10 Jun 2013 17:03:47 +0200 Message-ID: <1370876627-13439-13-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1370876627-13439-1-git-send-email-ulf.hansson@stericsson.com> References: <1370876627-13439-1-git-send-email-ulf.hansson@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlbMcVXaiWHvoqWD7jqji6FjqiuWQVISU3p8v2Fma1kHNUVlQUfoSs034FsKG3UbiImPOCi X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ulf Hansson The DT-binding for MMC_CAP2_FULL_PWR_CYCLE, is used to indicate whether it is possible to perform a full power cycle of the card. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/core/host.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 85aada2..458b57f 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -28,6 +28,7 @@ Optional properties: - cap-mmc-highspeed: MMC high-speed timing is supported - cap-power-off-card: powering off the card is safe - cap-sdio-irq: enable SDIO IRQ signalling on this interface +- full-pwr-cycle: full power cycle of the card is supported *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line polarity properties, we have to fix the meaning of the "normal" and "inverted" diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 2a3593d..17d8b37 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -409,6 +409,8 @@ void mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_POWER_OFF_CARD; if (of_find_property(np, "cap-sdio-irq", &len)) host->caps |= MMC_CAP_SDIO_IRQ; + if (of_find_property(np, "full-pwr-cycle", &len)) + host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE; if (of_find_property(np, "keep-power-in-suspend", &len)) host->pm_caps |= MMC_PM_KEEP_POWER; if (of_find_property(np, "enable-sdio-wakeup", &len))