firmware->vendor_id = le32_to_cpu(response.vendor_id);
firmware->product_id = le32_to_cpu(response.product_id);
+
+ dev_dbg(&connection->bundle->dev, "Firmware got vid (0x%x)/pid (0x%x)\n",
+ firmware->vendor_id, firmware->product_id);
}
/* This returns path of the firmware blob on the disk */
struct gb_connection *connection = firmware->connection;
struct gb_interface *intf = connection->bundle->intf;
char firmware_name[48];
+ int rc;
/* Already have a firmware, free it */
if (firmware->fw)
intf->ddbl1_manufacturer_id, intf->ddbl1_product_id,
firmware->vendor_id, firmware->product_id, stage);
- return request_firmware(&firmware->fw, firmware_name,
- &connection->bundle->dev);
+ rc = request_firmware(&firmware->fw, firmware_name,
+ &connection->bundle->dev);
+ dev_dbg(&connection->bundle->dev, "Searched for TFTF %s: %d\n",
+ firmware_name, rc);
+ return rc;
}
static int gb_firmware_size_request(struct gb_operation *op)
size_response = op->response->payload;
size_response->size = cpu_to_le32(firmware->fw->size);
+ dev_dbg(dev, "%s: firmware size %d bytes\n", __func__, size_response->size);
+
return 0;
}
firmware_response = op->response->payload;
memcpy(firmware_response->data, fw->data + offset, size);
+ dev_dbg(dev, "responding with firmware (offs = %u, size = %u)\n", offset,
+ size);
+
return 0;
}
/*
* XXX Should we return error for insecure firmware?
*/
+ dev_dbg(dev, "ready to boot: 0x%x, 0\n", status);
return 0;
}
"failed to send AP READY: %d\n", ret);
}
+ dev_dbg(&connection->bundle->dev, "%s: AP_READY sent\n", __func__);
+
return 0;
}
connection->private = NULL;
kfree(firmware);
+
+ dev_dbg(&connection->bundle->dev, "%s\n", __func__);
}
static struct gb_protocol firmware_protocol = {