From patchwork Mon Apr 11 22:20:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Warkentin X-Patchwork-Id: 698891 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 p3BLffl9008464 for ; Mon, 11 Apr 2011 21:41:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964Ab1DKVlm (ORCPT ); Mon, 11 Apr 2011 17:41:42 -0400 Received: from exprod5og117.obsmtp.com ([64.18.0.149]:50878 "EHLO exprod5og117.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755928Ab1DKVlm (ORCPT ); Mon, 11 Apr 2011 17:41:42 -0400 Received: from il93mgrg01.am.mot-mobility.com ([144.188.21.13]) (using TLSv1) by exprod5ob117.postini.com ([64.18.4.12]) with SMTP ID DSNKTaN1lchoHTYCJUSy7A5clK9TMAXx6v7Q@postini.com; Mon, 11 Apr 2011 14:41:41 PDT Received: from il93mgrg01.am.mot-mobility.com ([10.22.94.168]) by il93mgrg01.am.mot-mobility.com (8.14.3/8.14.3) with ESMTP id p3BLdrQv021402 for ; Mon, 11 Apr 2011 17:39:53 -0400 (EDT) Received: from mail-yw0-f42.google.com (mail-yw0-f42.google.com [209.85.213.42]) by il93mgrg01.am.mot-mobility.com (8.14.3/8.14.3) with ESMTP id p3BLdrvu021397 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 11 Apr 2011 17:39:53 -0400 (EDT) Received: by ywh1 with SMTP id 1so4181401ywh.15 for ; Mon, 11 Apr 2011 14:41:40 -0700 (PDT) Received: by 10.236.191.230 with SMTP id g66mr7076854yhn.337.1302558100117; Mon, 11 Apr 2011 14:41:40 -0700 (PDT) Received: from localhost.localdomain (dyngate-ca119-13.motorola.com [144.189.96.13]) by mx.google.com with ESMTPS id x76sm2688162yhn.94.2011.04.11.14.41.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2011 14:41:39 -0700 (PDT) From: Andrei Warkentin To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, Andrei Warkentin Subject: [PATCH 1/2] MMC: Support for block quirks. Date: Mon, 11 Apr 2011 17:20:40 -0500 Message-Id: <1302560441-10565-2-git-send-email-andreiw@motorola.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1302560441-10565-1-git-send-email-andreiw@motorola.com> References: <1302560441-10565-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]); Mon, 11 Apr 2011 21:41:43 +0000 (UTC) Block quirks implemented using core/quirks.c support. Change-Id: I81d9ad57a7ae95c60ee8026f090c8df7c75fd069 Signed-off-by: Andrei Warkentin --- drivers/mmc/card/block.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 91a6767..823f295 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -755,6 +755,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; @@ -782,6 +787,7 @@ 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); add_disk(md->disk); return 0;