Commit 6510459
ice: fix max values for dpll pin phase adjust
Mask admin command returned max phase adjust value for both input and
output pins. Only 31 bits are relevant, last released data sheet wrongly
points that 32 bits are valid - see [1] 3.2.6.4.1 Get CCU Capabilities
Command for reference. Fix of the datasheet itself is in progress.
Fix the min/max assignment logic, previously the value was wrongly
considered as negative value due to most significant bit being set.
Example of previous broken behavior:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \
--do pin-get --json '{"id":1}'| grep phase-adjust
'phase-adjust': 0,
'phase-adjust-max': 16723,
'phase-adjust-min': -16723,
Correct behavior with the fix:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \
--do pin-get --json '{"id":1}'| grep phase-adjust
'phase-adjust': 0,
'phase-adjust-max': 2147466925,
'phase-adjust-min': -2147466925,
[1] https://cdrdv2.intel.com/v1/dl/getContent/613875?explicitVersion=true
Fixes: 90e1c90 ("ice: dpll: implement phase related callbacks")
Reviewed-by: Przemek Kitszel <[email protected]>
Signed-off-by: Arkadiusz Kubalewski <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>1 parent fd48f07 commit 6510459
2 files changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2264 | 2264 | | |
2265 | 2265 | | |
2266 | 2266 | | |
| 2267 | + | |
| 2268 | + | |
2267 | 2269 | | |
2268 | 2270 | | |
2269 | 2271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2064 | 2064 | | |
2065 | 2065 | | |
2066 | 2066 | | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
2067 | 2079 | | |
2068 | 2080 | | |
2069 | 2081 | | |
| |||
2105 | 2117 | | |
2106 | 2118 | | |
2107 | 2119 | | |
2108 | | - | |
2109 | | - | |
| 2120 | + | |
| 2121 | + | |
2110 | 2122 | | |
2111 | 2123 | | |
2112 | 2124 | | |
| |||
2152 | 2164 | | |
2153 | 2165 | | |
2154 | 2166 | | |
| 2167 | + | |
2155 | 2168 | | |
2156 | 2169 | | |
2157 | 2170 | | |
2158 | 2171 | | |
2159 | 2172 | | |
2160 | 2173 | | |
2161 | 2174 | | |
| 2175 | + | |
2162 | 2176 | | |
2163 | 2177 | | |
2164 | 2178 | | |
2165 | 2179 | | |
2166 | 2180 | | |
| 2181 | + | |
2167 | 2182 | | |
2168 | 2183 | | |
2169 | 2184 | | |
| |||
2188 | 2203 | | |
2189 | 2204 | | |
2190 | 2205 | | |
2191 | | - | |
2192 | | - | |
2193 | | - | |
2194 | | - | |
2195 | 2206 | | |
2196 | | - | |
2197 | | - | |
2198 | | - | |
2199 | | - | |
2200 | 2207 | | |
2201 | 2208 | | |
2202 | 2209 | | |
2203 | 2210 | | |
| 2211 | + | |
| 2212 | + | |
2204 | 2213 | | |
2205 | 2214 | | |
2206 | 2215 | | |
| |||
2308 | 2317 | | |
2309 | 2318 | | |
2310 | 2319 | | |
2311 | | - | |
2312 | | - | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
2313 | 2324 | | |
2314 | 2325 | | |
2315 | 2326 | | |
| |||
0 commit comments