#ifndef TPRINTF_H #define TPRINTF_H #include "built_in.h" #include "colors.h" #include "colorize.h" extern void tprintf_init(void); extern void tprintf(char *msg, ...) __check_format_printf(1, 2); extern void tprintf_flush(void); extern void tprintf_cleanup(void); extern void tputchar_safe(int c); extern void tputs_safe(const char *str, size_t len); #define DEFAULT_TTY_SIZE 80 #endif /* TPRINTF_H */ s-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-07-26 13:41:02 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-26 15:29:00 -0700
commitc57fbb404af28eda44d0590ede8812b889a89b8c (patch)
tree42529b635777ed0e26f7b995a32930b77b28cb5f /drivers
parent2321f049a93368fffc3375cfbf2f9f9561ef1e69 (diff)
greybus: firmware: Add runtime PM support
This patch implements runtime PM support for firmware management bundle. This guarantees that the bundle will be active, while the AP or the Module is trying to exchange any operations over any of the CPorts. - Firmware Management CPort: Runtime PM get/put calls are placed around the ioctl calls, which are all implemented as blocking ioctls. - Component Authentication CPort: Runtime PM get/put calls are placed around the ioctl calls, which are all implemented as blocking ioctls. - SPI: Uses the interface provided by spilib.c and runtime PM get/put are called around connection usage. - firmware-download: This is the most tricky one. All operations on this CPort are initiated from the Module and not from the AP. And the AP needs to do runtime_pm_get() before any request is received over this CPort. The module doesn't send any request over this connection, unless the AP has requested the module over firmware management CPort to download a firmware package over firmware download CPort. And so the runtime PM get/put calls around the ioctls in fw-management.c are sufficient to handle the firmware management CPort as well. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')