mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[S390] cio: force console function
If something goes wrong in a suspend / resume cycle a ccw based console if very likely in the suspended state and cannot print anything. Introduce ccw_device_force_console to force the wake up of the console device to be able to print the oops message. The console device drivers should use this function only if the system paniced. Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
14532095df
commit
6664845cef
2 changed files with 10 additions and 0 deletions
|
|
@ -1789,6 +1789,15 @@ ccw_device_probe_console(void)
|
|||
return &console_cdev;
|
||||
}
|
||||
|
||||
static int ccw_device_pm_restore(struct device *dev);
|
||||
|
||||
int ccw_device_force_console(void)
|
||||
{
|
||||
if (!console_cdev_in_use)
|
||||
return -ENODEV;
|
||||
return ccw_device_pm_restore(&console_cdev.dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ccw_device_force_console);
|
||||
|
||||
const char *cio_get_console_cdev_name(struct subchannel *sch)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue