From patchwork Mon Jan 28 14:08:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 14306 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 77F6A23F8C for ; Mon, 28 Jan 2013 14:09:34 +0000 (UTC) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by fiordland.canonical.com (Postfix) with ESMTP id 323D7A1981C for ; Mon, 28 Jan 2013 14:09:34 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id p1so1842214vcq.16 for ; Mon, 28 Jan 2013 06:09:33 -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=jdcSZ8G4ROqPhT3h4UqxVLwq0hVrZK/PRVCcVleiBSs=; b=j/g9HIRpVVei/uYluLgJRKnVkCH22ZGIXepnSahE+qQaL//5aXWN3WSVXbuoJr1tuk lF11nyVXFwZoDJG+nJDsES4aRB2RKWNPI8ajx+grjY3kKMbrrXz3KNd9w/vAAhAQUGn9 21EGqw4er626vy1mEx+CbZFzG5rIDmBcc4O6eO/Cpu3R5zgueVgsAU3bSMxpuArjDekk 7QXATIOEJSCZLCaheAzb4SpdY3yasZh6TqOMcKBmIFY7u2KUxdWt3lUiDij3/DTM/F5J E3RgMLf/22EI1q1ZMVN/BdzY40xFlUuO8p53+zuG55078g1zFU/RaK5LBMov3dTPKR04 HCWw== X-Received: by 10.52.18.147 with SMTP id w19mr13133475vdd.94.1359382173700; Mon, 28 Jan 2013 06:09:33 -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 st5csp86536veb; Mon, 28 Jan 2013 06:09:32 -0800 (PST) X-Received: by 10.14.3.195 with SMTP id 43mr51727389eeh.36.1359382172352; Mon, 28 Jan 2013 06:09:32 -0800 (PST) Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com [207.126.144.139]) by mx.google.com with SMTP id u2si16684710eeo.212.2013.01.28.06.09.26 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jan 2013 06:09:32 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.139 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.139; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.139 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 eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKUQaGjkU3e2THP/X3Nbq/C36hLc7iU4HD@postini.com; Mon, 28 Jan 2013 14:09:32 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 92A6E3D; Mon, 28 Jan 2013 14:07:58 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 0707CA9; Mon, 28 Jan 2013 08:22:13 +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 relay1.stm.gmessaging.net (Postfix) with ESMTPS id 577F324C2F2; Mon, 28 Jan 2013 15:08:35 +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; Mon, 28 Jan 2013 15:08:42 +0100 From: Johan Rudholm To: , Chris Ball Cc: Per Forlin , Ulf Hansson , Fredrik Soderstedt , Kevin Liu , Philip Rakity , Daniel Drake , Aaron , Subhash Jadavani , Sujit Reddy Thumma , Wei WANG , Johan Rudholm Subject: [PATCH v6 3/5] mmc: core: Add card_busy to host_ops Date: Mon, 28 Jan 2013 15:08:26 +0100 Message-ID: <1359382108-958-4-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1359382108-958-1-git-send-email-johan.rudholm@stericsson.com> References: <1359382108-958-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQk9Vfre2FlC21K8h2mnhjzlkvY8So4OjgquZ49MH377JBBWk8Y19+3PXHf/ivtQ5MFvle35 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 Acked-by: Ulf Hansson Tested-by: Wei WANG --- 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 523d570..0373b0a 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);