zephyr/drivers/serial
Peter Marheine 1cf884786b drivers: it8xxx2: fix GPIO interrupt enables
gpio_pin_interrupt_configure asserts that one of GPIO_INT_ENABLE or
_DISABLE is specified by the caller, and also that GPIO_INT_EDGE is
requested if both states (GPIO_INT_TRIG_BOTH) should interrupt. This
change corrects the misuses in it8xxx2 drivers that cause assertion
failures.

When assertions are disabled the existing code works correctly because
the it8xxx2 GPIO driver assumes that a pin interrupt should be enabled
if _DISABLE is not requested, and the driver only supports edge
triggers but assumes the absence of GPIO_INT_MODE_LEVEL indicates
an edge trigger was requested.

Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I1aaee190ec4cf063f36e25c0c293a91d280e71bb
2022-03-11 11:00:22 +01:00
..
CMakeLists.txt drivers: serial: Added support for raspberry pi 2022-02-02 16:23:35 +01:00
Kconfig uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
Kconfig.altera_jtag
Kconfig.apbuart
Kconfig.b91
Kconfig.cc13xx_cc26xx
Kconfig.cc32xx
Kconfig.cmsdk_apb
Kconfig.esp32
Kconfig.gd32 drivers: serial: Add USART support for GD32V 2021-12-20 17:51:30 +01:00
Kconfig.gecko
Kconfig.imx
Kconfig.it8xxx2 ITE: drivers/serial: add the UART driver for the PM callback function 2021-11-16 21:23:42 -05:00
Kconfig.leuart_gecko
Kconfig.litex
Kconfig.lpc11u6x
Kconfig.mcux
Kconfig.mcux_flexcomm
Kconfig.mcux_iuart
Kconfig.mcux_lpsci
Kconfig.mcux_lpuart
Kconfig.miv
Kconfig.msp432p4xx
Kconfig.native_posix kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.neorv32
Kconfig.npcx
Kconfig.nrfx kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.ns16550 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.numicro
Kconfig.pl011 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.psoc6
Kconfig.rcar drivers: serial: rcar: set default according to dt enabled 2022-01-21 14:25:25 -05:00
Kconfig.rpi_pico drivers: serial: added UART interrupts for Raspberry Pi Pico board 2022-02-05 06:18:44 -05:00
Kconfig.rtt kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.rv32m1_lpuart
Kconfig.sam0
Kconfig.sifive kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.stellaris kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.stm32
Kconfig.test
Kconfig.uart_sam
Kconfig.usart_sam
Kconfig.xec kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.xen xenvm: drivers: serial: Add consoleio Xen serial driver for Domain 0 2021-12-07 12:15:38 -05:00
Kconfig.xlnx drivers: serial: xlnx_ps: update referenced SoC configuration items 2022-01-21 11:34:09 -05:00
Kconfig.xmc4xxx
leuart_gecko.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
serial_test.c
uart_altera_jtag_hal.c drivers: serial: altera_jtag: remove unused config 2022-02-21 22:02:23 -05:00
uart_apbuart.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_b91.c drivers: serial: telink_b91: replace Pinmux by Pinctrl 2022-02-21 19:41:44 -05:00
uart_cc13xx_cc26xx.c drivers: serial: cc13xx_cc26xx: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_cc32xx.c drivers: serial: cc32xx: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_cmsdk_apb.c drivers: serial: cmsdk_apb: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_esp32.c drivers: uart: esp32: fix driver initialization id number 2022-02-21 22:12:55 -05:00
uart_gecko.c
uart_handlers.c uart: add API support for wide data 2021-11-09 19:44:38 -05:00
uart_hvc_xen_consoleio.c xenvm: drivers: serial: Add consoleio Xen serial driver for Domain 0 2021-12-07 12:15:38 -05:00
uart_hvc_xen.c uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
uart_imx.c drivers: serial: fix typos 2022-03-08 10:24:23 +01:00
uart_ite_it8xxx2.c drivers: it8xxx2: fix GPIO interrupt enables 2022-03-11 11:00:22 +01:00
uart_liteuart.c drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
uart_lpc11u6x.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_lpc11u6x.h drivers: serial: fix typos 2022-03-08 10:24:23 +01:00
uart_mchp_xec.c serial: update mchp uart module to use pinctrl 2022-03-07 11:03:06 +01:00
uart_mcux_flexcomm.c drivers: use DT_INST_ENUM_IDX(_OR) macros 2021-11-18 19:12:07 -05:00
uart_mcux_iuart.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_mcux_lpsci.c
uart_mcux_lpuart.c drivers: serial: fix typos 2022-03-08 10:24:23 +01:00
uart_mcux.c drivers: serial: Add pinctrl support to mcux uart driver 2022-03-03 13:00:20 -06:00
uart_miv.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_msp432p4xx.c drivers: serial: msp432p4xx: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_native_posix.c
uart_neorv32.c uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
uart_npcx.c uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
uart_nrfx_uart.c drivers: serial: nrfx: Ensure that instances have some pins assigned 2022-03-09 12:05:22 +01:00
uart_nrfx_uarte.c uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
uart_ns16550.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_ns16550.h
uart_numicro.c drivers: serial: numicro: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_pl011.c drivers: serial: fix typos 2022-03-08 10:24:23 +01:00
uart_psoc6.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_rcar.c drivers: serial: rcar: drop DEV_DATA/DEV_CFG usage 2022-02-21 20:49:41 -05:00
uart_rpi_pico.c drivers: serial: rpi_pico: replaced high level API functions 2022-02-05 06:18:44 -05:00
uart_rtt.c drivers: serial: drop get_dev_data/get_dev_config usage 2022-01-19 18:16:02 +01:00
uart_rv32m1_lpuart.c
uart_sam0.c kernel: workq: Fix type errors in delayable work handlers 2022-02-02 18:43:12 -05:00
uart_sam.c drivers: serial: atmel_sam: Fix api to work with modbus 2022-02-01 16:19:24 -05:00
uart_sifive.c drivers: serial: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
uart_stellaris.c drivers: serial: stellaris: remove unused definitions 2022-02-21 22:02:23 -05:00
uart_stm32.c uart: logging: Add configurable log level to UART drivers 2022-03-10 13:49:43 -05:00
uart_stm32.h drivers: serial: stm32: store IRQ config function in a single place 2022-02-21 22:02:23 -05:00
uart_xlnx_ps.c drivers: serial: xlnx_ps: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
uart_xlnx_uartlite.c
uart_xmc4xxx.c drivers: serial: xmc4xxx: drop usage of uart_device_config 2022-02-21 22:02:23 -05:00
usart_gd32.c pinctrl: require ; after PINCTRL_DT_(INST_)DEFINE macros 2022-01-01 07:39:08 -05:00
usart_sam.c drivers: serial: atmel_sam: Fix api to work with modbus 2022-02-01 16:19:24 -05:00