File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,10 @@ struct mqnic *mqnic_open(const char *dev_name)
405
405
406
406
if (rb ) {
407
407
dev -> app_id = mqnic_reg_read32 (rb -> regs , MQNIC_RB_APP_INFO_REG_ID );
408
+
409
+ if (!dev -> app_regs ) {
410
+ fprintf (stderr , "Warning: application section present, but application BAR not mapped\n" );
411
+ }
408
412
}
409
413
410
414
mqnic_stats_init (dev );
Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ static int mqnic_common_probe(struct mqnic_dev *mqnic)
309
309
if (rb ) {
310
310
mqnic -> app_id = ioread32 (rb -> regs + MQNIC_RB_APP_INFO_REG_ID );
311
311
dev_info (dev , "Application ID: 0x%08x" , mqnic -> app_id );
312
+
313
+ if (!mqnic -> app_hw_addr ) {
314
+ dev_warn (dev , "Warning: application section present, but application BAR not mapped" );
315
+ }
312
316
}
313
317
314
318
mqnic_clk_info_init (mqnic );
You can’t perform that action at this time.
0 commit comments