From patchwork Mon Jan 7 15:10: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: 13889 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 6AA5E23E33 for ; Mon, 7 Jan 2013 15:12:00 +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 18593A18905 for ; Mon, 7 Jan 2013 15:12:00 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id n11so19852405vch.30 for ; Mon, 07 Jan 2013 07:11:59 -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=cD0AIq/5QjCJPyLmQ8GBvYFHr+Yv68O4PNJa23TLDFPCIKrppi3iVE47kENv8oRTWn ux77+gcmolwtIp7nmhRkK/EGQyYLjWCA3q6JwuYNVmsayS78fqaGVAYtqa0Nr+ZNikNW j3+98WEeNKQR7H+86t2lvi2VAcU5XahWJb4DE/a0DQKGJqzM2qbYtsHOxGXvJ0p9h7vK AN0guiRBlltwma7QRPFQhBo3TPgPAq9Mv4BQbonOtqjHI7bJg3m4/QAeKyNQOJOCciMN LP/8aXSS/ZBM5Pe6AuaRCHiGQibo6iUep2c/v+6WWXcXKlRlQjB5F/RfPoUpS+8PpfZM 6Ytw== X-Received: by 10.58.181.42 with SMTP id dt10mr1137308vec.34.1357571519611; Mon, 07 Jan 2013 07:11:59 -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 st5csp65341veb; Mon, 7 Jan 2013 07:11:58 -0800 (PST) X-Received: by 10.14.194.4 with SMTP id l4mr165958564een.42.1357571517598; Mon, 07 Jan 2013 07:11:57 -0800 (PST) Received: from eu1sys200aog111.obsmtp.com (eu1sys200aog111.obsmtp.com [207.126.144.131]) by mx.google.com with SMTP id l1si157446733een.121.2013.01.07.07.11.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 07:11:57 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.131 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.131; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.131 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 eu1sys200aob111.postini.com ([207.126.147.11]) with SMTP ID DSNKUOrlrfpXrNjuP9xoBbp3/uj2wjZaJhQy@postini.com; Mon, 07 Jan 2013 15:11:57 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 D8B8AC0; Mon, 7 Jan 2013 15:03:27 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 2CE72E4B; Mon, 7 Jan 2013 15:11: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 relay2.stm.gmessaging.net (Postfix) with ESMTPS id A796FA8065; Mon, 7 Jan 2013 16:11:30 +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; Mon, 7 Jan 2013 16:11:35 +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 v4 2/4] mmc: core: Add card_busy to host_ops Date: Mon, 7 Jan 2013 16:10:26 +0100 Message-ID: <1357571428-19466-3-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1357571428-19466-1-git-send-email-johan.rudholm@stericsson.com> References: <1357571428-19466-1-git-send-email-johan.rudholm@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnNPFO0rcfsxpEpf5raYMwbcYeKkV6QxugRUqPKH03YcYxmfeVNNtA83ljzjSlV+QrrQnkn 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);