History

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.

Alexander Shiyan committed 7 years ago

Commit f3d5e4f1 parent 740c68a3 files · +19 −12Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/ata_platform.h+2−1
@@ -19,7 +19,8 @@ extern int __pata_platform_probe(struct device *dev, · 18 unmodified lines
1919 struct resource *irq_res,
2020 unsigned int ioport_shift,
2121 int __pio_mask,
22− struct scsi_host_template *sht);
22+ struct scsi_host_template *sht,
23+ bool use16bit);
2324
2425 /*
2526 * Marvell SATA private data

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t