From patchwork Tue Dec 18 14:38:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 13640 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 867BB23E2D for ; Tue, 18 Dec 2012 14:39:55 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) by fiordland.canonical.com (Postfix) with ESMTP id 4DB6BA194A3 for ; Tue, 18 Dec 2012 14:39:55 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id k14so964890iea.24 for ; Tue, 18 Dec 2012 06:39:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:mime-version:content-type:x-gm-message-state; bh=Su4M9wfDSgkRm5u9Q1GZjojxOtzPNr2SY5WlLS2PEks=; b=j5U4HueKNTrFz+icIFSSqbXVrjdZIMF6i/0C5ls4lVBpHcrhAArPol07oq+Px+STfy y7T2s8W/77rmu0fiJlYBuqJAYsH/kGYoNToPyyFaH+T/KEsbryR2gmEf8txOokGWLRWU /1anbvrRCNQwzHMm8t6wm1auS8SkQRQ1Gf+3kAmJhvf6hHM3C3cNoNqpr0zY/VUHvAQN pendYB0SFn6GKGlguvFdtVl5vyr7fjO4j0SLbCQsJc4bSX/1xBKsUZbBdkrUiu1+qFHn wY0iToKMCBjIQODKpmqHBJfAGDkjYKRkP54p4eV2sDChvn476ldrdyeSQ13ingsPpMNP 7rWg== X-Received: by 10.50.170.102 with SMTP id al6mr2489258igc.70.1355841594633; Tue, 18 Dec 2012 06:39:54 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp145526igt; Tue, 18 Dec 2012 06:39:54 -0800 (PST) X-Received: by 10.14.194.195 with SMTP id m43mr6013325een.44.1355841593522; Tue, 18 Dec 2012 06:39:53 -0800 (PST) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx.google.com with SMTP id l1si4849007een.25.2012.12.18.06.39.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 06:39:53 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.149; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) smtp.mail=johan.rudholm@stericsson.com Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUNCALOuz9XkckDEAB62g8EzPsuah5jPz@postini.com; Tue, 18 Dec 2012 14:39:53 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 56417F6; Tue, 18 Dec 2012 14:39:09 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8E6664926; Tue, 18 Dec 2012 14:39:07 +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 CBBA024C68A; Tue, 18 Dec 2012 15:39:01 +0100 (CET) Received: from steludxu1610.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 18 Dec 2012 15:39:08 +0100 From: Johan Rudholm To: , Chris Ball Cc: Per Forlin , Ulf Hansson , Fredrik Soderstedt , Kevin Liu , Philip Rakity , Daniel Drake , Aaron , Subhash Jadavani , Johan Rudholm Subject: [PATCH v2 2/3] mmc: core: Add card_busy to host_ops Date: Tue, 18 Dec 2012 15:38:57 +0100 Message-ID: <1355841538-6674-3-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1355841538-6674-1-git-send-email-johan.rudholm@stericsson.com> References: <1355841538-6674-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnGBDSpwS+Xcx9wpChVgIs7Pnd9VeLYaW5Xc5S+ayqoxfp5YMX5Z3IFWiGRhwhvb7cN/7vp This host_ops member is used to test if the card is signaling busy by pulling dat[0:3] low. Signed-off-by: Johan Rudholm --- include/linux/mmc/host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 23df21e..e2ed8c5 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -131,6 +131,9 @@ struct mmc_host_ops { int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios); + /* Check if the card is pulling dat[0:3] low */ + int (*card_busy)(struct mmc_host *host); + /* The tuning command opcode value is different for SD and eMMC cards */ int (*execute_tuning)(struct mmc_host *host, u32 opcode); void (*enable_preset_value)(struct mmc_host *host, bool enable);