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>
This commit is contained in:
Alexander Shiyan
2019-01-19 07:52:01 +03:00
committed by Jens Axboe
parent 740c68a0cd
commit f3d5e4f18d
3 changed files with 19 additions and 12 deletions

View File

@@ -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