Skip to content

Commit

Permalink
msm_serial_hs: Add an api for reading the current clock state
Browse files Browse the repository at this point in the history
Change-Id: Ifb401f770e1ad917f9b567ce166f625a5008bc6c
Signed-off-by: Devin Kim <dojip.kim@lge.com>
  • Loading branch information
dojipkim authored and myfluxi committed Jun 13, 2015
1 parent 68fc2cb commit 4fb8d8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-msm/include/mach/msm_serial_hs.h
Expand Up @@ -59,4 +59,5 @@ void msm_hs_request_clock_on(struct uart_port *uport);
struct uart_port *msm_hs_get_uart_port(int port_index);
void msm_hs_set_mctrl(struct uart_port *uport,
unsigned int mctrl);
int msm_hs_get_clock_state(struct uart_port *uport);
#endif
8 changes: 8 additions & 0 deletions drivers/tty/serial/msm_serial_hs.c
Expand Up @@ -2190,6 +2190,14 @@ void msm_hs_request_clock_on(struct uart_port *uport)
}
EXPORT_SYMBOL(msm_hs_request_clock_on);

int msm_hs_get_clock_state(struct uart_port *uport)
{
struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);

return (int)msm_uport->clk_state;
}
EXPORT_SYMBOL(msm_hs_get_clock_state);

static irqreturn_t msm_hs_wakeup_isr(int irq, void *dev)
{
unsigned int wakeup = 0;
Expand Down

0 comments on commit 4fb8d8d

Please sign in to comment.