Commit 5ff0e74
spi: atmel-quadspi: fix runtime PM
Fix runtime PM by adapting the OSPI support added for SAMA7G5. Runtime
PM support comes from mainline and at the moment OSPI is not integrated
in mainline. The current adaptation doesn't touch the GCLK as it is
sensible and need more investment. From current investigation (code
behavior only) it seems that GCLK feeds TX/RX and pad calibration hardware
logic and thus special handling (and hardware behavior investigation) need
to be done for this to be enabled/disable at runtime. Thus, at the moment
don't touch it and keep the runtime support on SAMA7G5 only for PCLK.
The runtime PM is kept though for all clocks of the other IP variants
(available on the other AT91 SoCs).
Fixes: 16a72d7 ("spi: atmel-quadspi: Add support for sama7g5 QSPI")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
[durai.manickamkr@microchip.com: fixed conflicts and ported to 6.6.9]
Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>1 parent e59f646 commit 5ff0e74
1 file changed
Lines changed: 41 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
949 | 950 | | |
950 | 951 | | |
951 | 952 | | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
957 | 957 | | |
958 | | - | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
959 | 962 | | |
960 | 963 | | |
961 | 964 | | |
| |||
1073 | 1076 | | |
1074 | 1077 | | |
1075 | 1078 | | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1076 | 1083 | | |
1077 | 1084 | | |
1078 | | - | |
| 1085 | + | |
1079 | 1086 | | |
1080 | 1087 | | |
1081 | 1088 | | |
1082 | 1089 | | |
1083 | | - | |
| 1090 | + | |
1084 | 1091 | | |
1085 | 1092 | | |
1086 | 1093 | | |
| |||
1093 | 1100 | | |
1094 | 1101 | | |
1095 | 1102 | | |
1096 | | - | |
| 1103 | + | |
1097 | 1104 | | |
1098 | 1105 | | |
1099 | 1106 | | |
1100 | 1107 | | |
1101 | 1108 | | |
1102 | 1109 | | |
1103 | 1110 | | |
1104 | | - | |
| 1111 | + | |
1105 | 1112 | | |
1106 | 1113 | | |
1107 | 1114 | | |
| |||
1110 | 1117 | | |
1111 | 1118 | | |
1112 | 1119 | | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1113 | 1124 | | |
1114 | 1125 | | |
1115 | 1126 | | |
| |||
1473 | 1484 | | |
1474 | 1485 | | |
1475 | 1486 | | |
1476 | | - | |
| 1487 | + | |
1477 | 1488 | | |
1478 | 1489 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | 1490 | | |
1485 | 1491 | | |
1486 | 1492 | | |
| |||
1529 | 1535 | | |
1530 | 1536 | | |
1531 | 1537 | | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1535 | 1541 | | |
1536 | 1542 | | |
1537 | 1543 | | |
1538 | 1544 | | |
1539 | | - | |
| 1545 | + | |
| 1546 | + | |
1540 | 1547 | | |
1541 | 1548 | | |
1542 | | - | |
| 1549 | + | |
1543 | 1550 | | |
1544 | 1551 | | |
1545 | 1552 | | |
| |||
1549 | 1556 | | |
1550 | 1557 | | |
1551 | 1558 | | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
| 1559 | + | |
| 1560 | + | |
1556 | 1561 | | |
1557 | 1562 | | |
1558 | 1563 | | |
1559 | 1564 | | |
1560 | 1565 | | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1564 | 1572 | | |
1565 | 1573 | | |
1566 | 1574 | | |
1567 | 1575 | | |
1568 | | - | |
| 1576 | + | |
1569 | 1577 | | |
1570 | 1578 | | |
1571 | 1579 | | |
1572 | 1580 | | |
1573 | 1581 | | |
1574 | 1582 | | |
1575 | 1583 | | |
1576 | | - | |
| 1584 | + | |
| 1585 | + | |
1577 | 1586 | | |
1578 | 1587 | | |
1579 | 1588 | | |
| |||
1588 | 1597 | | |
1589 | 1598 | | |
1590 | 1599 | | |
| 1600 | + | |
| 1601 | + | |
1591 | 1602 | | |
1592 | 1603 | | |
1593 | 1604 | | |
| |||
0 commit comments