Commit e361d1f
ACPI / scan: Fix enumeration for special UART devices
UART devices is expected to be enumerated by SerDev subsystem.
During ACPI scan, serial devices behind SPI, I2C or UART buses are not
enumerated, allowing them to be enumerated by their respective parents.
Rename *spi_i2c_slave* to *serial_bus_slave* as this will be used for serial
devices on serial buses (SPI, I2C or UART).
On Macs an empty ResourceTemplate is returned for uart slaves.
Instead the device properties "baud", "parity", "dataBits", "stopBits" are
provided. Add a check for "baud" in acpi_is_serial_bus_slave().
Signed-off-by: Frédéric Danis <frederic.danis.oss@gmail.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Tested-by: Ronald Tschalär <ronald@innovation.ch>
Tested-by: Peter Y. Chuang <peteryuchuang@gmail.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 53c7626 commit e361d1f
2 files changed
+18
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | | - | |
| 1508 | + | |
1509 | 1509 | | |
1510 | | - | |
| 1510 | + | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
| 1515 | + | |
1521 | 1516 | | |
1522 | 1517 | | |
1523 | 1518 | | |
1524 | 1519 | | |
1525 | 1520 | | |
1526 | | - | |
| 1521 | + | |
1527 | 1522 | | |
1528 | 1523 | | |
1529 | | - | |
| 1524 | + | |
1530 | 1525 | | |
1531 | 1526 | | |
1532 | 1527 | | |
1533 | 1528 | | |
1534 | | - | |
| 1529 | + | |
| 1530 | + | |
1535 | 1531 | | |
1536 | 1532 | | |
1537 | 1533 | | |
1538 | | - | |
1539 | | - | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1540 | 1537 | | |
1541 | 1538 | | |
1542 | | - | |
| 1539 | + | |
1543 | 1540 | | |
1544 | 1541 | | |
1545 | 1542 | | |
| |||
1557 | 1554 | | |
1558 | 1555 | | |
1559 | 1556 | | |
1560 | | - | |
| 1557 | + | |
1561 | 1558 | | |
1562 | 1559 | | |
1563 | 1560 | | |
| |||
1841 | 1838 | | |
1842 | 1839 | | |
1843 | 1840 | | |
1844 | | - | |
1845 | | - | |
| 1841 | + | |
| 1842 | + | |
1846 | 1843 | | |
1847 | | - | |
| 1844 | + | |
1848 | 1845 | | |
1849 | 1846 | | |
1850 | 1847 | | |
| |||
1941 | 1938 | | |
1942 | 1939 | | |
1943 | 1940 | | |
1944 | | - | |
| 1941 | + | |
1945 | 1942 | | |
1946 | 1943 | | |
1947 | 1944 | | |
| |||
1950 | 1947 | | |
1951 | 1948 | | |
1952 | 1949 | | |
1953 | | - | |
| 1950 | + | |
1954 | 1951 | | |
1955 | 1952 | | |
1956 | 1953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments