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.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -19,7 +19,8 @@ extern int __pata_platform_probe(struct device *dev, · 18 unmodified lines | |||
| 19 | struct resource *irq_res, | 19 | struct resource *irq_res, |
| 20 | unsigned int ioport_shift, | 20 | unsigned int ioport_shift, |
| 21 | int __pio_mask, | 21 | int __pio_mask, |
| 22 | struct scsi_host_template *sht); | 22 | struct scsi_host_template *sht, |
| 23 | bool use16bit); | ||
| 23 | 24 | ||
| 24 | /* | 25 | /* |
| 25 | * Marvell SATA private data | 26 | * Marvell SATA private data |