mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Warn if the application BAR didn't get enumerated
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
45a6250e43
commit
b2f853cae7
@ -405,6 +405,10 @@ open:
|
||||
|
||||
if (rb) {
|
||||
dev->app_id = mqnic_reg_read32(rb->regs, MQNIC_RB_APP_INFO_REG_ID);
|
||||
|
||||
if (!dev->app_regs) {
|
||||
fprintf(stderr, "Warning: application section present, but application BAR not mapped\n");
|
||||
}
|
||||
}
|
||||
|
||||
mqnic_stats_init(dev);
|
||||
|
@ -309,6 +309,10 @@ static int mqnic_common_probe(struct mqnic_dev *mqnic)
|
||||
if (rb) {
|
||||
mqnic->app_id = ioread32(rb->regs + MQNIC_RB_APP_INFO_REG_ID);
|
||||
dev_info(dev, "Application ID: 0x%08x", mqnic->app_id);
|
||||
|
||||
if (!mqnic->app_hw_addr) {
|
||||
dev_warn(dev, "Warning: application section present, but application BAR not mapped");
|
||||
}
|
||||
}
|
||||
|
||||
mqnic_clk_info_init(mqnic);
|
||||
|
Loading…
x
Reference in New Issue
Block a user