From patchwork Sun Mar 13 13:48:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Warkentin X-Patchwork-Id: 631651 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 p2DD5Rs3000943 for ; Sun, 13 Mar 2011 13:05:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756189Ab1CMNFj (ORCPT ); Sun, 13 Mar 2011 09:05:39 -0400 Received: from exprod5og106.obsmtp.com ([64.18.0.182]:49900 "EHLO exprod5og106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754605Ab1CMNFi (ORCPT ); Sun, 13 Mar 2011 09:05:38 -0400 Received: from source ([144.188.21.13]) (using TLSv1) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKTXzBIlo0yrPMCPsOETOLl+a3lWM8WlIQ@postini.com; Sun, 13 Mar 2011 06:05:38 PDT Received: from il93mgrg01.am.mot-mobility.com ([10.22.94.167]) by il93mgrg01.am.mot-mobility.com (8.14.3/8.14.3) with ESMTP id p2DD4EZD016904 for ; Sun, 13 Mar 2011 09:04:14 -0400 (EDT) Received: from mail-gy0-f170.google.com (mail-gy0-f170.google.com [209.85.160.170]) by il93mgrg01.am.mot-mobility.com (8.14.3/8.14.3) with ESMTP id p2DD4Axc016876 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 13 Mar 2011 09:04:14 -0400 (EDT) Received: by mail-gy0-f170.google.com with SMTP id 11so1008417gyb.15 for ; Sun, 13 Mar 2011 06:05:37 -0700 (PDT) Received: by 10.91.202.36 with SMTP id e36mr2009078agq.180.1300021537213; Sun, 13 Mar 2011 06:05:37 -0700 (PDT) Received: from localhost.localdomain (dyngate-ca119-13.motorola.com [144.189.96.13]) by mx.google.com with ESMTPS id c39sm7501982anc.27.2011.03.13.06.05.35 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Mar 2011 06:05:36 -0700 (PDT) From: Andrei Warkentin To: linux-mmc@vger.kernel.org Cc: tardyp@gmail.com, linus.walleij@linaro.org, arnd@arndb.de, Andrei Warkentin Subject: [PATCH 2/2] MMC: Support for block quirks. Date: Sun, 13 Mar 2011 08:48:38 -0500 Message-Id: <1300024118-23771-3-git-send-email-andreiw@motorola.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1299017344-25361-1-git-send-email-andreiw@motorola.com> References: <1299017344-25361-1-git-send-email-andreiw@motorola.com> X-CFilter-Loop: Reflected 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, 13 Mar 2011 13:05:39 +0000 (UTC) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 7054fd5..913f394 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -686,6 +686,11 @@ mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card) return 0; } +static const struct mmc_fixup blk_fixups[] = +{ + END_FIXUP +}; + static int mmc_blk_probe(struct mmc_card *card) { struct mmc_blk_data *md; @@ -714,6 +719,8 @@ static int mmc_blk_probe(struct mmc_card *card) cap_str, md->read_only ? "(ro)" : ""); mmc_set_drvdata(card, md); + mmc_fixup_device(card, blk_fixups); + #ifdef CONFIG_MMC_BLOCK_DEFERRED_RESUME mmc_set_bus_resume_policy(card->host, 1); #endif