]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: use dma helpers for setting masks
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 9 Dec 2020 10:24:13 +0000 (11:24 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Jan 2021 11:29:26 +0000 (12:29 +0100)
commitee840b046d6052c105ba6531dd4e2dfef11766f5
tree47638b29fdd6b339cbd92654ed2be4f65bad0791
parent0b67006dcb952a7309c238c19612a68b941ac319
s390/cio: use dma helpers for setting masks

Bypassing the DMA API is bad style, even when we don't expect any
actual problems. Let's utilize the right API helpers for setting the
DMA masks and check for returned errors, so that we benefit from
common sanity checks.

io_subchannel_allocate_dev() required some extra massaging, so that we
can return an errno other than -ENOMEM.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/css.c
drivers/s390/cio/device.c