Commit 39b61d7
[nrf fromtree] drivers: gpio: nrfx: extend pin retain to every pin
The usage of nrf_gpio_port_retain_disable/_enable, in cases where
the soc pins support retention, every pin must be
retained/unretained regardless of what power domain the pad is in.
This patch ensures retain is applied to all pins in all domains by
the gpio_nrfx device driver, not only pins specifically in the
fast_active_1 domain. Without this patch, pinctrl will correctly
retain pins, while gpio_nrfx will fail to unretain them when
again.
We no longer check the output state either, which was passed with
the flags arg of gpio_nrfx_gpd_retain_set() so this arg has been
removed.
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 691b335)1 parent a4a4579 commit 39b61d7
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
80 | | - | |
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
| |||
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
| |||
225 | 216 | | |
226 | 217 | | |
227 | 218 | | |
228 | | - | |
| 219 | + | |
229 | 220 | | |
230 | 221 | | |
231 | 222 | | |
| |||
329 | 320 | | |
330 | 321 | | |
331 | 322 | | |
332 | | - | |
| 323 | + | |
333 | 324 | | |
334 | 325 | | |
335 | 326 | | |
| |||
346 | 337 | | |
347 | 338 | | |
348 | 339 | | |
349 | | - | |
| 340 | + | |
350 | 341 | | |
351 | 342 | | |
352 | 343 | | |
| |||
363 | 354 | | |
364 | 355 | | |
365 | 356 | | |
366 | | - | |
| 357 | + | |
367 | 358 | | |
368 | 359 | | |
369 | 360 | | |
| |||
384 | 375 | | |
385 | 376 | | |
386 | 377 | | |
387 | | - | |
| 378 | + | |
388 | 379 | | |
389 | 380 | | |
390 | 381 | | |
| |||
0 commit comments