PCI devices may have been backed with ACPI handle which supplies an additional information to the drivers, such as counters. Call for ACPI configuration from PCI driver in order to utilize counters provided by ACPI.
Unified · Split
| @@ -255,6 +255,17 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, · 254 unmodified lines | |||
| 255 | } | 255 | } |
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | i2c_dw_acpi_adjust_bus_speed(&pdev->dev); | ||
| 259 | |||
| 260 | if (has_acpi_companion(&pdev->dev)) | ||
| 261 | i2c_dw_acpi_configure(&pdev->dev); | ||
| 262 | |||
| 263 | r = i2c_dw_validate_speed(dev); | ||
| 264 | if (r) { | ||
| 265 | pci_free_irq_vectors(pdev); | ||
| 266 | return r; | ||
| 267 | } | ||
| 268 | |||
| 258 | i2c_dw_configure(dev); | 269 | i2c_dw_configure(dev); |
| 259 | 270 | ||
| 260 | if (controller->scl_sda_cfg) { | 271 | if (controller->scl_sda_cfg) { |