ata: pata_of_platform: Allow to use 16-bit wide data transfer
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 19 Jan 2019 04:52:01 +0000 (07:52 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Feb 2019 13:42:53 +0000 (06:42 -0700)
commitf3d5e4f18dba18d7c2303dda68b9dbcf5ccc05cd
tree325d873caee753bca9ee40555d84a5afcb64686c
parent740c68a0cd42aab21ad9aaae092ff8a2215966b1
ata: pata_of_platform: Allow to use 16-bit wide data transfer

In some cases, the system bus can be configured for 16-bit mode,
in this case using read/write functions for 32-bit values
results in two cycles of 16 bits each, which is wrong.
This patch adds the devicetree flag to switch the driver to
use 16-bit mode for I/O transfers.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/pata_of_platform.c
drivers/ata/pata_platform.c
include/linux/ata_platform.h