summaryrefslogtreecommitdiff
path: root/include/linux/ata_platform.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2019-01-19 07:52:01 +0300
committerJens Axboe <axboe@kernel.dk>2019-02-08 16:42:53 +0300
commitf3d5e4f18dba18d7c2303dda68b9dbcf5ccc05cd (patch)
tree325d873caee753bca9ee40555d84a5afcb64686c /include/linux/ata_platform.h
parent740c68a0cd42aab21ad9aaae092ff8a2215966b1 (diff)
downloadlinux-f3d5e4f18dba18d7c2303dda68b9dbcf5ccc05cd.tar.xz
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>
Diffstat (limited to 'include/linux/ata_platform.h')
-rw-r--r--include/linux/ata_platform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ata_platform.h b/include/linux/ata_platform.h
index ff2120215dec..9cafec92282d 100644
--- a/include/linux/ata_platform.h
+++ b/include/linux/ata_platform.h
@@ -19,7 +19,8 @@ extern int __pata_platform_probe(struct device *dev,
struct resource *irq_res,
unsigned int ioport_shift,
int __pio_mask,
- struct scsi_host_template *sht);
+ struct scsi_host_template *sht,
+ bool use16bit);
/*
* Marvell SATA private data