diff mbox

Make b43 driver fall back gracefully to PIO mode after fatal DMA errors

Message ID 201002271836.04673.mb@bu3sch.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Michael Buesch Feb. 27, 2010, 5:36 p.m. UTC
None
diff mbox

Patch

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;