From patchwork Mon May 4 11:03:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 6325331 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5F56E9F32B for ; Mon, 4 May 2015 11:03:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 409122028D for ; Mon, 4 May 2015 11:03:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DA55220270 for ; Mon, 4 May 2015 11:03:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612AbbEDLDh (ORCPT ); Mon, 4 May 2015 07:03:37 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52110 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbbEDLDe (ORCPT ); Mon, 4 May 2015 07:03:34 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNT004RLO1V1590@mailout2.w1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 04 May 2015 12:03:31 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-22-55475203b8e0 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 3D.B6.05269.30257455; Mon, 4 May 2015 12:03:31 +0100 (BST) Received: from AMDN363.digital.local ([106.116.147.81]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNT003TDO1CDJB0@eusync3.samsung.com>; Mon, 04 May 2015 12:03:31 +0100 (BST) From: Andrzej Hajda To: Krzysztof Kozlowski , Javier Martinez Canillas Cc: Andrzej Hajda , "linux-mmc@vger.kernel.org" Subject: [PATCH] ARM: dts: exynos5422-odroidxu3: add mmc detect gpio Date: Mon, 04 May 2015 13:03:11 +0200 Message-id: <1430737391-7202-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t/xq7rMQe6hBivPalncWneO1eLa7xls Fs///WC3OPK/n9GBxePv7FZmj52z7rJ79G1ZxejxeZNcAEsUl01Kak5mWWqRvl0CV8aON6/Z Cnq5Kv5c/8TYwLiBo4uRk0NCwERiZ8crNghbTOLCvfVANheHkMBSRonj3x4zQTiNTBJnJl5g BKliE9CU+Lv5JliHiECyxIsHPawgNrNAkkT/zoNMILawgIvEzfntYHEWAVWJbbf+soPYvAJO EvMm9TJDbJOTOHlsMusERu4FjAyrGEVTS5MLipPSc430ihNzi0vz0vWS83M3MUL8/3UH49Jj VocYBTgYlXh4F8i6hwqxJpYVV+YeYpTgYFYS4WWxAQrxpiRWVqUW5ccXleakFh9ilOZgURLn nbnrfYiQQHpiSWp2ampBahFMlomDU6qBUWYmz2dF2Uvdy2+dUVAVNHiwzUhg54nLnx5vMrhS PPEXY6SjEBd3E0e23CWNJe6cYlGNjCzPp+RfWxJx2fPpjmwOwT3PVu3c9sBR+smb8A7XrwcK mZYenczwp+Hi/GLrS865DXaOd9xlXiw8uVR3M/vf+0sZOp58ms5l5JlowPL8ro5B/FZLLyWW 4oxEQy3mouJEAEbpGqX7AQAA Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch adds gpio for detecting presence of MMC card. It fixes issue with kernel hang when MMC card is missing. Signed-off-by: Andrzej Hajda Reviewed-by: Javier Martinez Canillas --- Hi Krzysztof, It is rebased on the latest next. Regards Andrzej --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index edc25cf..cb649b1 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include #include "exynos5800.dtsi" / { @@ -306,13 +307,13 @@ &mmc_0 { status = "okay"; mmc-pwrseq = <&emmc_pwrseq>; - broken-cd; + cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>; card-detect-delay = <200>; samsung,dw-mshc-ciu-div = <3>; samsung,dw-mshc-sdr-timing = <0 4>; samsung,dw-mshc-ddr-timing = <0 2>; pinctrl-names = "default"; - pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>; + pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>; bus-width = <8>; cap-mmc-highspeed; };