From patchwork Fri Dec 7 16:19:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 13421 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 D7C6D23E51 for ; Fri, 7 Dec 2012 16:20:54 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8E56DA19BA8 for ; Fri, 7 Dec 2012 16:20:54 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so828285iag.11 for ; Fri, 07 Dec 2012 08:20:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to: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=IbL0DVF+2vSXkgbvasvIpXGJ0ngjZJnKhrvA3Ns8g15OQey6losQZ4GKQEU2xQGUFV 9vxXNSu2fEKlrqGFudhfu7CWaN2Yy0CYRT/yuNLMf23oHvv24wbm6PE/Y8kZIm8wP+Ca Z09nwSM4PhIiMtBlsma7E0gbeumLrMNEkZFQZutwDxaUQ+oFZJZuVZlB3MwDNvKUwSwN geDDV94mnJCunlYcOZ1VQEMY8oDARBmbitj2wld+6TKbVp2V3jetgkBT7z0OfB5gkROZ jI3+LNAK0PTWQ5QBwqqmAMM9f6q/R7KufY0JMcIy+M5xtU3RtYPIPRC+mnVuQqd2gjnc hdwQ== Received: by 10.43.49.199 with SMTP id vb7mr4847812icb.6.1354897254013; Fri, 07 Dec 2012 08:20: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 n20csp483808igt; Fri, 7 Dec 2012 08:20:53 -0800 (PST) Received: by 10.180.102.40 with SMTP id fl8mr9490574wib.22.1354897251095; Fri, 07 Dec 2012 08:20:51 -0800 (PST) Received: from eu1sys200aog104.obsmtp.com (eu1sys200aog104.obsmtp.com [207.126.144.117]) by mx.google.com with SMTP id l8si9303779eem.65.2012.12.07.08.20.38 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Dec 2012 08:20:51 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.117 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.117; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.117 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-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKUMIXS/lY0lY58WfKaPtj82y7p5WofDY5@postini.com; Fri, 07 Dec 2012 16:20:50 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 A45BBD2; Fri, 7 Dec 2012 16:12:11 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id A2211B53; Fri, 7 Dec 2012 16:20:22 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id B4298A8065; Fri, 7 Dec 2012 17:20:15 +0100 (CET) Received: from steludxu1610.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 7 Dec 2012 17:20:21 +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 2/3] mmc: core: Add card_busy to host_ops Date: Fri, 7 Dec 2012 17:19:35 +0100 Message-ID: <1354897176-15307-3-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1354897176-15307-1-git-send-email-johan.rudholm@stericsson.com> References: <1354897176-15307-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQm3tOLkaJ6yD3bQiMCpj+WlI3fTup4l2aLMbjXO2RCeOebuJH4CiL8Rfv09TQbZEERnOACt 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);