Commit a52365f
Charles Mirabile
i2c: tegra: Use internal reset when reset property is not available
JIRA: https://issues.redhat.com/browse/RHEL-113177
commit 635bf3c
Author: Akhil R <akhilrajeev@nvidia.com>
Date: Thu, 10 Jul 2025 18:42:05 +0530
For controllers that has an internal software reset, make the reset
property optional. This provides and option to use I2C in systems
that choose to restrict reset control from Linux or not to implement
the ACPI _RST method.
Internal reset was not required when the reset control was mandatory.
But on platforms where the resets are outside the control of Linux,
this had to be implemented by just returning success from BPMP or with
an empty _RST method in the ACPI table, basically ignoring the reset.
While the internal reset is not identical to the hard reset of the
controller, this will reset all the internal state of the controller
including FIFOs. This may slightly alter the behaviour in systems
which were ignoring the reset but it should not cause any functional
difference since all the required I2C registers are configured after
this reset, just as in boot. Considering that this sequence is hit
during the boot or during the I2C recovery path from an error, the
internal reset provides a better alternative than just ignoring the
reset.
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250710131206.2316-3-akhilrajeev@nvidia.com
Signed-off-by: Charles Mirabile <cmirabil@redhat.com>1 parent 6e0154f commit a52365f
1 file changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| 221 | + | |
216 | 222 | | |
217 | 223 | | |
218 | 224 | | |
| |||
604 | 610 | | |
605 | 611 | | |
606 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
607 | 633 | | |
608 | 634 | | |
609 | 635 | | |
610 | 636 | | |
611 | 637 | | |
612 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
613 | 649 | | |
614 | 650 | | |
615 | 651 | | |
| |||
618 | 654 | | |
619 | 655 | | |
620 | 656 | | |
621 | | - | |
622 | 657 | | |
623 | 658 | | |
624 | 659 | | |
| |||
1469 | 1504 | | |
1470 | 1505 | | |
1471 | 1506 | | |
| 1507 | + | |
1472 | 1508 | | |
1473 | 1509 | | |
1474 | 1510 | | |
| |||
1493 | 1529 | | |
1494 | 1530 | | |
1495 | 1531 | | |
| 1532 | + | |
1496 | 1533 | | |
1497 | 1534 | | |
1498 | 1535 | | |
| |||
1517 | 1554 | | |
1518 | 1555 | | |
1519 | 1556 | | |
| 1557 | + | |
1520 | 1558 | | |
1521 | 1559 | | |
1522 | 1560 | | |
| |||
1541 | 1579 | | |
1542 | 1580 | | |
1543 | 1581 | | |
| 1582 | + | |
1544 | 1583 | | |
1545 | 1584 | | |
1546 | 1585 | | |
| |||
1565 | 1604 | | |
1566 | 1605 | | |
1567 | 1606 | | |
| 1607 | + | |
1568 | 1608 | | |
1569 | 1609 | | |
1570 | 1610 | | |
| |||
1589 | 1629 | | |
1590 | 1630 | | |
1591 | 1631 | | |
| 1632 | + | |
1592 | 1633 | | |
1593 | 1634 | | |
1594 | 1635 | | |
| |||
1613 | 1654 | | |
1614 | 1655 | | |
1615 | 1656 | | |
| 1657 | + | |
1616 | 1658 | | |
1617 | 1659 | | |
1618 | 1660 | | |
| |||
0 commit comments