History

i2c: designware: Read counters from ACPI for PCI driver

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.

Andy Shevchenko committed 6 years ago

Commit 64d0a071 parent f9288fc1 file · +11 −0Browse files

Unified · Split

drivers/i2c/busses/i2c-designware-pcidrv.c+11−0
@@ -255,6 +255,17 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, · 254 unmodified lines
255255 }
256256 }
257257
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+
258269 i2c_dw_configure(dev);
259270
260271 if (controller->scl_sda_cfg) {

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