From patchwork Thu Mar 10 00:54:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Warkentin X-Patchwork-Id: 622901 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 p2A0Af4D003053 for ; Thu, 10 Mar 2011 00:10:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610Ab1CJAKo (ORCPT ); Wed, 9 Mar 2011 19:10:44 -0500 Received: from exprod5og105.obsmtp.com ([64.18.0.180]:53694 "EHLO exprod5og105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752651Ab1CJAKn (ORCPT ); Wed, 9 Mar 2011 19:10:43 -0500 Received: from source ([144.188.21.13]) (using TLSv1) by exprod5ob105.postini.com ([64.18.4.12]) with SMTP ID DSNKTXgXA3IJ47sQj4c30Gel2WWfvD56Hu/t@postini.com; Wed, 09 Mar 2011 16:10:43 PST 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 p2A09NFk017033 for ; Wed, 9 Mar 2011 19:09:23 -0500 (EST) Received: from mail-gx0-f170.google.com (mail-gx0-f170.google.com [209.85.161.170]) by il93mgrg01.am.mot-mobility.com (8.14.3/8.14.3) with ESMTP id p2A09Mjb017013 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=OK) for ; Wed, 9 Mar 2011 19:09:23 -0500 (EST) Received: by mail-gx0-f170.google.com with SMTP id 1so736041gxk.15 for ; Wed, 09 Mar 2011 16:10:42 -0800 (PST) Received: by 10.150.163.20 with SMTP id l20mr52348ybe.249.1299715841972; Wed, 09 Mar 2011 16:10:41 -0800 (PST) Received: from localhost.localdomain (dyngate-ca119-13.motorola.com [144.189.96.13]) by mx.google.com with ESMTPS id 23sm1670066yhl.23.2011.03.09.16.10.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Mar 2011 16:10:41 -0800 (PST) From: Andrei Warkentin To: linux-mmc@vger.kernel.org Cc: Andrei Warkentin Subject: [RFC 3/5] MMC: Support for block quirks. Date: Wed, 9 Mar 2011 18:54:07 -0600 Message-Id: <1299718449-15172-4-git-send-email-andreiw@motorola.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1299718449-15172-1-git-send-email-andreiw@motorola.com> References: <1299718449-15172-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]); Thu, 10 Mar 2011 00:10:44 +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