From patchwork Sun Jan 9 16:26:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Tardy X-Patchwork-Id: 466661 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 p09GqX2m019944 for ; Sun, 9 Jan 2011 16:56:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265Ab1AIQ4r (ORCPT ); Sun, 9 Jan 2011 11:56:47 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:56522 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564Ab1AIQ4r (ORCPT ); Sun, 9 Jan 2011 11:56:47 -0500 Received: by wyb28 with SMTP id 28so18798712wyb.19 for ; Sun, 09 Jan 2011 08:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=qBUIrT61QzsTQHeL5g0QNzAtWxFEmaUhPICm+i5Z7ks=; b=PT3z/svpcV0U4pzEGEVkgTtCtx816I0qZosEx0q7MRhD90SBcmIOymR1S1/RfAkJqL dw3uydpa0uuY9Xhee6yakJ4Lq5qaH2hscVX5vzBTW9TehfkKpphuPO9puvEQEK1F5RQx QYeDjd+JelTEe45mlpBCmeF/V5e0fAUNSALAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=r0qqA0sdGtIWtSVccYfzdYTTeYIOvz35keICsSndoKwZDvqWzsRsEgflSItqQSSViB v4J+F5SDldFDaUtUHlLRcsK8e4ED3MrlCvFteKY9iY0aPnvtilbIM3490POaXsK9iUrz L1gbJmmw6WU+HxRNVs51T1rPhmy9zAE23ED2I= Received: by 10.216.89.204 with SMTP id c54mr996358wef.109.1294590494686; Sun, 09 Jan 2011 08:28:14 -0800 (PST) Received: from localhost.localdomain ([82.240.198.215]) by mx.google.com with ESMTPS id n18sm13581608wee.16.2011.01.09.08.28.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Jan 2011 08:28:13 -0800 (PST) From: Pierre Tardy To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pierre Tardy Subject: [PATCH 3/3] mmc: remove anti clock gating quirk for wl1271 Date: Sun, 9 Jan 2011 17:26:20 +0100 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: 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]); Sun, 09 Jan 2011 16:56:48 +0000 (UTC) diff --git a/drivers/mmc/core/quirks.c b/drivers/mmc/core/quirks.c index fe467c8..506e4fc 100644 --- a/drivers/mmc/core/quirks.c +++ b/drivers/mmc/core/quirks.c @@ -33,6 +33,14 @@ static void add_quirk(struct mmc_card *card, int data) } /* + * This hook just removes a quirk unconditionnally + */ +static void remove_quirk_hook(struct mmc_card *card, int data) +{ + card->quirks &= ~data; +} + +/* * This hook just adds a quirk for all sdio devices */ static void add_quirk_for_sdio_devices(struct mmc_card *card, int data) @@ -41,9 +49,19 @@ static void add_quirk_for_sdio_devices(struct mmc_card *card, int data) card->quirks |= data; } +#ifndef SDIO_VENDOR_ID_TI +#define SDIO_VENDOR_ID_TI 0x0097 +#endif + +#ifndef SDIO_DEVICE_ID_TI_WL1271 +#define SDIO_DEVICE_ID_TI_WL1271 0x4076 +#endif + static const struct mmc_fixup mmc_fixup_methods[] = { { SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_for_sdio_devices, MMC_QUIRK_BROKEN_CLK_GATING } + { SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271, + remove_quirk_hook, MMC_QUIRK_BROKEN_CLK_GATING }, { 0 } };