aboutsummaryrefslogtreecommitdiff
path: root/include/chip.h
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2015-10-23 16:15:26 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-09 13:09:31 +1100
commit1205ead9074777c839e6926433dfcf2e20efeac1 (patch)
tree460fc0ac189191f7b5eac2f01cf9bf7ac3d4dcbb /include/chip.h
parentb5d4978b3fc525d01dcdc74266e8dcf3615fdaa3 (diff)
downloadskiboot-1205ead9074777c839e6926433dfcf2e20efeac1.zip
skiboot-1205ead9074777c839e6926433dfcf2e20efeac1.tar.gz
skiboot-1205ead9074777c839e6926433dfcf2e20efeac1.tar.bz2
console: Completely flush output buffer before power down and reboot
Completely flush the output buffer of the console driver before power down and reboot. Implements the flushing function for uart consoles, which includes the astbmc and rhesus platforms. Adds a new function, flush(), to the con_ops struct that allows each console driver to specify how their output buffers are flushed. In the cec_power_down and cec_reboot functions, the flush function of the driver is called if it exists. This fixes an issue where some console output is sometimes lost before power down or reboot in uart consoles. If this issue is also prevalent in other console types then it can be fixed later by adding a .flush to that driver's con_ops. Signed-off-by: Russell Currey <ruscur@russell.cc> [stewart@linux.vnet.ibm.com: reduce diff size, change flush function name] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/chip.h')
0 files changed, 0 insertions, 0 deletions