From patchwork Sat Feb 27 17:36:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Buesch X-Patchwork-Id: 82713 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1RIrWcn012904 for ; Sat, 27 Feb 2010 18:53:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030633Ab0B0SxU (ORCPT ); Sat, 27 Feb 2010 13:53:20 -0500 Received: from bu3sch.de ([62.75.166.246]:33651 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030620Ab0B0SxT (ORCPT ); Sat, 27 Feb 2010 13:53:19 -0500 Received: by vs166246.vserver.de with esmtpa (Exim 4.69) id 1NlRmm-0007ni-FT; Sat, 27 Feb 2010 18:53:08 +0000 From: Michael Buesch To: Linus Torvalds Subject: Re: Make b43 driver fall back gracefully to PIO mode after fatal DMA errors Date: Sat, 27 Feb 2010 18:36:03 +0100 User-Agent: KMail/1.9.9 Cc: Larry Finger , "John W. Linville" , "David S. Miller" , wireless , Greg Kroah-Hartman References: <201002262120.37438.mb@bu3sch.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201002271836.04673.mb@bu3sch.de> 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.3 (demeter.kernel.org [140.211.167.41]); Sat, 27 Feb 2010 18:53:33 +0000 (UTC) Index: wireless-testing/drivers/ssb/driver_chipcommon_pmu.c =================================================================== --- wireless-testing.orig/drivers/ssb/driver_chipcommon_pmu.c 2010-02-27 17:16:38.000000000 +0100 +++ wireless-testing/drivers/ssb/driver_chipcommon_pmu.c 2010-02-27 18:35:50.000000000 +0100 @@ -428,6 +428,9 @@ static void ssb_pmu_resources_init(struc * min_msk = 0xCBB * max_msk = 0x7FFFF */ +printk("PMU res init 4312/4322\n"); +min_msk = 0xFFFFFFFF; +max_msk = 0xFFFFFFFF; break; case 0x4325: /* Power OTP down later. */ @@ -442,6 +445,9 @@ static void ssb_pmu_resources_init(struc updown_tab_size = ARRAY_SIZE(pmu_res_updown_tab_4325a0); depend_tab = pmu_res_depend_tab_4325a0; depend_tab_size = ARRAY_SIZE(pmu_res_depend_tab_4325a0); +printk("PMU res init 4325\n"); +min_msk = 0xFFFFFFFF; +max_msk = 0xFFFFFFFF; break; case 0x4328: min_msk = (1 << SSB_PMURES_4328_EXT_SWITCHER_PWM) | @@ -453,10 +459,16 @@ static void ssb_pmu_resources_init(struc updown_tab_size = ARRAY_SIZE(pmu_res_updown_tab_4328a0); depend_tab = pmu_res_depend_tab_4328a0; depend_tab_size = ARRAY_SIZE(pmu_res_depend_tab_4328a0); +printk("PMU res init 4328\n"); +min_msk = 0xFFFFFFFF; +max_msk = 0xFFFFFFFF; break; case 0x5354: /* The PLL may turn on, if it decides so. */ max_msk = 0xFFFFF; +printk("PMU res init 5354\n"); +min_msk = 0xFFFFFFFF; +max_msk = 0xFFFFFFFF; break; default: ssb_printk(KERN_ERR PFX @@ -538,6 +550,7 @@ void ssb_pmu_set_ldo_voltage(struct ssb_ switch (bus->chip_id) { case 0x4328: case 0x5354: +printk("Set LDO 4328/5354\n"); switch (id) { case LDO_VOLT1: addr = 2; @@ -565,6 +578,7 @@ void ssb_pmu_set_ldo_voltage(struct ssb_ } break; case 0x4312: +printk("Set LDO 4312\n"); if (SSB_WARN_ON(id != LDO_PAREF)) return; addr = 0; @@ -584,6 +598,7 @@ void ssb_pmu_set_ldo_paref(struct ssb_ch struct ssb_bus *bus = cc->dev->bus; int ldo; +printk("Set LDO paref\n"); switch (bus->chip_id) { case 0x4312: ldo = SSB_PMURES_4312_PA_REF_LDO;