Commit e43d319
clk: Allow phase adjustment from debugfs
For testing it may be useful to manually adjust a clock's phase. Add
support for writing to the existing clk_phase debugfs file, with the
written value clamped to [0, 360) to match the behaviour of the
clk_set_phase() function.
This is a dangerous feature, so use the existing define
CLOCK_ALLOW_WRITE_DEBUGFS to allow it only if the source is modified.
Signed-off-by: John Keeping <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>1 parent dcce5cc commit e43d319
1 file changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3343 | 3343 | | |
3344 | 3344 | | |
3345 | 3345 | | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
3346 | 3361 | | |
3347 | 3362 | | |
3348 | 3363 | | |
| |||
3370 | 3385 | | |
3371 | 3386 | | |
3372 | 3387 | | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
3373 | 3391 | | |
3374 | 3392 | | |
3375 | 3393 | | |
| |||
3385 | 3403 | | |
3386 | 3404 | | |
3387 | 3405 | | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
3388 | 3416 | | |
3389 | 3417 | | |
3390 | 3418 | | |
| |||
3575 | 3603 | | |
3576 | 3604 | | |
3577 | 3605 | | |
3578 | | - | |
| 3606 | + | |
| 3607 | + | |
3579 | 3608 | | |
3580 | 3609 | | |
3581 | 3610 | | |
| |||
0 commit comments