mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
soc: qcom: eud: Force conversion to u32
Since asm-generic high level MMIO accessors are used in arm64, unsigned long data needs to do force conversion before call the accessors to avoid compile errors. Change-Id: I402bf10c0d0ff7065d4514273a1c99382815abdb Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
This commit is contained in:
parent
0c3b9a611e
commit
1e8a1f32c3
|
|
@ -394,7 +394,7 @@ static void eud_set_termios(struct uart_port *port, struct ktermios *new,
|
|||
static void eud_stop_tx(struct uart_port *port)
|
||||
{
|
||||
/* Disable Tx interrupt */
|
||||
writel_relaxed(~EUD_INT_TX, port->membase + EUD_REG_INT_STATUS_1);
|
||||
writel_relaxed((__force u32)~EUD_INT_TX, port->membase + EUD_REG_INT_STATUS_1);
|
||||
/* Ensure Register Writes Complete */
|
||||
wmb();
|
||||
}
|
||||
|
|
@ -410,7 +410,7 @@ static void eud_start_tx(struct uart_port *port)
|
|||
static void eud_stop_rx(struct uart_port *port)
|
||||
{
|
||||
/* Disable Rx interrupt */
|
||||
writel_relaxed(~EUD_INT_RX, port->membase + EUD_REG_INT_STATUS_1);
|
||||
writel_relaxed((__force u32)~EUD_INT_RX, port->membase + EUD_REG_INT_STATUS_1);
|
||||
/* Ensure Register Writes Complete */
|
||||
wmb();
|
||||
}
|
||||
|
|
@ -427,7 +427,7 @@ static int eud_startup(struct uart_port *port)
|
|||
static void eud_shutdown(struct uart_port *port)
|
||||
{
|
||||
/* Disable both Tx & Rx interrupts */
|
||||
writel_relaxed(~EUD_INT_TX | ~EUD_INT_RX,
|
||||
writel_relaxed((__force u32)(~EUD_INT_TX | ~EUD_INT_RX),
|
||||
port->membase + EUD_REG_INT_STATUS_1);
|
||||
/* Ensure Register Writes Complete */
|
||||
wmb();
|
||||
|
|
@ -453,7 +453,7 @@ static void eud_config_port(struct uart_port *port, int flags)
|
|||
{
|
||||
/* set port type, clear Tx and Rx interrupts */
|
||||
port->type = PORT_EUD_UART;
|
||||
writel_relaxed(~EUD_INT_TX | ~EUD_INT_RX,
|
||||
writel_relaxed((__force u32)(~EUD_INT_TX | ~EUD_INT_RX),
|
||||
port->membase + EUD_REG_INT_STATUS_1);
|
||||
/* Ensure Register Writes Complete */
|
||||
wmb();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user