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: 1838991 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id AFC123FC64 for ; Tue, 4 Dec 2012 15:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216Ab2LDPvf (ORCPT ); Tue, 4 Dec 2012 10:51:35 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:53003 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835Ab2LDPve (ORCPT ); Tue, 4 Dec 2012 10:51:34 -0500 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 cc: Russell King - ARM Linux , Shawn Guo , Sebastian Hesselbarth , Mike Rapoport , linux-arm-kernel@lists.infradead.org, Chris Ball 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== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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;