[PATCH 5.0 077/146] tty/serial: atmel: Add is_half_duplex helper