From patchwork Thu Jan 3 13:19:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 13770 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 BDF5623EDC for ; Thu, 3 Jan 2013 13:21:37 +0000 (UTC) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by fiordland.canonical.com (Postfix) with ESMTP id 62F7FA18E87 for ; Thu, 3 Jan 2013 13:21:37 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id gb23so15538603vcb.28 for ; Thu, 03 Jan 2013 05:21:36 -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=mYJmkdvebLFuD65gvb77KK9OKs22jl1RQuegjIMsqySx6m/Z+mlnfPEq0Etd6RSF9X Ob3eT8FWCdoHQDHAT8G954V4BGDg3eMyJjtNYWfJTaKHpRby9rNPAzF6o7K2hmSPEtDV FJO1/QASsxfwsfpSoy0/yP1/5z9zbdhcmA7haZzir2qO+S3x6DMj+r310sYkF4sUKf4V BJH42fotbrhtIcpvKONcQpi6b7x8mmFCQhWLx2OME3moFs3rHzt5UWEbOApoULM9FE0t sra//FunJdf7E2f7kyHKvlwAeS8gx8WKw+N7CjDTs9EX6cCW752x0IYO4HXeqkYGDSke n1lA== X-Received: by 10.52.88.168 with SMTP id bh8mr62952678vdb.51.1357219296868; Thu, 03 Jan 2013 05:21:36 -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 st5csp91003veb; Thu, 3 Jan 2013 05:21:36 -0800 (PST) X-Received: by 10.14.194.199 with SMTP id m47mr134330601een.11.1357219295518; Thu, 03 Jan 2013 05:21:35 -0800 (PST) Received: from eu1sys200aog113.obsmtp.com (eu1sys200aog113.obsmtp.com [207.126.144.135]) by mx.google.com with SMTP id g47si126303557eep.51.2013.01.03.05.21.25 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Jan 2013 05:21:35 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.135 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.135; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.135 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 eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKUOWFzNCYnG5UL0Fd2rHGmrmsVOT5l838@postini.com; Thu, 03 Jan 2013 13:21:35 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 A061C3F; Thu, 3 Jan 2013 13:19:02 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 4133F6B; Thu, 3 Jan 2013 07:52:37 +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 C5CF824C2F3; Thu, 3 Jan 2013 14:19:35 +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; Thu, 3 Jan 2013 14:19:41 +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 v3 2/3] mmc: core: Add card_busy to host_ops Date: Thu, 3 Jan 2013 14:19:35 +0100 Message-ID: <1357219176-21892-3-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1357219176-21892-1-git-send-email-johan.rudholm@stericsson.com> References: <1357219176-21892-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQntFWyzN92ZTLfZQ5UYHUBNmpySn2TMLKVSwABsxwrUuTtEPXq08bIahle4/g9ncMakfcaQ 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);