1
0
Fork 0

pr_debug -> printk in sdio.c to ensure debug output (temporary hack)

disable .reset handler i pdata
ap6256_fix_initial_attempt_before_cleanup
Steinar Bakkemo 2019-01-15 15:25:34 +01:00
parent fd8872af5d
commit 7084c9b526
3 changed files with 22 additions and 11 deletions

View File

@ -77,8 +77,8 @@ static void brcmfmac_reset(void)
static struct brcmfmac_sdio_platform_data brcmfmac_sdio_pdata = { static struct brcmfmac_sdio_platform_data brcmfmac_sdio_pdata = {
.power_on = brcmfmac_power_on, .power_on = brcmfmac_power_on,
.power_off = brcmfmac_power_off, .power_off = brcmfmac_power_off
.reset = brcmfmac_reset // .reset = brcmfmac_reset
}; };
static struct platform_device brcmfmac_device = { static struct platform_device brcmfmac_device = {

View File

@ -1190,6 +1190,7 @@ bool brcmf_chip_sr_capable(struct brcmf_chip *pub)
switch (pub->chip) { switch (pub->chip) {
case BRCM_CC_4354_CHIP_ID: case BRCM_CC_4354_CHIP_ID:
case BRCM_CC_4345_CHIP_ID:
/* explicitly check SR engine enable bit */ /* explicitly check SR engine enable bit */
pmu_cc3_mask = BIT(2); pmu_cc3_mask = BIT(2);
/* fall-through */ /* fall-through */

View File

@ -720,8 +720,8 @@ static int brcmf_sdio_get_fwnames(struct brcmf_chip *ci,
strlcat(sdiodev->nvram_name, brcmf_fwname_data[i].nv, strlcat(sdiodev->nvram_name, brcmf_fwname_data[i].nv,
sizeof(sdiodev->nvram_name)); sizeof(sdiodev->nvram_name));
pr_debug("brcmf_sdio_get_fwnames: fw_name = %s\n", sdiodev->fw_name); printk("brcmf_sdio_get_fwnames: fw_name = %s\n", sdiodev->fw_name);
pr_debug("brcmf_sdio_get_fwnames: nvram_name = %s\n", sdiodev->nvram_name); printk("brcmf_sdio_get_fwnames: nvram_name = %s\n", sdiodev->nvram_name);
return 0; return 0;
} }
@ -2931,7 +2931,7 @@ static int brcmf_sdio_readconsole(struct brcmf_sdio *bus)
if (line[n - 1] == '\r') if (line[n - 1] == '\r')
n--; n--;
line[n] = 0; line[n] = 0;
pr_debug("CONSOLE: %s\n", line); printk("CONSOLE: %s\n", line);
} }
} }
break2: break2:
@ -3688,11 +3688,18 @@ brcmf_sdio_drivestrengthinit(struct brcmf_sdio_dev *sdiodev,
u32 cc_data_temp; u32 cc_data_temp;
u32 addr; u32 addr;
if (!(ci->cc_caps & CC_CAP_PMU)) printk("brcmf_sdio_drivestrengthinit: enter\n");
if (!(ci->cc_caps & CC_CAP_PMU)) {
printk("brcmf_sdio_drivestrengthinit: returning, no CC_CAP_PMU\n");
return; return;
}
printk("brcmf_sdio_drivestrengthinit: chip: %d, chiprev: %d, pmurev: %d\n", ci->chip, ci->chiprev, ci->pmurev);
switch (SDIOD_DRVSTR_KEY(ci->chip, ci->pmurev)) { switch (SDIOD_DRVSTR_KEY(ci->chip, ci->pmurev)) {
case SDIOD_DRVSTR_KEY(BRCM_CC_4330_CHIP_ID, 12): case SDIOD_DRVSTR_KEY(BRCM_CC_4330_CHIP_ID, 12):
printk("brcmf_sdio_drivestrengthinit: Setting drivestrength config for 4330 with PMU rev 12\n");
str_tab = sdiod_drvstr_tab1_1v8; str_tab = sdiod_drvstr_tab1_1v8;
str_mask = 0x00003800; str_mask = 0x00003800;
str_shift = 11; str_shift = 11;
@ -3710,7 +3717,7 @@ brcmf_sdio_drivestrengthinit(struct brcmf_sdio_dev *sdiodev,
str_mask = 0x00000007; str_mask = 0x00000007;
str_shift = 0; str_shift = 0;
} else } else
brcmf_err("Invalid SDIO Drive strength for chip %s, strength=%d\n", pr_err("brcmf_sdio_drivestrengthinit: Invalid SDIO Drive strength for chip %s, strength=%d\n",
ci->name, drivestrength); ci->name, drivestrength);
break; break;
case SDIOD_DRVSTR_KEY(BRCM_CC_43362_CHIP_ID, 13): case SDIOD_DRVSTR_KEY(BRCM_CC_43362_CHIP_ID, 13):
@ -3719,7 +3726,7 @@ brcmf_sdio_drivestrengthinit(struct brcmf_sdio_dev *sdiodev,
str_shift = 11; str_shift = 11;
break; break;
default: default:
brcmf_err("No SDIO Drive strength init done for chip %s rev %d pmurev %d\n", pr_err("brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip %s rev %d pmurev %d\n",
ci->name, ci->chiprev, ci->pmurev); ci->name, ci->chiprev, ci->pmurev);
break; break;
} }
@ -3740,9 +3747,12 @@ brcmf_sdio_drivestrengthinit(struct brcmf_sdio_dev *sdiodev,
cc_data_temp |= drivestrength_sel; cc_data_temp |= drivestrength_sel;
brcmf_sdiod_regwl(sdiodev, addr, cc_data_temp, NULL); brcmf_sdiod_regwl(sdiodev, addr, cc_data_temp, NULL);
brcmf_dbg(INFO, "SDIO: %d mA (req=%d mA) drive strength selected, set to 0x%08x\n", printk("brcmf_sdio_drivestrengthinit: %d mA (req=%d mA) drive strength selected, set to 0x%08x\n",
str_tab[i].strength, drivestrength, cc_data_temp); str_tab[i].strength, drivestrength, cc_data_temp);
} }
else {
printk("brcmf_sdio_drivestrengthinit: Drivestrength not initiated !!\n");
}
} }
static int brcmf_sdio_buscoreprep(void *ctx) static int brcmf_sdio_buscoreprep(void *ctx)
@ -3850,7 +3860,7 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus)
sdio_claim_host(bus->sdiodev->func[1]); sdio_claim_host(bus->sdiodev->func[1]);
pr_debug("F1 signature read @0x18000000=0x%4x\n", printk("F1 signature read @0x18000000=0x%4x\n",
brcmf_sdiod_regrl(bus->sdiodev, SI_ENUM_BASE, NULL)); brcmf_sdiod_regrl(bus->sdiodev, SI_ENUM_BASE, NULL));
/* /*
@ -4096,7 +4106,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev)
struct brcmf_sdio *bus; struct brcmf_sdio *bus;
struct workqueue_struct *wq; struct workqueue_struct *wq;
pr_debug("brcmf_sdio_probe (enter)\n"); printk("brcmf_sdio_probe (enter)\n");
/* Allocate private bus interface state */ /* Allocate private bus interface state */
bus = kzalloc(sizeof(struct brcmf_sdio), GFP_ATOMIC); bus = kzalloc(sizeof(struct brcmf_sdio), GFP_ATOMIC);