Commit f575a40
authored
[Credo][Ycable] changes for synchronizing executing Telemetry API's when mux toggle is inprogress (#280)
In this PR, there is a support for adding a mux_toggle_status variable inside the base class for mux_cable.
Using this variable the Derived classes for mux_cable can check this and return in case of a mux_toggle_status is in progress.
From the higher layer this allows ycabled to synchronize the calls and not let mux_cable toggle to go in conjunction with some of the Telemetry calls.
Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com
Description
Motivation and Context
To get the toggle time to a minimum/ not allow i2c to transactions on the cable to collide with each other
How Has This Been Tested?
Ran the changes on 7050cx3 arista testbed
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>1 parent b043372 commit f575a40
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| |||
756 | 760 | | |
757 | 761 | | |
758 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
759 | 767 | | |
760 | 768 | | |
761 | 769 | | |
| |||
825 | 833 | | |
826 | 834 | | |
827 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
828 | 839 | | |
829 | 840 | | |
830 | 841 | | |
| |||
970 | 981 | | |
971 | 982 | | |
972 | 983 | | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
973 | 987 | | |
974 | 988 | | |
975 | 989 | | |
| |||
1785 | 1799 | | |
1786 | 1800 | | |
1787 | 1801 | | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
1788 | 1805 | | |
1789 | 1806 | | |
1790 | 1807 | | |
| |||
1811 | 1828 | | |
1812 | 1829 | | |
1813 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
1814 | 1834 | | |
1815 | 1835 | | |
1816 | 1836 | | |
| |||
1838 | 1858 | | |
1839 | 1859 | | |
1840 | 1860 | | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1841 | 1864 | | |
1842 | 1865 | | |
1843 | 1866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
0 commit comments