From patchwork Wed Jul 13 23:25:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 973722 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6DNN7BR032457 for ; Wed, 13 Jul 2011 23:25:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752739Ab1GMXZq (ORCPT ); Wed, 13 Jul 2011 19:25:46 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:50509 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752530Ab1GMXZq (ORCPT ); Wed, 13 Jul 2011 19:25:46 -0400 Received: from axis700.grange (dslb-088-076-030-029.pools.arcor-ip.net [88.76.30.29]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0LhNIm-1RKrKi38JE-00mea3; Thu, 14 Jul 2011 01:25:45 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 54EB5E6A6E; Thu, 14 Jul 2011 01:25:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 4534A106764; Thu, 14 Jul 2011 01:25:44 +0200 (CEST) Date: Thu, 14 Jul 2011 01:25:44 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Magnus Damm Subject: [PATCH] ARM: mach-shmobile: use GPIO interrupt also for card eject on SDHI0 on mackerel Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:KIQYk7GqgE3csVAe53OPGIV8n2OJb0uqOpcMM0joDEP uurbbWoMog6Ngxj0hyX/oHPqtlNupzTH9k4ptgGkSasdimmGB/ /9q17efwY7EMakc9fZ14Z0TUGSWXTE6Q7lrCyMJNvhuTM7qqc7 iCA43oDyWjyHpThru1U6IG5EHnvgDDSM9ArukzURVf1Oh/tPsq m5fdc6Jm4ZfRl7y4+h8OAiYH+EDbhpj3Ln1K4ER1bY= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 13 Jul 2011 23:25:47 +0000 (UTC) When we switch to transaction-based runtime PM on SDHI / TMIO MMC, also card eject events will have to be detected by the platform. This patch prepares mackerel to this switch. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-shmobile/board-mackerel.c | 68 +++++++++++++++++++++++++++---- 1 files changed, 60 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 1b30195..05f5fe7 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -45,6 +45,7 @@ #include #include #include +#include #include