Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions drivers/net/wireless/apple/centauri/t6050/centauri_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,18 @@ static int centauri_t6050_rom_boot(struct centauri_t6050 *c)
if (!c->link_ready || c->boot_attempted)
return -EBUSY;
stage = readl(c->bar + 0x8000);
if (stage != 0)
return -EBUSY;
if (stage != 0) {
/*
* Past the ROM: an earlier binding's firmware (a module reload)
* still runs. Only a warm reset gets the ROM back, so hand this to
* the fault recovery as a failed boot.
*/
if (!c->warm_reset)
return -EBUSY;
dev_info(dev, "N1 not in its ROM (stage %#x); warm reset\n", stage);
c->boot_hw_failed = true;
return -EIO;
}

ret = request_firmware_direct(&fw, c->firmware_name, dev);
if (ret) {
Expand Down
Loading