pic32_uart.c (fe36fa18ca77ca3ca9f90aab6cf39031416e432b) pic32_uart.c (dfb9afb6c0e7af7c381c88d72d6d9c64268c160f)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PIC32 Integrated Serial Driver.
4 *
5 * Copyright (C) 2015 Microchip Technology, Inc.
6 *
7 * Authors:
8 * Sorin-Andrei Pistirica <andrei.pistirica@microchip.com>

--- 550 unchanged lines hidden (view full) ---

559
560 /* set interrupt on empty */
561 pic32_uart_writel(sport, PIC32_CLR(PIC32_UART_STA),
562 PIC32_UART_STA_UTXISEL1);
563
564 /* enable all interrupts and eanable uart */
565 pic32_uart_en_and_unmask(port);
566
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PIC32 Integrated Serial Driver.
4 *
5 * Copyright (C) 2015 Microchip Technology, Inc.
6 *
7 * Authors:
8 * Sorin-Andrei Pistirica <andrei.pistirica@microchip.com>

--- 550 unchanged lines hidden (view full) ---

559
560 /* set interrupt on empty */
561 pic32_uart_writel(sport, PIC32_CLR(PIC32_UART_STA),
562 PIC32_UART_STA_UTXISEL1);
563
564 /* enable all interrupts and eanable uart */
565 pic32_uart_en_and_unmask(port);
566
567 local_irq_restore(flags);
568
567 enable_irq(sport->irq_rx);
568
569 return 0;
570
571out_t:
572 free_irq(sport->irq_tx, port);
573 kfree(sport->irq_tx_name);
574out_r:

--- 450 unchanged lines hidden ---
569 enable_irq(sport->irq_rx);
570
571 return 0;
572
573out_t:
574 free_irq(sport->irq_tx, port);
575 kfree(sport->irq_tx_name);
576out_r:

--- 450 unchanged lines hidden ---