Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/pci: stop using LOG_DBG() #14920

Merged
merged 1 commit into from Mar 26, 2019
Merged

drivers/pci: stop using LOG_DBG() #14920

merged 1 commit into from Mar 26, 2019

Conversation

ghost
Copy link

@ghost ghost commented Mar 26, 2019

When the console UART is a PCI device, and PCI debug logging is enabled,
the system will crash because the UART is initialized before logging, but
the UART initialization invokes the PCI subsystem which invokes logging.
Reordering the initialization sequence will not fix this chicken-and-egg.

Luckily, the LOG_DBG() calls in the PCI subsystem appear to be bitrot
leftovers from early development, so they are simply removed.

Also mark myself as the owner of the PCI subsystem.

Fixes: #14763

Signed-off-by: Charles E. Youse charles.youse@intel.com

@ghost ghost requested review from nashif, andyross, andrewboie and dcpleung March 26, 2019 17:57
@zephyrbot
Copy link
Collaborator

zephyrbot commented Mar 26, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

@codecov-io
Copy link

codecov-io commented Mar 26, 2019

Codecov Report

Merging #14920 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14920   +/-   ##
=======================================
  Coverage   52.92%   52.92%           
=======================================
  Files         309      309           
  Lines       45248    45248           
  Branches    10447    10447           
=======================================
  Hits        23949    23949           
  Misses      16533    16533           
  Partials     4766     4766

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65d100e...21de5cb. Read the comment docs.

When the console UART is a PCI device, and PCI debug logging is enabled,
the system crashes because the UART is initialized before logging, but
the UART initialization invokes the PCI subsystem which invokes logging.
Reordering the initialization sequence will not fix this chicken/egg.

Luckily, the LOG_DBG() calls in the PCI subsystem appear to be bitrot
leftovers from early development, so they are simply removed.

Also mark myself as the owner of the PCI subsystem.

Fixes: #14763

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
@carlescufi carlescufi merged commit eaf1c3b into zephyrproject-rtos:master Mar 26, 2019
@ghost ghost deleted the issue-14763 branch April 30, 2019 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PCI debug logging cannot work with PCI-enabled NS16550
5 participants