From patchwork Fri Mar 18 12:49:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Yariv X-Patchwork-Id: 643711 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 p2ICrNVd029414 for ; Fri, 18 Mar 2011 12:53:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756306Ab1CRMxV (ORCPT ); Fri, 18 Mar 2011 08:53:21 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:64821 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755534Ab1CRMxU (ORCPT ); Fri, 18 Mar 2011 08:53:20 -0400 Received: by ywj3 with SMTP id 3so1546211ywj.19 for ; Fri, 18 Mar 2011 05:53:20 -0700 (PDT) Received: by 10.236.184.165 with SMTP id s25mr1454588yhm.296.1300452621863; Fri, 18 Mar 2011 05:50:21 -0700 (PDT) Received: from localhost.localdomain ([38.121.37.55]) by mx.google.com with ESMTPS id h59sm3294yhm.99.2011.03.18.05.50.16 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 05:50:19 -0700 (PDT) From: Arik Nemtsov To: coelho@ti.com Cc: linux-wireless@vger.kernel.org, Arik Nemtsov , Ido Yariv Subject: [PATCH] wl12xx: Clamp byte mode transfers for 128x chips Date: Fri, 18 Mar 2011 14:49:57 +0200 Message-Id: <1300452597-13281-1-git-send-email-arik@wizery.com> X-Mailer: git-send-email 1.7.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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]); Fri, 18 Mar 2011 12:53:23 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c index ff77361..26dcd44 100644 --- a/drivers/net/wireless/wl12xx/sdio.c +++ b/drivers/net/wireless/wl12xx/sdio.c @@ -246,6 +246,9 @@ static int __devinit wl1271_probe(struct sdio_func *func, /* Grab access to FN0 for ELP reg. */ func->card->quirks |= MMC_QUIRK_LENIENT_FN0; + /* Use block mode for transferring over one block size of data */ + func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; + wlan_data = wl12xx_get_platform_data(); if (IS_ERR(wlan_data)) { ret = PTR_ERR(wlan_data); diff --git a/drivers/net/wireless/wl12xx/sdio_test.c b/drivers/net/wireless/wl12xx/sdio_test.c index 968249a..f289153 100644 --- a/drivers/net/wireless/wl12xx/sdio_test.c +++ b/drivers/net/wireless/wl12xx/sdio_test.c @@ -417,6 +417,9 @@ static int __devinit wl1271_probe(struct sdio_func *func, /* Grab access to FN0 for ELP reg. */ func->card->quirks |= MMC_QUIRK_LENIENT_FN0; + /* Use block mode for transferring over one block size of data */ + func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; + wlan_data = wl12xx_get_platform_data(); if (IS_ERR(wlan_data)) { ret = PTR_ERR(wlan_data);