]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serdev: Restore serdev_device_write_buf for atomic context
authorStefan Wahren <stefan.wahren@i2se.com>
Fri, 28 Apr 2017 11:47:21 +0000 (13:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:45:53 +0000 (16:45 +0200)
commit6bdc00d01e202ae11fa1cae0dacbef895434483d
treea63599f56e4bb468fa627f040d7f678cfe09be2e
parent88e2582e90bb89fe895ff0dceeb5d5ab65d07997
serdev: Restore serdev_device_write_buf for atomic context

Starting with commit 6fe729c4bdae ("serdev: Add serdev_device_write
subroutine") the function serdev_device_write_buf cannot be used in
atomic context anymore (mutex_lock is sleeping). So restore the old
behavior.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: 6fe729c4bdae ("serdev: Add serdev_device_write subroutine")
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/core.c
include/linux/serdev.h