From patchwork Fri Jul 15 10:59:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 977812 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6FAxRLj024808 for ; Fri, 15 Jul 2011 10:59:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964882Ab1GOK7w (ORCPT ); Fri, 15 Jul 2011 06:59:52 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:62139 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964787Ab1GOK7w (ORCPT ); Fri, 15 Jul 2011 06:59:52 -0400 Received: from axis700.grange (dslb-178-001-145-049.pools.arcor-ip.net [178.1.145.49]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0LvkQW-1RXaLj00Wy-017TAr; Fri, 15 Jul 2011 12:59:51 +0200 Received: by axis700.grange (Postfix, from userid 1000) id AAC2F189B6E; Fri, 15 Jul 2011 12:59:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id A84AA189B6D; Fri, 15 Jul 2011 12:59:50 +0200 (CEST) Date: Fri, 15 Jul 2011 12:59:50 +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 2/2 v2] ARM: mach-shmobile: use GPIO interrupt also for card eject on SDHI0 on mackerel In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:59NZOpm1wS/c1074S5al5bCcuZHNZShhgj1/yNoFKAH usCsmdKOnORNegqQQ+/dacIU3Sk8PtTnchMQnsKY3FJAQ+k1B1 Py6d3soGM+l9GFeTRPfWxcpzW0Clow9yRlu51MrdXgZ4XQeN5s Ptefj/cvLlumyD261u5gkjStvXKXeWhekvOk6VknOF1zOVIlG6 P0p2FHnjwBcRbH1IHGN8NsdimI/QKtAp2ZsAL3UyHw= 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 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Jul 2011 10:59:54 +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 --- v2: reconfiguring the pin for card insertion and ejection is no longer needed. arch/arm/mach-shmobile/board-mackerel.c | 48 +++++++++++++++++++++++++----- 1 files changed, 40 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 1b30195..9addaae 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