From patchwork Tue Dec 4 15:51:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1839021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 0B1C0DF230 for ; Tue, 4 Dec 2012 15:54:31 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tfump-00038J-Vu; Tue, 04 Dec 2012 15:51:56 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tfume-000369-MU for linux-arm-kernel@lists.infradead.org; Tue, 04 Dec 2012 15:51:45 +0000 Received: from axis700.grange (dslb-094-221-109-052.pools.arcor-ip.net [94.221.109.52]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0McPtg-1TxaBo2LjM-00IPmN; Tue, 04 Dec 2012 16:51:32 +0100 Received: by axis700.grange (Postfix, from userid 1000) id 30FBE40B99; Tue, 4 Dec 2012 16:51:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 2DEAB40B98; Tue, 4 Dec 2012 16:51:32 +0100 (CET) Date: Tue, 4 Dec 2012 16:51:32 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org Subject: [PATCH 1/3] mmc: add a card-event host operation In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:xXvLAv7GygqTX39TNW3CJK++7wcGt1n08KIyyJgRD9i WxE+uSIPqm/NsJQN7jbV/ijBDONMyvP8XS+E5XESiCCpkS6OGb P8WdmUC/Pu/5Ebrpsi+98UUmpXosrCZ0l3176CS3JPMJ1ked3x k2K93GypCxFdMQduaZm/0l5giDwMLQf6ozI1DdtvcCMNBcXdCl qJyn1tiY8SHOrYxkjceIEC0J4pkVT7MLDU0ailjDC92HER8R+4 K69mex+DeBBREmQwFLk7jnAJd3HLEJ7XuFZ9biTTyRe4hhalbF CZ5YOAdRHVvgBlZBUkLr9DPXpBTGWGshteTYQqQ5Vg90H/r6oV HI1Ad+UJXmoY0zTtFPixOwVo4BLozbjk+hLxTdeEUeQPRoGSq7 tikixSIAacTqQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121204_105144_980955_A56A950B X-CRM114-Status: GOOD ( 11.01 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (g.liakhovetski[at]gmx.de) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.186 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Chris Ball , Russell King - ARM Linux , Sebastian Hesselbarth , Mike Rapoport , Shawn Guo , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Some hosts need to perform additional actions upon card insertion or ejection. Add a host operation to be called from card detection handlers. Signed-off-by: Guennadi Liakhovetski --- include/linux/mmc/host.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 7abb0e1..79ead24 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -136,6 +136,7 @@ struct mmc_host_ops { void (*enable_preset_value)(struct mmc_host *host, bool enable); int (*select_drive_strength)(unsigned int max_dtr, int host_drv, int card_drv); void (*hw_reset)(struct mmc_host *host); + void (*card_event)(struct mmc_host *host); }; struct mmc_card;