From patchwork Tue Jan 4 23:16:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 452001 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p04NGH8F030293 for ; Tue, 4 Jan 2011 23:16:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751306Ab1ADXQg (ORCPT ); Tue, 4 Jan 2011 18:16:36 -0500 Received: from mail-iw0-f194.google.com ([209.85.214.194]:36030 "EHLO mail-iw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075Ab1ADXQg (ORCPT ); Tue, 4 Jan 2011 18:16:36 -0500 Received: by iwn42 with SMTP id 42so7513909iwn.1 for ; Tue, 04 Jan 2011 15:16:36 -0800 (PST) Received: by 10.231.200.138 with SMTP id ew10mr6359390ibb.59.1294182995855; Tue, 04 Jan 2011 15:16:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.117.230 with HTTP; Tue, 4 Jan 2011 15:16:15 -0800 (PST) X-Originating-IP: [93.172.227.56] In-Reply-To: References: <1294175416-12358-1-git-send-email-ohad@wizery.com> <1294175416-12358-4-git-send-email-ohad@wizery.com> From: Ohad Ben-Cohen Date: Wed, 5 Jan 2011 01:16:15 +0200 Message-ID: Subject: Re: [PATCH 4/4] mmc: add MMC_QUIRK_NONSTD_FUNC_IF To: Pierre Tardy Cc: linux-mmc@vger.kernel.org, Chris Ball , "DE CESCO, Jonathan" 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 04 Jan 2011 23:16:37 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/ index 5a8311f..f9f9c8a 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -196,6 +197,17 @@ struct wl12xx_platform_data omap_zoom_wlan_data __initdata .board_ref_clock = 1, }; +static void zoom_wl1271_init_card(struct mmc_card *card) +{ + /* + * Tell SDIO core to ignore the standard SDIO function interface + * codes indicated by the wl1271. This is required because the + * wl1271 erronouesly indicates its first function as a standard + * Bluetooth SDIO interface. + */ + card->quirks |= MMC_QUIRK_NONSTD_FUNC_IF; +} + static struct omap2_hsmmc_info mmc[] __initdata = { { .name = "external", @@ -221,6 +233,7 @@ static struct omap2_hsmmc_info mmc[] __initdata = { .gpio_wp = -EINVAL, .gpio_cd = -EINVAL, .nonremovable = true, + .init_card = zoom_wl1271_init_card, }, {} /* Terminator */ };