From patchwork Tue Jan 8 14:06:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 13919 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 9C51923E21 for ; Tue, 8 Jan 2013 14:06:45 +0000 (UTC) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by fiordland.canonical.com (Postfix) with ESMTP id 4163DA18E8E for ; Tue, 8 Jan 2013 14:06:45 +0000 (UTC) Received: by mail-vb0-f44.google.com with SMTP id fc26so396470vbb.31 for ; Tue, 08 Jan 2013 06:06:44 -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=MJfvlL74QKEx/phg2xdPdqf8wRjKsIQ+IJqn9xZK/wA=; b=KHD5ksxazXN3nTBB3LzrWpvnTFg2RvQV31ZSeqwW6dc9F4e2g6IV+Izxxic3AcVoyU ra+gEiRrG613vwtJlyK3WG+Ms2K8Ky/lkJ8pEOMz2ol4e3uwmcoBbdXEU2UlWtUYT31a A9Sl2uttJTJ7Y+9/CZnH5dC27jWHIsK76Ivtr0w8xgSEffWNHFM/cAVdaKnsyt5+U6XC Ze8gJemJRXvL2RS0X/WRZ8NiobbebxUVznyc7ErwbLSpTrgULMEXU0kvZniDxyo+rDwl 8L+KWlDRyX+kbAwboin5tZYgzFJn//TkANu6e0bltQ12rEVvm9i4WtIWcy9E3N6/hrY+ kZtg== X-Received: by 10.220.157.9 with SMTP id z9mr86817942vcw.45.1357654004742; Tue, 08 Jan 2013 06:06:44 -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.58.145.101 with SMTP id st5csp111766veb; Tue, 8 Jan 2013 06:06:43 -0800 (PST) X-Received: by 10.14.209.193 with SMTP id s41mr174968364eeo.9.1357654003020; Tue, 08 Jan 2013 06:06:43 -0800 (PST) Received: from eu1sys200aog101.obsmtp.com (eu1sys200aog101.obsmtp.com [207.126.144.111]) by mx.google.com with SMTP id l8si165903446eem.17.2013.01.08.06.06.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 06:06:43 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.111 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.111; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.111 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-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKUOwn54ga4x7Ta1xYM/B3qRJ4BgsaqWv1@postini.com; Tue, 08 Jan 2013 14:06:42 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 6198144; Tue, 8 Jan 2013 14:05:39 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id A219D6F; Tue, 8 Jan 2013 08:35:22 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id D629E24C2E7; Tue, 8 Jan 2013 15:06:14 +0100 (CET) Received: from steludxu1610.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 8 Jan 2013 15:06: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 v5 2/4] mmc: core: Add card_busy to host_ops Date: Tue, 8 Jan 2013 15:06:00 +0100 Message-ID: <1357653962-10887-3-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1357653962-10887-1-git-send-email-johan.rudholm@stericsson.com> References: <1357653962-10887-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnx7YIhNl29uK9cRs3gq0U3UmTp0tEkgyoD3KCfnDfyYkUL3J3/D3FNZRJDxosqkjXxj6JI 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 61a10c1..3b56ef2 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);